IRC log of #zope3-dev for Friday, 2007-08-10

*** tarek has joined #zope3-dev00:00
*** greenman has joined #zope3-dev00:10
*** wbuntu has quit IRC00:15
*** wbuntu has joined #zope3-dev00:17
*** nerdalert has quit IRC00:23
*** benji has quit IRC00:26
*** mrevoir_ has quit IRC00:27
*** timte has quit IRC00:32
*** whit has quit IRC00:47
*** jsadjohnson has quit IRC00:49
*** RaFromBRC is now known as RaFromBRC|away00:50
rockyany lovely.tag hackers around? i think i found a bug00:52
*** jsadjohnson has joined #zope3-dev00:53
*** nathany has quit IRC00:59
*** Ariel_Calzada has quit IRC01:04
*** redir has quit IRC01:13
*** RaFromBRC|away is now known as RaFromBRC01:24
*** ksmith99_ has left #zope3-dev01:29
*** tarek has quit IRC01:36
*** lezardo_ has joined #zope3-dev01:38
*** sm has quit IRC01:47
*** wbuntu has quit IRC01:48
*** edgordon has joined #zope3-dev01:49
*** wbuntu has joined #zope3-dev01:51
*** lezardo_ has quit IRC01:53
*** norro has quit IRC02:08
*** rocky has quit IRC02:13
*** reco has quit IRC02:29
*** mrevoir has joined #zope3-dev02:31
*** natea|icecream has joined #zope3-dev02:38
*** pbugni has quit IRC03:23
*** wbuntu has quit IRC03:23
*** wbuntu has joined #zope3-dev03:24
*** natea|icecream is now known as natea03:43
*** jukart has joined #zope3-dev03:44
*** jodok has quit IRC03:45
*** jukart has quit IRC03:47
*** b52laptop has quit IRC03:48
*** sm has joined #zope3-dev03:51
*** pbugni has joined #zope3-dev03:51
*** natea has quit IRC03:57
*** RaFromBRC has quit IRC04:17
*** GuestBaha15 has joined #zope3-dev04:21
GuestBaha15Salut a tous !!!!!!!04:22
*** GuestBaha15 has quit IRC04:24
*** natea_ has joined #zope3-dev04:38
*** pbugni has quit IRC04:38
*** pbugni has joined #zope3-dev04:40
*** pbugni has quit IRC04:43
*** natea_ has quit IRC05:00
*** povbot has joined #zope3-dev05:02
*** natea_ has joined #zope3-dev05:04
*** replaceafill has joined #zope3-dev05:09
*** wbuntu has quit IRC05:17
*** fcorrea has quit IRC05:20
*** wbuntu has joined #zope3-dev05:20
*** niemeyer has quit IRC05:27
*** greenman has quit IRC05:30
*** povbot has joined #zope3-dev05:42
*** natea_ has quit IRC05:47
*** Ariel_Calzada has joined #zope3-dev05:50
*** replaceafill has quit IRC05:54
*** alecm has quit IRC06:12
*** natea_ has joined #zope3-dev06:21
*** jsadjohnson has quit IRC06:23
*** povbot` has joined #zope3-dev06:25
*** povbot` has joined #zope3-dev06:31
*** philiKON has joined #zope3-dev06:34
*** povbot` has joined #zope3-dev06:43
*** povbot` has joined #zope3-dev06:48
*** redir has joined #zope3-dev06:48
*** replaceafill has joined #zope3-dev06:51
*** redir has quit IRC06:51
*** redir has joined #zope3-dev06:51
replaceafillhi. if someone's up :) is there any way to use formlib to process forms without using form_fields?06:53
*** povbot has quit IRC06:54
*** povbot has joined #zope3-dev06:58
lmillerIs there a way to list all adapters available for an object?07:01
*** povbot has joined #zope3-dev07:06
*** povbot has joined #zope3-dev07:11
*** povbot has joined #zope3-dev07:14
*** redir has quit IRC07:17
*** povbot has joined #zope3-dev07:22
*** kleist_ has joined #zope3-dev07:25
*** povbot` has quit IRC07:29
*** kleist has quit IRC07:40
*** replaceafill has quit IRC07:41
*** natea_ has joined #zope3-dev08:06
*** sorin has joined #zope3-dev08:08
*** sorin is now known as sorindregan08:09
*** greenman_ has joined #zope3-dev08:20
*** greenman has quit IRC08:22
*** cursor has joined #zope3-dev08:29
*** natea_ has quit IRC08:30
*** afd has joined #zope3-dev08:34
*** stub has quit IRC08:40
*** wbuntu has quit IRC08:42
*** wbuntu has joined #zope3-dev08:44
*** replaceafill has joined #zope3-dev08:57
*** wbuntu has quit IRC09:14
*** whit_ has joined #zope3-dev09:14
*** yvl has joined #zope3-dev09:17
*** naro has joined #zope3-dev09:54
*** timte has joined #zope3-dev09:56
*** jodok has joined #zope3-dev09:57
*** zagy_ is now known as zagy09:57
*** jodok has quit IRC09:58
*** naro has quit IRC10:01
*** jodok has joined #zope3-dev10:02
*** jodok has quit IRC10:06
*** tarek has joined #zope3-dev10:27
*** stub has joined #zope3-dev10:28
*** d2m has joined #zope3-dev10:28
*** whit_ has quit IRC10:36
*** lmiller has quit IRC10:40
*** Jell-O-Fishi has joined #zope3-dev11:14
*** greenman_ has quit IRC11:43
*** greenman has joined #zope3-dev11:47
*** afd is now known as afd_11:49
*** junkafarian has joined #zope3-dev11:57
*** markusleist has quit IRC12:03
replaceafillhi. im trying to use zc.datetimewidget and i understand i have to provide an adapter for ITZInfo. I did, but my form's returned datetime objects always have utc format12:04
replaceafillis the adapter to avoid this?12:04
afd_da12:09
afd_wrong window12:10
zagyreplaceafill: afaik the ITZInfo returns the desired timezone12:10
zagyreplaceafill: poteintially with information from the request12:10
replaceafilli set the adapter to return a fixed tz12:11
*** jodok has joined #zope3-dev12:12
replaceafilland i thought the returned datetime object would come with my tz, but the come in utc12:12
*** MJ has joined #zope3-dev12:16
*** ChrisW has joined #zope3-dev12:20
ChrisWhey all, I'm trying to write a test to check that the right subscribers are mapped to the right interfaces12:20
ChrisWas a result, I'm trying to get a list of the subscribers for a particular interface12:21
ChrisWthis seems to be a very hard thing to do :-S12:21
ChrisWanyone got any ideas?12:21
wiggyisn't that a queryAdapters call?12:21
afd_ChrisW: this question came up yesterday as well, watch the IRC log12:22
wiggyPhiliKON: zope.compoment.subscribers((theonlyobject,), iface)12:22
wiggythat was the answer12:22
philiKONyup12:23
*** b52laptop has joined #zope3-dev12:23
philiKONthis will return an iterable. iterating over this iterable will already invoke the subscribers, though12:23
replaceafillhow do i keep submitted values after submitting a custom action? my submit is successful but the values are gone when the form is refreshed12:29
wiggyphiliKON: how easy/hard is it to do a zodb-less grok project?12:30
philiKONdefine "zodb-less"12:30
philiKON*completely* zodb-less?12:30
philiKONor would it be ok to have one or two meaningless objects in a zodb instance?12:31
philiKON(meaningless meaning the root object ;))12:31
wiggyit would be ok but if it isn't hard to do without them preferable without12:31
philiKONwell ditching the zodb completely is hard currently12:32
wiggythen I won't bother :)12:33
philiKONboth from a zope3 perspective and grok12:33
philiKONbut if you're fine with a zodb that just has a root folder and a grok.Application object in it12:33
philiKONthen it's possible to have all other objects come from, say, sql12:33
ChrisWafd: I brought it up yesterday, the answers given didn't help ;)12:42
afd_ok12:42
ChrisWwiggy: yeah, but I don't really want to call the subscribers12:42
ChrisWjust see what's registered12:42
ChrisWalso, what object do I pass and what interface?12:43
ChrisWphiliKON: on the zodb-less issue, I thought someone did some work on that? I was going to, but it got sidelined behind a million other things :-(12:43
philiKONyes jinty has a branch12:44
ChrisWand I remember us having discussions about having a root "utility" rather than an object12:44
philiKONwe talked about it at EP12:44
philiKONyup12:44
philiKONwell, a root object factory utility12:44
ChrisWyeah, that's where I disagreed12:44
ChrisWI don't see why we don't just have something that gets the root and is configured from zcml12:45
ChrisWalthough I remember you bringing up something about startup order causing problems there12:45
philiKONthat's what that is :)12:45
ChrisWanyway, as I said, maybe one year soon...12:45
philiKONfactory = getUtility(IRootObjectFactory); root = factory()12:45
ChrisWhow do I get the subscribers for an object interface without calling them?12:46
wiggylook at what subscribers does internally12:46
ChrisWwiggy's answer used two undefined variables that I don't know how to define ;-)12:46
ChrisWI have12:46
ChrisWit's confusing :-(12:46
wiggymy answer was a copy&paste of philiKON's answer from yesterday12:47
ChrisWthe implementation of zope 3's event system leaves a lot to be desired...12:47
* philiKON wonders what ChrisW needs to do12:47
ChrisWI want to write a test to make sure that the correct susbcribers are subscribed12:48
ChrisWso I'm looking for a way to see what subscribers there are for a given itnerface12:48
ChrisWas a concrete example, IObjectAddedEvent12:49
philiKONyou can't simply send an event and check on their effect?12:49
ChrisWno, there are *lots* of different subscribers here12:49
ChrisWI want to unit test each subscriber, and then test that they're subscribed to the right things12:50
philiKONthis seems weird12:50
ChrisWwhat you described is a big ol' integration and functional test that I may do some way down the line...12:50
philiKONif it's a unit test12:50
philiKONyou're going to do your own test setup12:50
ChrisWeach susbcriber is a function12:50
ChrisWso I can unit test them12:50
ChrisWthat bit is easy12:50
philiKONright12:50
*** Jell-O-Fishi has quit IRC12:50
ChrisWhowever, I also want to test that the zcml mapping subscribers to events is correct12:51
philiKONwell, that's an integration test12:51
ChrisWI *don't* want to have to do that by permutation testing every single event and looking for obversvable changes12:51
ChrisWthat would be extremely time consuming and hard to do...12:51
philiKONuh huh.12:52
ChrisWthere must be *some* way to interrogate whatever registry is used to find out what subscribers there are12:52
philiKONthat's how we usually do it though12:52
*** tarek has quit IRC12:52
ChrisWmost people "usually" use php and mysql to develop web apps... being "usual" doesn't necessarilly mean it's the right thing to do ;-)12:53
ChrisWwhere is the actual registry that keeps the mappings?12:53
philiKONzope.component.getGlobalSiteManager().adapters.subscriptions()12:53
philiKONthe ...adapters thing is the adapter registry12:53
philiKONand if it seems to have a subscriptions() method12:53
ChrisWwhat does getGlobalSiteManager return in Zope 2.9?12:54
philiKONof which i don't know what it does12:54
philiKONthe global site manager?12:54
ChrisWyep12:54
ChrisWwhere's the code for it?12:54
philiKONfor what?12:54
ChrisWthe global site manager12:54
philiKONin zope.component somewhere12:54
ChrisWheh, pdb here we come12:55
philiKONzope.component.getGlobalSiteManager() is available in zope 2.012:55
philiKON2.912:55
philiKONso, getGlobalSiteManager() returns the global component registry12:55
ChrisWI wonder what wouldhappen if getGlobalSiteManager returned something that did somethign different, but still implemented all the interfaces, that the current one?12:55
philiKONhuh?12:56
philiKONwhy don't you let me finish12:56
ChrisWthat -> than12:56
ChrisWsorry, side thought...12:56
*** baijum has joined #zope3-dev12:56
philiKONso, getGlobalSiteManager() returns the global component registry12:56
* ChrisW shuts up and listens12:56
philiKONcomponent registries have an adapters and a utilities attribute12:56
philiKONwhich are the actual adapter and utility registries12:56
philiKONsubscribers are part of the adapter registry12:56
ChrisW*nods*12:57
philiKONadapter registries are implemented in zope.interface.adapter12:57
philiKONzope.interface.interfaces.IAdapterRegistry defines a "def subscriptions()" method12:57
philiKONthis may do what you need, not sure12:58
philiKONalternatively, you can loop over the registrations12:58
*** naro has joined #zope3-dev12:59
ChrisWdoesn't the iterable returned by the subscriptions interface call the subscribers when you iterate over it?12:59
philiKONfor registration_object in getGlobalSiteManager().registeredHandlers()12:59
philiKONright, that's why you don't loop over the subscribers but over registration objects describing each registration12:59
philiKONthis, however, will get you information about all globally registered subscribers13:00
philiKONso you'll have to filter by type13:00
ChrisWhow come the subscriptions methoddoesn't just return the subscriptions, rather than calling them?13:00
philiKONwell, i don't know what it does13:01
*** MJ has quit IRC13:01
*** jodok has quit IRC13:01
*** mrevoir has quit IRC13:01
*** Theuni has quit IRC13:01
*** fil has quit IRC13:01
philiKONi suggest you try it out13:01
*** naro has left #zope3-dev13:01
philiKONif subscrpitions() doesn't work, try the registeredHandlers() bit + filtering13:01
*** MJ has joined #zope3-dev13:01
*** jodok has joined #zope3-dev13:01
*** mrevoir has joined #zope3-dev13:01
*** fil has joined #zope3-dev13:01
*** Theuni has joined #zope3-dev13:01
ChrisWwere is registeredHandlers defined?13:03
philiKONon the site manager13:03
philiKONgetGlobalSiteManager().registeredHandlers13:03
ChrisWwhere's ISiteManager defined?13:03
philiKONzope.component.interfaces13:03
ChrisWhas no registeredHandlers method :-(13:04
philiKONah dang, zope 2.913:05
ChrisWhow do contextual adapters and susbcribers work?13:06
philiKONcontextual adapters?13:06
ChrisWI'm guessing it's the logic in zope.component/__init__.py?13:06
philiKONall adapters are contextual...13:06
ChrisWno, in terms of finding where to look up adapter registrations, etc13:07
*** tarek has joined #zope3-dev13:07
philiKONgetSiteManager() is used13:07
ChrisWie: overriding adapter registrations using a "site" in a zodb13:07
philiKONah right13:07
philiKONthat's done using the "hooks" in zope.app.component.hooks13:07
ChrisWnot in 2.9 it's not ;-)13:08
philiKONbasically, zope.component.getSiteManager() is overridden with another implementation13:08
philiKONthat knows about sites13:08
philiKONyes13:08
*** sm has quit IRC13:08
philiKONeven in zope 2.913:08
ChrisWor is hooks a function?13:08
philiKONzope.app.component.hooks is a module13:08
philiKONand it's there in zope 2.913:08
philiKONnotice *zope.app*13:08
philiKONnot zope.component13:08
ChrisWah, heh13:09
ChrisWI never understood the reasons for zope.app.x and zope.x13:09
philiKONzope.component knows nothing of locality and sites13:09
philiKONme neither, that's why we got rid of it13:09
philiKONyou're preaching to the choir here13:09
ChrisWheh13:09
ChrisWso no zope.app.component anymore?13:09
philiKONthat's not what i'm saying13:09
philiKONwe can't just get rid of the old modules13:10
philiKONwe just won't introduce new zope.app modules13:10
ChrisWugh13:13
ChrisWany way they could just go away? ;-)13:13
* philiKON remembers ChrisW whining about zope3's bad BBB behaviour a few months ago...13:14
ChrisWwhich specific bad bit of it? ;-)13:15
philiKONi was just paraphrasing you13:15
ChrisWwhat's the difference between getSiteManager and getGlobalSiteManager?13:16
philiKONi think we've tried real hard and we nver broke BBB13:16
*** replaceafill has quit IRC13:16
philiKONgetSiteManager returns whichever is the active one13:16
philiKON(could be from a site)13:16
ChrisWand what's the Zope 2.9 equivalent of registeredHandlers?13:16
philiKONgetGlobalSiteManager returns, duh, the global one13:16
philiKONi don't know13:16
ChrisW:'(13:17
*** projekt01 has joined #zope3-dev13:35
*** baijum has left #zope3-dev13:41
*** baijum_ has joined #zope3-dev13:42
*** b52laptop has quit IRC13:42
*** baijum_ is now known as baijum13:42
*** b52laptop has joined #zope3-dev13:43
*** greenman has quit IRC13:48
*** baijum has quit IRC13:49
*** baijum has joined #zope3-dev13:51
*** baijum_ has joined #zope3-dev13:53
*** baijum_ has quit IRC13:58
*** baijum has quit IRC14:00
*** baijum has joined #zope3-dev14:00
*** jfroche has joined #zope3-dev14:02
*** Newfie2007 has joined #zope3-dev14:05
*** spython has joined #zope3-dev14:15
*** mkerrin has joined #zope3-dev14:17
spythonhi, I need some sort of URI/ID for my persistent object so I can easily access it no matter if it's moved to another container or it's __name__ changes. Any ideas?14:19
philiKONintids14:19
spythonso the __hash__ is not suitable for this?14:19
philiKONno14:19
spythonk thx14:20
philiKONzope3 has an integer id (zope.app.intid) framework14:20
philiKONit's described in my book14:20
philiKONhttp://worldcookery.com14:20
*** norro has joined #zope3-dev14:20
spythonmaybe i should get it14:20
philiKONmaybe :)14:20
wiggyyou should14:20
spython:D14:20
*** mrevoir has left #zope3-dev14:21
norrohi14:21
spythonhello14:22
*** afd_ has quit IRC14:30
timtephiliKON: thank god we have your book, what would we have done without it?  :)14:33
philiKONwritten your own? :)14:33
*** baijum has quit IRC14:42
spythonbook seems like a good choice, relaxing reading before bed ;)14:45
spythonBut really, I like the README.txt's so far in the packages, nicely written14:45
*** ferrafox has joined #zope3-dev14:46
spythonI've more or less written a book myself with all the notes i have :D14:47
philiKONput it online :)14:48
*** ferrafox has quit IRC14:50
spythoni bet no one can understan my sloppy writing and obscure figures..14:50
spythonso converting to text.. ? to lazy :)14:50
*** redir has joined #zope3-dev14:54
*** cursor_ has joined #zope3-dev15:02
*** cursor has quit IRC15:02
*** mgedmin has joined #zope3-dev15:02
*** afd_ has joined #zope3-dev15:03
*** rocky has joined #zope3-dev15:05
*** redir has quit IRC15:10
*** baijum has joined #zope3-dev15:13
TheuniMJ: ping15:16
MJTheuni: pong15:18
MJTheuni: I am being called for lunch15:19
MJTheuni: back in a bit :)15:19
*** Ariel_Calzada has quit IRC15:19
*** MJ is now known as MJ|lunch15:19
Theunik15:19
*** jfroche has quit IRC15:23
*** jsadjohnson has joined #zope3-dev15:30
*** baijum has quit IRC15:31
*** rcrafton has joined #zope3-dev15:31
*** cursor_ has quit IRC15:37
*** yvl has quit IRC15:42
*** MJ|lunch is now known as MJ15:46
MJTheuni: sup?15:47
*** niemeyer has joined #zope3-dev15:49
TheuniMJ:  see query15:57
MJwhat query?15:58
MJTheuni: Did you email me something?16:01
MJTheuni: if so, greylisting is going to delay it a bit..16:02
*** afd_ has quit IRC16:06
*** afd_ has joined #zope3-dev16:10
TheuniI used a private message window on irc.16:15
ChrisWyou done the logi nthing on here?16:18
ChrisWpm don't work unless you do, annoyingly..16:18
*** benji has joined #zope3-dev16:18
*** redir has joined #zope3-dev16:22
Theunihrn. should have been logged in. let's see.16:23
Theunignah. i wasn't. thanks for the pointer16:23
*** nerdalert has joined #zope3-dev16:24
*** reco has joined #zope3-dev16:28
*** rlo has joined #zope3-dev16:32
*** naro has joined #zope3-dev16:39
*** redir has quit IRC16:40
*** ChrisW has quit IRC16:42
*** stub has quit IRC16:52
*** mgedmin_ has joined #zope3-dev16:57
*** mgedmin has quit IRC17:04
*** sorindregan has quit IRC17:10
*** whit has joined #zope3-dev17:14
*** Ariel_Calzada has joined #zope3-dev17:19
*** edgordon has quit IRC17:20
*** fcorrea has joined #zope3-dev17:35
*** reco has quit IRC17:38
*** reco has joined #zope3-dev17:38
*** spython has quit IRC17:44
*** jsadjohnson has quit IRC17:47
*** regebro has joined #zope3-dev18:04
*** nathany has joined #zope3-dev18:12
*** ferrafox has joined #zope3-dev18:12
*** regebro has left #zope3-dev18:24
*** kleist_ has quit IRC18:33
*** kleist has joined #zope3-dev18:33
*** jsadjohnson has joined #zope3-dev18:33
*** salfield has joined #zope3-dev18:38
*** timte has quit IRC18:53
*** alecm has joined #zope3-dev18:55
*** zagy has quit IRC18:55
*** pbugni has joined #zope3-dev18:56
*** Jell-O-Fishi has joined #zope3-dev19:08
*** norro has quit IRC19:12
*** ktwilight has quit IRC19:15
*** ktwilight has joined #zope3-dev19:17
*** zagy has joined #zope3-dev19:17
*** projekt01 has quit IRC19:23
*** tarek_ has joined #zope3-dev19:24
*** norro has joined #zope3-dev19:28
*** cursor has joined #zope3-dev19:29
*** pbugni is now known as pbugni|afk19:37
*** tarek has quit IRC19:38
*** naro has quit IRC19:38
*** jodok has quit IRC19:41
*** philiKON has quit IRC19:45
*** jodok has joined #zope3-dev19:56
*** sm has joined #zope3-dev20:12
*** cursor has quit IRC20:13
*** fcorrea has quit IRC20:20
*** whit has quit IRC20:22
*** mkerrin has quit IRC20:30
*** nathany has quit IRC20:31
*** nathany_ has joined #zope3-dev20:31
*** ferrafox has quit IRC20:36
*** Ariel_Calzada has quit IRC20:38
*** jsadjohnson has quit IRC20:45
*** zagy has quit IRC21:10
*** junkafarian has quit IRC21:16
*** pbugni|afk is now known as pbugni21:19
*** edgordon has joined #zope3-dev21:19
*** kleist has left #zope3-dev21:22
*** whit has joined #zope3-dev21:33
*** Newfie2007 has quit IRC21:35
*** Newfie2007 has joined #zope3-dev21:36
*** b52laptop has quit IRC21:39
*** Newfie2007 has quit IRC22:00
*** Ariel_Calzada has joined #zope3-dev22:12
*** alecm has quit IRC22:12
*** alecm has joined #zope3-dev22:16
*** foxmjay has joined #zope3-dev22:27
*** foxmjay has quit IRC22:27
*** whit has quit IRC22:39
*** Ariel_Calzada has quit IRC22:48
*** b52laptop has joined #zope3-dev23:12
*** b52lap has joined #zope3-dev23:12
*** b52laptop has quit IRC23:13
*** jsadjohnson has joined #zope3-dev23:19
*** nathany_ has quit IRC23:23
*** d2m has quit IRC23:26
*** rlo has quit IRC23:27
*** mgedmin_ has quit IRC23:47

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