IRC log of #zope3-dev for Monday, 2008-03-03

*** jodok_ has joined #zope3-dev00:12
*** jodok has quit IRC00:12
*** whit has joined #zope3-dev00:14
*** whit has quit IRC00:15
*** timte has quit IRC00:19
*** jodok_ has quit IRC00:37
*** jodok has joined #zope3-dev00:38
*** jodok has quit IRC00:41
*** malthe|out is now known as malthe00:51
*** tarek has quit IRC00:52
*** norro has joined #zope3-dev01:02
*** harobed has quit IRC01:02
*** sunew has quit IRC01:12
*** pbugni has joined #zope3-dev01:30
*** natea_ has joined #zope3-dev01:31
*** tarek has joined #zope3-dev01:42
*** greenman has joined #zope3-dev01:44
*** reco has quit IRC01:49
*** tarek has quit IRC01:49
*** norro has quit IRC01:52
*** malthe is now known as malthe|Zzz02:00
*** pbugni has quit IRC02:09
*** alecm has quit IRC02:12
*** projekt01 has joined #zope3-dev02:14
projekt01srichter, ayt?02:14
projekt01povbot, seen srichter02:15
povbotprojekt01: srichter was last seen in #zope3-dev 3 days, 5 hours, 45 minutes, and 51 seconds ago: <srichter> benji: thanks02:15
*** J1m has quit IRC02:20
*** greenman_ has joined #zope3-dev02:43
*** greenman has quit IRC02:43
*** J1m has joined #zope3-dev04:03
*** greenman_ has quit IRC04:23
*** projekt01 has quit IRC04:30
*** tav has quit IRC04:44
*** tav has joined #zope3-dev04:45
*** ChanServ sets mode: +o tav04:45
*** J1m has quit IRC04:48
*** alecm has joined #zope3-dev04:58
*** alecm has quit IRC05:01
*** whit has joined #zope3-dev05:29
*** whit has quit IRC05:53
*** whit has joined #zope3-dev05:55
*** mcdonc_ has quit IRC05:55
*** mcdonc has joined #zope3-dev05:56
*** stub has joined #zope3-dev06:06
*** whit has quit IRC06:13
*** greenman has joined #zope3-dev06:31
*** tarek has joined #zope3-dev06:46
*** greenman has quit IRC06:50
*** tarek has quit IRC07:03
*** pcardune has joined #zope3-dev07:15
*** baijum has joined #zope3-dev07:20
*** tav has quit IRC07:43
*** vimes656 has joined #zope3-dev07:56
*** greenman has joined #zope3-dev08:14
*** greenman has quit IRC08:19
*** greenman has joined #zope3-dev08:27
*** quodt has joined #zope3-dev08:34
*** menesis has joined #zope3-dev08:38
*** greenman has quit IRC08:39
*** pcardune_ has joined #zope3-dev08:46
*** d2m has joined #zope3-dev08:48
*** redir_ has joined #zope3-dev08:49
*** afd_ has joined #zope3-dev08:49
*** pcardune has quit IRC09:01
*** redir_ has quit IRC09:05
*** jayaraj has joined #zope3-dev09:06
*** pcardune_ has quit IRC09:11
*** vimes656_ has joined #zope3-dev09:14
*** sorin has joined #zope3-dev09:17
*** sorin is now known as sorindregan09:18
*** dobee has joined #zope3-dev09:18
*** dobee has quit IRC09:18
*** jeffk has quit IRC09:19
*** jeffk has joined #zope3-dev09:19
*** b52laptop has quit IRC09:20
*** ghendi has joined #zope3-dev09:20
*** greenman has joined #zope3-dev09:31
*** vimes656 has quit IRC09:31
*** yvl has joined #zope3-dev09:32
*** vimes656_ has quit IRC09:36
*** vimes656 has joined #zope3-dev09:37
*** dobee has joined #zope3-dev09:37
*** kursor has joined #zope3-dev09:41
*** kursor has quit IRC09:42
*** kursor has joined #zope3-dev09:43
*** afd__ has joined #zope3-dev09:44
*** stu1 has joined #zope3-dev09:50
*** stub has quit IRC09:50
*** stu1 is now known as stub09:50
*** afd_ has quit IRC09:51
*** romanofski has joined #zope3-dev09:55
*** pelle_ has quit IRC10:04
*** jukart has joined #zope3-dev10:10
*** pelle_ has joined #zope3-dev10:11
*** malthe|Zzz is now known as malthe10:12
*** timte has joined #zope3-dev10:15
*** toutpt has joined #zope3-dev10:15
*** dobee has quit IRC10:23
*** vimes656_ has joined #zope3-dev10:28
*** tarek has joined #zope3-dev10:29
*** thruflo has joined #zope3-dev10:31
*** MJ has joined #zope3-dev10:34
*** __mac__ has joined #zope3-dev10:35
*** __mac__ has left #zope3-dev10:35
*** yvl has quit IRC10:39
*** vimes656 has quit IRC10:45
*** jodok has joined #zope3-dev10:47
*** jpcw2002 has joined #zope3-dev10:48
*** bigkevmcd has joined #zope3-dev10:51
*** huajie has joined #zope3-dev10:58
*** malthe has quit IRC11:00
*** jodok_ has joined #zope3-dev11:01
*** jodok has quit IRC11:01
*** stub has quit IRC11:07
*** norro has joined #zope3-dev11:08
*** malthe has joined #zope3-dev11:11
*** __mac__ has joined #zope3-dev11:11
*** __mac__ has left #zope3-dev11:12
*** harobed has joined #zope3-dev11:13
*** maurits has joined #zope3-dev11:23
*** menesis has quit IRC11:24
*** jodok has joined #zope3-dev11:27
*** b52laptop has joined #zope3-dev11:29
*** jodok__ has joined #zope3-dev11:37
*** jodok_ has quit IRC11:43
*** goschtl has joined #zope3-dev11:44
*** menesis has joined #zope3-dev11:45
*** sunew has joined #zope3-dev11:45
*** thruflo has quit IRC11:47
*** yvl has joined #zope3-dev11:47
*** jodok has quit IRC11:48
*** jodok__ is now known as jodok11:48
*** tarek has quit IRC12:07
*** MJ is now known as MJ|meeting12:08
*** dunny has quit IRC12:14
*** dunny has joined #zope3-dev12:16
*** mkerrin has joined #zope3-dev12:22
*** stub has joined #zope3-dev12:23
*** markusleist has quit IRC12:25
*** tarek has joined #zope3-dev12:26
*** jodok_ has joined #zope3-dev12:31
*** dunny has quit IRC12:35
*** alga has joined #zope3-dev12:40
*** sunew has quit IRC12:40
*** b52laptop has quit IRC12:40
*** b52lap has joined #zope3-dev12:41
*** jodok_ has quit IRC12:41
*** jodok has quit IRC12:43
*** tarek has quit IRC12:43
*** mgedmin has joined #zope3-dev12:51
*** ktwilight has joined #zope3-dev13:03
*** ktwilight_ has quit IRC13:18
*** jpcw2002 has quit IRC13:33
*** b52lap has quit IRC13:34
*** b52lap has joined #zope3-dev13:35
*** rocky has joined #zope3-dev13:39
*** fcorrea has joined #zope3-dev13:45
*** MJ|meeting is now known as MJ13:46
*** projekt01 has joined #zope3-dev13:48
*** agroszer has joined #zope3-dev13:48
*** MJ|nickcollision has joined #zope3-dev13:59
*** MJ has quit IRC13:59
*** MJ|nickcollision is now known as MJ13:59
*** dobee has joined #zope3-dev14:09
*** danielblackburn_ has joined #zope3-dev14:09
*** danielblackburn_ has quit IRC14:12
*** niemeyer has joined #zope3-dev14:15
malthewhat's the deal with __debug__; when is it set?14:20
afd__True on normal python startup, False when python is started with -O14:21
afd__(AFAIK)14:21
malthewhich is the default with 'start'?14:22
afd__I think14:22
* malthe goes to confirm14:22
*** fcorrea has quit IRC14:23
maltheafd__: True in both cases14:24
*** danielblackburn has quit IRC14:25
afd__malthe: http://dpaste.com/37717/14:25
malthecool; how would you invoke zope with -O?14:26
malthethe application runner that is14:26
afd__change runzope14:26
maltheok14:26
maltheafd__: on resource merging: does it make sense to merge only when __debug__ is False?14:26
maltheor what other mechanism should decide this.14:26
maltheit certainly could be configurable in zcml, too.14:27
afd__malthe: I think devmode in local.conf14:27
maltheright that's it; good call.14:27
afd__malthe: I like the architecture of resourceinclude, the only thing that I don't like is the naming of the "provide" utility function. I feel that it should be more obvious what it does14:30
malthewhat's a better name for it?14:30
maltheresource library calls it 'need'.14:31
* afd__ is thinking14:31
afd__maybe request_provides(ISomething)14:32
afd__not very happy with this suggestion either14:32
afd__ /s/either/also14:33
malthehmm what's the opposite of have devmode14:33
maltheneed(IAuthoring)14:34
malthemaybe need really is better14:34
afd__it sounds good, although it kind of lies to what it does :)14:34
maltheyep14:34
*** jml has quit IRC14:35
maltheah not-have14:35
projekt01malthe, do you mean with resource merge, merge two CSS files into one and serve this single file?14:37
*** rocky has quit IRC14:38
maltheprojekt01: yep; hang on--I'm about to release 0.2 with merge-support.14:38
projekt01malthe, ah, now I understand what you are doing. Very cool!14:39
maltheprojekt01: http://pypi.python.org/pypi/z3c.resourceinclude/0.214:39
malthebut you need to not be in devmode14:39
maltheseems to be the default for a grok project14:39
maltheprojekt01: I'm digesting the merged files so I can set the file to never expire.14:40
projekt01I like include="example.css" looks very smart14:41
maltheit accepts multiple files btw14:41
maltheerr paths14:41
*** reco has joined #zope3-dev14:41
maltheI guess it's important to stress that they're not files, but resource names14:41
*** J1m has joined #zope3-dev14:42
*** dobee has quit IRC14:42
afd__malthe: what about request_include(ISomething) ?14:42
maltheinclude is good at least14:43
*** kursor has quit IRC14:43
maltherequest_ is a bit much maybe14:43
afd__:)14:43
projekt01afd, ehh underscorse14:43
*** yvl has left #zope3-dev14:43
maltheafd__: is that acceptable? --- ``include`` ?14:43
afd__for me, yes14:43
malthek I'll add support and deprecate the former14:44
projekt01malthe, what do I need to define in the tamplate that the includes get used?14:45
*** tarek has joined #zope3-dev14:45
*** greenman has quit IRC14:45
*** ignas has joined #zope3-dev14:46
maltheprojekt01: first, you need to use two-phase rendering -or- push all your layers on the request before rendering the content provider.14:46
malthethis is why the package can't work directly with a "main_template.pt"-approach.14:47
maltheI use it on the vudo-project where we have complete two-phase rendering; each component in the page gets a chance to say, "Hey, I need ``IAuthoring``."14:47
afd__but this is for the best, I never how zc.resourcelibrary changes the request14:48
maltheright that's what I thought14:48
projekt01what do I need to do in the update phase?14:48
malthethere is still a possibility to hack it onto the page14:48
afd__also, as far as I know, it wasn't compatible with zrtresource14:48
maltheprojekt01: in the update-phase, call z3c.resourceinclude.provide (soon ``include``), passing the layer you need.14:49
maltheor, to get started right away, just leave this part and register your includes for IDefaultBrowserLayer (this is the default).14:49
projekt01why do I need to do that? normaly the skin provides this layers?14:49
maltheright exactly14:49
maltheso this part is only for autonomous components.14:49
projekt01Ah, if the skin provides the layer then the resource get included out of the box?14:50
maltheyep14:50
maltheprojekt01: then set up this viewlet: http://pastebin.org/2218414:50
projekt01does the include(IMyLayer) the same like alsoProvides(self.request, IMyLayer) ?14:51
maltheI suppose I could directly implement a viewlet in the package, not only a content provider.14:51
maltheprojekt01: yes14:51
malthebut it gets the request for the current participation14:51
projekt01why not use the alsoProvides directly instead of includes?14:52
maltheactually it makes sense to define the viewlet yourself, because you'll want to cache the output for some period14:52
maltheprojekt01: I thought maybe it's easier to understand14:52
projekt01or at least applySkin which is use in other parts of zope14:52
maltheah ok14:53
projekt01probably applyLayer is the right term14:53
maltheprojekt01: feel free to improve this in the code btw14:53
projekt01I wish I had more time ;-)14:54
malthehehe14:54
*** jodok has joined #zope3-dev14:54
projekt01malthe, I think includes (apply layer interface) is a little bit dangerous because it brings not only resourceinclude things into the game14:55
afd__projekt01: I think the idea is that you create special interfaces just for the purpose of them acting as resource libraries14:55
malthethat's it14:56
projekt01I see, sounds aceptable14:56
maltheit makes looking up applicable resources fast14:56
maltheand you have the advantage of imports, not just text-strings14:56
projekt01And I don't have to use "includes" if a skin already is inherited from such a layer, right?14:57
afd__yes14:57
projekt01cool14:57
maltheprojekt01: yeah so the cheap version is to just always include everything, but you get the benefit of auto-merging14:58
*** rocky has joined #zope3-dev15:00
*** jsadjohnson has joined #zope3-dev15:00
*** J1m has quit IRC15:03
tarekhi all, is there a way to include a js file in a widget ? (since the widget does not have the form context)15:06
malthetarek: you'll need to either use a library like z3c.resourceinclude or include the .js manually in your <head>.15:09
* malthe ducks15:09
* afd__ notices shamless plug15:10
*** rock1 has joined #zope3-dev15:10
tarekmalthe, thx15:11
projekt01tarke, if you use z3c.form, you can register a template for the widget, I think per context, request, view widget15:11
*** rocky has quit IRC15:11
*** rock1 is now known as rocky15:11
*** reco has quit IRC15:12
tarekprojekt01, ok thx15:12
*** jodok has quit IRC15:17
*** jodok has joined #zope3-dev15:19
*** benji has joined #zope3-dev15:25
*** jpcw2002 has joined #zope3-dev15:29
*** reco has joined #zope3-dev15:30
*** danielblackburn has joined #zope3-dev15:30
*** regebro has joined #zope3-dev15:34
*** J1m_ has joined #zope3-dev15:40
*** jukart_ has joined #zope3-dev16:08
*** jodok_ has joined #zope3-dev16:08
*** stub has quit IRC16:09
*** afd__ has quit IRC16:10
*** baijum has quit IRC16:10
*** danielblackburn has quit IRC16:13
*** quodt has quit IRC16:13
*** lucielejard has joined #zope3-dev16:14
*** danielblackburn has joined #zope3-dev16:14
*** jodok has quit IRC16:15
*** jukart has quit IRC16:15
*** danielblackburn has quit IRC16:16
*** mgedmin has quit IRC16:18
*** whit has joined #zope3-dev16:18
*** afd_ has joined #zope3-dev16:22
*** sp0cksbeard has joined #zope3-dev16:24
*** huajie has quit IRC16:26
*** jukart_ is now known as jukart16:26
maltheprojekt01: I added a viewlet for convenience; it keeps a one-hour cache.16:31
*** quodt has joined #zope3-dev16:34
*** jodok_ is now known as jodok16:34
*** rcrafton has joined #zope3-dev16:36
*** afd__ has joined #zope3-dev16:38
*** malthe has quit IRC16:40
*** jodok_ has joined #zope3-dev16:41
*** sunew has joined #zope3-dev16:46
*** malthe has joined #zope3-dev16:52
*** markusleist has joined #zope3-dev16:53
*** jodok has quit IRC16:56
*** quodt has quit IRC16:56
*** jukart has quit IRC16:57
projekt01malthe, sound great!16:59
*** jayaraj has quit IRC17:00
maltheprojekt01: caching saves about 50 ms, so it's substantial.17:01
*** danielblackburn has joined #zope3-dev17:01
*** harobed has quit IRC17:08
*** harobed has joined #zope3-dev17:08
*** jpcw2002 has quit IRC17:12
*** jodok_ has quit IRC17:17
*** johbo has joined #zope3-dev17:17
*** jodok has joined #zope3-dev17:19
*** whit has quit IRC17:26
*** whit has joined #zope3-dev17:28
*** vimes656_ has quit IRC17:37
*** jpcw2002 has joined #zope3-dev17:37
*** quodt has joined #zope3-dev17:39
*** jukart has joined #zope3-dev17:39
danielblackburnnoticed some weirdness with pypi, my app would not grab the latest version of a package from pypi and even said the version specified could not be found. Then I just ran an easy_install of just the package alone and magically the next time I ran buildout of the other app the package was available.17:44
agroszerhey Daniel17:44
danielblackburnhey17:44
agroszersomtimes pypi burps17:45
agroszerthat's why it's giving those false errors17:45
danielblackburnmm17:45
agroszerre-run buildout or easy_install, on a 2nd 3rd try it works again17:45
danielblackburnyeah, its seems to work now17:46
agroszerpypi is kinda overloaded17:46
danielblackburndo you know if there is a fix in the works17:46
danielblackburnyeah , I imagine17:46
agroszerno idea17:46
danielblackburnmm17:46
agroszerno idea if somebody is working on that17:47
agroszerdo you have buildout cache set up?17:48
agroszerdanielblackburn ^^17:49
danielblackburnbuildout cache?17:50
danielblackburnnot that I know of17:50
agroszermakes buildouts pretty quick17:50
danielblackburnlike -N17:51
agroszerkinda, but even for other projects, it will download and store the eggs once17:51
*** jodok_ has joined #zope3-dev17:52
danielblackburnI will have to look into that17:52
agroszersee http://pypi.python.org/pypi/zc.buildout#using-a-download-cache17:52
danielblackburnthx17:53
*** rmarianski has joined #zope3-dev17:53
agroszerand create a ~/.buildout/default.cfg17:53
agroszerthat completes the thing17:53
agroszeryou're welcome17:53
danielblackburnthats really cool17:54
hazmatdanielblackburn, i've had that same issue17:56
danielblackburnIts pretty annoying17:56
hazmatbasically buildout bombs finding the package, but easy_install finds it17:56
danielblackburnbut once easy_install finds it buildout finds it...17:56
hazmati found it reproducible for python-memcached17:56
danielblackburnmm17:57
hazmatyou should always use easy_install within a virtualenv17:57
hazmatimo, or a separate interpreter.. else you pollute the gobal namespace17:57
danielblackburnah, yes17:57
*** benji_ has joined #zope3-dev18:00
*** benji has quit IRC18:00
*** sp0cksbeard has quit IRC18:02
*** sorindregan has quit IRC18:02
*** J1m_ has quit IRC18:03
*** ghendi has quit IRC18:03
*** romanofski has quit IRC18:04
*** jodok has quit IRC18:08
*** malthe is now known as malthe|out18:10
*** J1m_ has joined #zope3-dev18:12
*** maurits has quit IRC18:15
*** sunew has quit IRC18:20
*** d2m has quit IRC18:20
*** danielblackburn has quit IRC18:23
*** benji_ has quit IRC18:25
*** benji has joined #zope3-dev18:26
*** reco is now known as reco|meeting18:27
*** d2m has joined #zope3-dev18:27
*** jodok_ has quit IRC18:28
*** philiKON has joined #zope3-dev18:31
*** sp0cksbeard has joined #zope3-dev18:32
*** d2m has quit IRC18:33
*** b52lap has quit IRC18:39
*** d2m has joined #zope3-dev18:41
*** pcardune has joined #zope3-dev18:46
*** projekt01_ has joined #zope3-dev18:55
*** projekt01 has quit IRC18:55
*** salfield has quit IRC18:55
*** natea_ is now known as natea18:58
*** pcardune_ has joined #zope3-dev18:59
*** pcardune__ has joined #zope3-dev19:04
*** norro has quit IRC19:05
*** pcardune__ is now known as pcardune_vm19:05
*** tarek has quit IRC19:07
*** jukart has quit IRC19:13
*** pcardune has quit IRC19:16
*** harobed has quit IRC19:23
*** projekt01_ has quit IRC19:25
*** agroszer_ has joined #zope3-dev19:27
*** MJ has quit IRC19:29
*** toutpt has quit IRC19:33
*** pbugni has joined #zope3-dev19:34
*** agroszer has quit IRC19:40
*** salfield has joined #zope3-dev19:40
*** alecm has joined #zope3-dev19:40
*** ignas has quit IRC19:44
*** agroszer_ is now known as agroszer19:44
*** pbugni has quit IRC19:50
*** benji has quit IRC19:50
*** rmarianski has quit IRC19:50
*** whit has quit IRC19:50
*** malthe|out has quit IRC19:50
*** mkerrin has quit IRC19:50
*** kobold has quit IRC19:50
*** Aiste has quit IRC19:50
*** _basti_ has quit IRC19:50
*** pbugni has joined #zope3-dev19:51
*** benji has joined #zope3-dev19:51
*** rmarianski has joined #zope3-dev19:51
*** whit has joined #zope3-dev19:51
*** malthe|out has joined #zope3-dev19:51
*** mkerrin has joined #zope3-dev19:51
*** kobold has joined #zope3-dev19:51
*** Aiste has joined #zope3-dev19:51
*** _basti_ has joined #zope3-dev19:51
*** danielblackburn has joined #zope3-dev19:51
*** markusleist has quit IRC19:53
*** mgedmin has joined #zope3-dev19:53
*** tarek has joined #zope3-dev19:54
*** quodt has quit IRC19:55
*** menesis has quit IRC19:56
*** romanofski has joined #zope3-dev20:17
*** reco|meeting is now known as reco20:19
*** tarek has quit IRC20:19
*** harobed has joined #zope3-dev20:19
*** nathany has joined #zope3-dev20:20
*** ruda_porto has joined #zope3-dev20:24
*** sunew has joined #zope3-dev20:26
*** quodt has joined #zope3-dev20:33
*** danielblackburn has quit IRC20:38
*** danielblackburn has joined #zope3-dev20:39
*** RaFromBRC has joined #zope3-dev20:44
*** afd__ has quit IRC20:44
*** johbo_ has joined #zope3-dev20:44
*** danielblackburn has quit IRC20:49
*** philiKON has quit IRC20:49
*** danielblackburn has joined #zope3-dev20:49
*** jsadjohnson has quit IRC20:51
*** redir has joined #zope3-dev20:53
*** jodok has joined #zope3-dev20:54
*** sunew has quit IRC20:57
*** johbo has quit IRC21:01
*** jodok_ has joined #zope3-dev21:02
*** jodok has quit IRC21:03
*** jodok_ is now known as jodok21:04
*** timte_ has joined #zope3-dev21:06
*** timte has quit IRC21:13
*** alga_ has joined #zope3-dev21:13
*** stub has joined #zope3-dev21:16
*** greenman has joined #zope3-dev21:21
*** jpcw2002 has left #zope3-dev21:22
*** d2m has quit IRC21:22
*** alga has quit IRC21:30
*** dunny has joined #zope3-dev21:38
*** stub has quit IRC21:40
*** mkerrin has quit IRC21:40
*** jodok has quit IRC21:45
*** jodok_ has joined #zope3-dev21:45
*** quodt_ has joined #zope3-dev21:55
*** ruda_porto has quit IRC22:01
*** jodok_ is now known as jodok22:04
*** salfield has quit IRC22:09
*** quodt has quit IRC22:13
*** greenman has quit IRC22:17
*** jodok_ has joined #zope3-dev22:20
*** jodok has quit IRC22:20
*** greenman has joined #zope3-dev22:22
*** jodok has joined #zope3-dev22:25
*** jodok_ has quit IRC22:25
*** natea has quit IRC22:27
*** quodt has joined #zope3-dev22:32
*** tarek has joined #zope3-dev22:34
*** tarek has quit IRC22:37
*** tarek has joined #zope3-dev22:40
*** quodt_ has quit IRC22:52
instantfoohi! I want to store a bunch of (potentially thousands) intids persistently. What data types are recommended? I'm looking at IIBTree.IISet, IFBTree.IFTreeSet or something similar?23:01
instantfooi will do mostly a __contains__ and union/intersect operations on this collection23:03
srichterI think IISet is okay23:03
instantfoook!23:05
*** norro has joined #zope3-dev23:09
*** johbo_ has quit IRC23:15
*** RaFromBRC is now known as RaFromBRC|lunch23:34
*** redir has quit IRC23:37
*** quodt has quit IRC23:41
*** jodok has quit IRC23:47
*** agroszer has quit IRC23:48
*** sp0cksbeard has quit IRC23:51

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!