IRC log of #zope3-dev for Thursday, 2007-08-09

*** torkel_ has quit IRC00:07
*** torkel_ has joined #zope3-dev00:07
*** norro has quit IRC00:09
*** bigkev has quit IRC00:10
*** tarek has quit IRC00:14
*** torkel_ has quit IRC00:16
*** torkel_ has joined #zope3-dev00:16
rockyjodok: ping ...  got a question regarding lovely.tag00:18
jodokhey rocky :) shoot00:19
*** afd_ has joined #zope3-dev00:20
*** sm-afk has quit IRC00:20
rockyi'm trying to track when tags are changed on a content item but it seems no event is fired for that ... or none that i can find ... am i missing something or ?00:20
*** nathany has joined #zope3-dev00:24
*** wbuntu has quit IRC00:27
*** wbuntu has joined #zope3-dev00:30
*** torkel_ has quit IRC00:32
*** torkel_ has joined #zope3-dev00:32
*** markusleist has joined #zope3-dev00:32
*** benji has quit IRC00:33
*** jsadjohnson has quit IRC00:33
*** nerdalert has quit IRC00:34
*** rcrafton has quit IRC00:36
*** afd has quit IRC00:38
*** deo has joined #zope3-dev00:41
*** timte has quit IRC00:42
instantfoorephrasing my Q... is it possible to get a list of adapters that provide a certain interface and adapts a certain interface?00:46
wbuntulook in zope.app.apidoc.component00:48
wbuntuor investigate subscription adapters00:48
wbuntuactually, the latter is probably what you are looking for00:49
*** jsadjohnson has joined #zope3-dev00:51
instantfoook00:52
*** RaFromBRC is now known as RaFromBRC|away00:53
*** afd_ has quit IRC00:53
instantfoowbuntu: thx, that is exactly what i want to00:53
instantfoo..do00:53
*** torkel_ has quit IRC00:54
*** ignas has joined #zope3-dev00:56
*** tarek has joined #zope3-dev01:04
*** markusleist has quit IRC01:19
*** wbuntu has quit IRC01:37
*** tarek has quit IRC01:39
*** wbuntu has joined #zope3-dev01:40
*** MJ has quit IRC01:41
*** fcorrea has quit IRC01:48
*** b52laptop has quit IRC01:52
nathanyanyone have an example of using zope.sendmail i could look at (or know of one in zope svn)?02:08
nathanyi'm having what i'm sure is a simple problem... be good to look @ a working example02:09
*** RaFromBRC|away has quit IRC02:10
*** wbuntu has quit IRC02:10
*** RaFromBRC has joined #zope3-dev02:11
*** wbuntu has joined #zope3-dev02:13
*** J1m_ has quit IRC02:22
*** J1m has quit IRC02:23
*** huajie has joined #zope3-dev02:50
*** niemeyer has quit IRC02:55
*** povbot has joined #zope3-dev02:57
*** nathany has quit IRC03:00
*** sm has joined #zope3-dev03:08
*** jukart has quit IRC03:23
*** wbuntu has quit IRC03:24
*** wbuntu has joined #zope3-dev03:26
*** huajie has quit IRC03:39
*** pbugni has quit IRC03:43
*** whit has joined #zope3-dev03:47
*** jukart has joined #zope3-dev03:55
*** whit has quit IRC03:55
*** wbuntu has quit IRC04:00
*** whit_ has joined #zope3-dev04:00
*** rcrafton has joined #zope3-dev04:08
*** rcrafton_ has joined #zope3-dev04:33
*** rcrafton has quit IRC04:38
*** jukart has quit IRC04:38
*** rcrafton_ has quit IRC04:44
*** whit_ has quit IRC04:58
*** whit_ has joined #zope3-dev05:00
*** sm has quit IRC05:01
*** romanofski has quit IRC05:25
*** romanofski has joined #zope3-dev05:25
*** pbugni has joined #zope3-dev05:38
*** RaFromBRC has quit IRC05:41
*** natea_ has joined #zope3-dev05:54
*** whit_ has quit IRC05:54
*** whit_ has joined #zope3-dev05:57
*** redir has joined #zope3-dev05:59
*** alecm has quit IRC06:04
*** stub has joined #zope3-dev06:05
*** romanofs1i has joined #zope3-dev06:14
*** romanofski has quit IRC06:14
*** ignas has quit IRC06:21
*** philiKON_ has joined #zope3-dev06:24
*** redir has quit IRC06:25
*** marianom has left #zope3-dev06:26
*** Ariel_Calzada has quit IRC06:29
*** replaceafill has joined #zope3-dev06:32
*** deo has quit IRC06:34
*** romanofs1i has quit IRC06:39
*** romanofski has joined #zope3-dev06:39
*** philiKON has quit IRC06:40
*** whit_ has quit IRC06:42
*** whit_ has joined #zope3-dev06:43
*** natea_ has quit IRC06:47
*** greenman has quit IRC06:53
*** edgordon has joined #zope3-dev07:12
*** romanofski has quit IRC07:17
*** baijum has joined #zope3-dev07:24
*** whit_ has quit IRC07:30
*** whit_ has joined #zope3-dev07:31
*** kleist has joined #zope3-dev07:34
*** natea_ has joined #zope3-dev07:52
*** afd_ has joined #zope3-dev07:55
*** greenman has joined #zope3-dev07:56
*** dunny_ has joined #zope3-dev08:13
*** natea_ has quit IRC08:15
*** afd__ has joined #zope3-dev08:16
*** dunny has quit IRC08:17
*** jsadjohnson has quit IRC08:23
*** natea_ has joined #zope3-dev08:24
*** afd_ has quit IRC08:26
*** whit_ has quit IRC08:40
*** tjs has joined #zope3-dev08:41
tjsdo zope objects inthe zodb keep a persited reference to their parent? or is the parent passed into the object when its traversed to?08:42
*** whit_ has joined #zope3-dev08:42
tjsI've got my storm objects being added happily into the zope heirarchy, but now I need to implement IPhysicallyLocatable08:43
afd__tjs: that's ILocation AFAIK, some objects implement it, some don't08:43
*** cursor has joined #zope3-dev08:43
tjsahh08:43
afd__look in zope.location.interfaces08:44
tjsbut stuff that wants to exist in the heirarchy and be 'publishable' would need to implement it though?08:44
tjsty08:44
afd__tjs: yes08:44
afd__there are also container proxies08:44
*** sorindregan has joined #zope3-dev08:44
tjsok08:45
tjsso what assigns to __parent__ and __name__ ?08:45
afd__a container's __setitem__ is wired to place those in the child08:46
afd__as far as I remember08:46
tjsah..08:46
*** natea_ has quit IRC08:46
tjshm08:46
*** jodok has quit IRC08:47
philiKON_yup, afd__ is right08:48
philiKON_basically, what a container does is:08:48
philiKON_check if the object that it's supposed to add to itself provides ILocation/IContained08:48
philiKON_if so, it assumes that the object is ok with having  a __parent__ and __name__ property set directly08:48
philiKON_if not, it will use a persistent locationproxy08:49
philiKON_that wraps the object transparently08:49
philiKON_and adds __parent__ and __name__ w/o changing the object underneath08:49
philiKON_this is described in my book, btw :)08:51
tjsI guess I'll need to add a __parent__ and __name__ column to my tables08:52
tjsphiliKON_: which is your book?08:52
philiKON_http://worldcookery.com08:52
tjsoh08:52
tjsyes we have two of those around here08:52
tjs:)08:53
tjsI think they are both out with our new juniors08:53
philiKON_good :)08:53
philiKON_not good :)08:53
tjsnm, I'll make work buy more ;)08:53
philiKON_sounds like you need to buy some more *wink*08:53
philiKON_hehe08:53
tjsIt was recommended to me by several friends who work on LP, as 'the best zope3 book' when I took this job08:54
philiKON_well, there are only two out there, so....08:54
tjsreally?08:55
philiKON_yeah08:55
tjshm, I might be thinking of the bajillion zope2/plone ones08:55
philiKON_yup08:55
* philiKON_ starts morning workout... laters08:55
tjsoh08:56
tjsone quick q08:56
tjsas a publisher of a technical book08:56
tjswhat do you think of that crazy ruby book with cats ?08:56
tjspoignantguide.net, as a style08:56
tjsthink it will 'catch on' ?08:56
tjs(not ruby, God forbid) the writing style in technical manuals08:57
*** yvl has joined #zope3-dev09:03
*** whit_ has quit IRC09:04
*** whit_ has joined #zope3-dev09:06
*** sm has joined #zope3-dev09:09
*** cursor_ has joined #zope3-dev09:09
*** cursor has quit IRC09:10
*** baijum has quit IRC09:13
*** sorindregan has quit IRC09:16
*** sorin has joined #zope3-dev09:18
*** sorin is now known as sorindregan09:19
*** romanofski has joined #zope3-dev09:33
romanofskimoin09:36
*** chacha_chaudhry has joined #zope3-dev09:40
*** replaceafill has quit IRC09:40
*** afd__ has quit IRC09:41
*** d2m has joined #zope3-dev09:44
*** jodok has joined #zope3-dev09:48
*** jodok has joined #zope3-dev09:49
*** naro has joined #zope3-dev09:53
philiKON_tjs: i couldn't write like that, mostly because i lack that kind of creativity10:14
philiKON_tjs: it also serves a different audience from what i usually serve10:14
*** whit_ has quit IRC10:15
tjswhat, crazy people?10:15
tjs;)10:15
philiKON_heh10:16
tjshome time :)10:16
*** tjs has left #zope3-dev10:16
*** whit_ has joined #zope3-dev10:17
*** markusleist has joined #zope3-dev10:20
*** timte has joined #zope3-dev10:20
*** reco has joined #zope3-dev10:23
*** whit_ has quit IRC10:40
*** whit_ has joined #zope3-dev10:40
*** MrTopf has joined #zope3-dev10:54
*** tarek has joined #zope3-dev11:08
*** elro has joined #zope3-dev11:08
*** greenman has quit IRC11:10
*** greenman has joined #zope3-dev11:11
*** vlado has joined #zope3-dev11:31
*** stub has quit IRC11:32
*** stub has joined #zope3-dev11:33
*** greenman has quit IRC11:38
*** MJ has joined #zope3-dev11:38
*** sm has quit IRC11:41
*** salfield has quit IRC11:52
*** tarek_ has joined #zope3-dev11:59
*** greenman has joined #zope3-dev12:03
*** tarek has quit IRC12:09
*** ktwilight_ has joined #zope3-dev12:09
*** junkafarian has joined #zope3-dev12:12
*** ferrafox has joined #zope3-dev12:12
*** reco has quit IRC12:18
*** mkerrin has joined #zope3-dev12:20
*** ktwilight has quit IRC12:23
*** whateverhere has joined #zope3-dev12:23
*** ktwilight_ has quit IRC12:26
*** whateverhere is now known as ktwilight12:26
*** ktwilight has quit IRC12:31
*** greenman has quit IRC12:33
*** ktwilight has joined #zope3-dev12:33
*** b52laptop has joined #zope3-dev12:34
*** ferrafox_ has joined #zope3-dev12:40
*** greenman has joined #zope3-dev12:41
*** projekt01 has joined #zope3-dev12:52
*** stub has quit IRC12:56
*** ksmith99_ has joined #zope3-dev12:57
*** ksmith99 has quit IRC12:57
*** ferrafox has quit IRC12:58
*** HerrTopf has joined #zope3-dev13:01
*** ferrafox_ is now known as ferrafox13:04
*** romanofski has quit IRC13:07
*** MrTopf has quit IRC13:07
*** tarek__ has joined #zope3-dev13:08
*** romanofski has joined #zope3-dev13:15
*** stub has joined #zope3-dev13:17
*** pcardune has joined #zope3-dev13:19
*** tarek_ has quit IRC13:20
*** romanofski has quit IRC13:26
*** HerrTopf is now known as MrTopf13:26
*** romanofski has joined #zope3-dev13:26
*** kleist has quit IRC13:42
sorindreganhi, can somebody help me with something?13:48
sorindreganis there a place where I can configure the max request size in z3?13:49
wiggychecked zope.conf ?13:49
sorindreganyes13:50
sorindregannothing regarding size13:50
wiggyadd something?13:54
sorindreganI try to upload video13:55
wiggythat's where you can set it for zope2, I would expect zope3 to have a similar option13:55
sorindreganand videos bigger that 100 MB are not uploaded13:55
sorindreganI got error13:55
sorindreganbut nothing in the log file13:56
sorindreganto specify the cause of the error13:56
*** jsadjohnson has joined #zope3-dev13:59
sorindreganmaybe it's not necessary a limitation of size14:00
sorindreganbut it happens at bigger videos14:00
*** afd has joined #zope3-dev14:02
wiggyjust check the zope sources14:04
wiggycan't be that hard to find14:04
*** redir has joined #zope3-dev14:05
*** stub has quit IRC14:07
*** elro has left #zope3-dev14:11
sorindreganok wiggy, thx14:12
*** niemeyer has joined #zope3-dev14:14
*** Newfie2007 has joined #zope3-dev14:17
*** Ariel_Calzada has joined #zope3-dev14:21
*** dunny_ has quit IRC14:24
*** projet01_ has joined #zope3-dev14:39
*** b52lap has joined #zope3-dev14:43
*** b52laptop has quit IRC14:44
*** jsadjohnson has quit IRC14:44
*** rocky has quit IRC14:47
*** MJ has quit IRC14:52
*** rocky has joined #zope3-dev14:53
*** romanofski has quit IRC14:54
*** tarek__ has quit IRC14:55
*** projekt01 has quit IRC14:59
*** tarek has joined #zope3-dev15:01
*** redir has quit IRC15:03
*** benji has joined #zope3-dev15:04
*** rcrafton has joined #zope3-dev15:07
*** mgedmin has joined #zope3-dev15:11
*** fcorrea has joined #zope3-dev15:13
*** whit_ has quit IRC15:15
*** whit_ has joined #zope3-dev15:18
*** ignas has joined #zope3-dev15:22
*** jukart has joined #zope3-dev15:30
*** projet01_ is now known as projekt0115:33
*** whit_ has quit IRC15:36
*** whit_ has joined #zope3-dev15:38
*** greenman has quit IRC15:39
*** jsadjohnson has joined #zope3-dev15:40
*** yvl has quit IRC15:42
*** cursor_ has quit IRC15:51
*** norro has joined #zope3-dev15:55
*** mrevoir has joined #zope3-dev15:55
junkafarianis it possible to expose a class with the ability to call any method?15:59
junkafarianeg: www.example.com/class/method16:00
junkafarianor better:16:00
junkafarianwww.example.com/class.method16:00
junkafarian?16:00
junkafarianor are you only able to call a class?16:00
*** whit has joined #zope3-dev16:01
*** stub has joined #zope3-dev16:02
*** kleist has joined #zope3-dev16:02
*** redir has joined #zope3-dev16:06
*** baijum has joined #zope3-dev16:12
*** edgordon has quit IRC16:16
*** norro has quit IRC16:21
*** baijum has quit IRC16:32
*** whit has quit IRC16:33
*** whit has joined #zope3-dev16:35
junkafarianalso, is it possible to return a string  rather than html through a browser:page directive16:39
junkafarian?16:39
afdjunkafarian: you can define your own __call__ for the class, which returns anything you want16:40
junkafarianah16:40
benjiand you can set the content type (via request.response, IIRC)16:40
junkafariansorry i was looking at the source in firebug16:40
junkafariandidnt realise that it wasnt enveloped in html :$16:41
*** whit_ has quit IRC16:50
*** whit_ has joined #zope3-dev16:51
*** whit has quit IRC16:52
*** edgordon has joined #zope3-dev16:56
*** rcrafton has quit IRC16:56
*** edgordon_ has joined #zope3-dev16:56
*** projekt01 has quit IRC17:09
*** rcrafton has joined #zope3-dev17:09
*** edgordon has quit IRC17:12
*** whit has joined #zope3-dev17:17
*** sorindregan has quit IRC17:18
*** whit_ has quit IRC17:21
*** whit_ has joined #zope3-dev17:24
*** jukart has quit IRC17:28
*** cursor has joined #zope3-dev17:42
*** afd has quit IRC17:44
*** chacha_chaudhry has quit IRC17:50
edgordon_should extending IFolder be enough to grant IReadContainer and IWriteContainer permissions to an interface? The zcml requires zope.View for the interface that extends IFolder, but I get a permissions error when trying to call length on the folder's keys.18:03
*** gumpa has joined #zope3-dev18:12
*** nathany has joined #zope3-dev18:18
*** rlo has joined #zope3-dev18:22
*** jfroche has joined #zope3-dev18:25
*** redir has quit IRC18:30
*** jsadjohnson has quit IRC18:30
*** jfroche has quit IRC18:31
*** norro has joined #zope3-dev18:33
*** nerdalert has joined #zope3-dev18:33
*** afd_ has joined #zope3-dev18:34
*** vlado has quit IRC18:37
*** ChrisW has joined #zope3-dev18:47
ChrisWhey all - how can I find out what subscribers are registered for a particular event?18:48
nerdalertthink you should be able to use zope.component.queryAdapters(ITheEventInterface)18:52
*** cursor has quit IRC18:52
ChrisWhmm, lemme try that18:53
nerdalertlet me know how it goes18:54
*** sm has joined #zope3-dev18:56
ChrisWum, queryAdapter takes an object18:56
ChrisWwhich I need to adapter to an interface18:56
ChrisWso I'm not sure how to use it as you suggest18:57
*** MrTopf has quit IRC19:00
whitChrisW: iirc, zope.app.apidoc might help you here19:00
whitmaybe in component19:00
ChrisWdoes it show what subscribers there are for a [articular type of event?19:01
whittake a look... it lets you query for registration objects for adapters.  you should be able to query by the event interface19:02
*** pcardune has quit IRC19:06
*** rcrafton has quit IRC19:07
ChrisWany idea which bit of apidoc code Ishould be looking at?19:10
ChrisWcome to think of it, where does the apidoc code live?19:12
*** RaFromBRC has joined #zope3-dev19:15
edgordon_how do i get implemented interfaces of a proxied object?19:21
*** whit has quit IRC19:21
*** whit_ has quit IRC19:21
*** whit_ has joined #zope3-dev19:21
*** jodok has quit IRC19:22
*** whit_ is now known as wbuntu19:22
*** stub has quit IRC19:23
afd_edgordon_: when dealing with proxied objects, from pdb, you can do something like:19:27
afd_from zope.proxy import getProxiedObject19:27
afd_the_obj = getProxiedObject(proxied_obj)19:28
afd_and then you can do providedBy(the_obj)19:28
*** jsadjohnson has joined #zope3-dev19:28
edgordon_thanks, i was just reading through the interfaces of zope.proxy19:28
afd_providedBy(obj) might even work with the proxied object...19:29
afd_not sure19:29
*** alecm has joined #zope3-dev19:29
edgordon_yeah, but doesn't providedBy have to know what interface you are looking for?19:30
edgordon_nevermind, i am stupid19:32
edgordon_that is what i was using anyways19:32
edgordon_yeah, works great19:32
smmorning19:40
sma zmi find loads all objects into memory even if you're just searching by id, eh19:40
*** naro has quit IRC19:48
*** redir has joined #zope3-dev20:10
*** ferrafox has quit IRC20:17
*** ChrisW has quit IRC20:21
*** afd_ has quit IRC20:21
*** rlo has quit IRC20:22
*** wbuntu has quit IRC20:33
*** wbuntu has joined #zope3-dev20:35
*** edgordon_ has quit IRC20:42
*** markusleist has quit IRC20:46
*** redir has quit IRC20:48
*** junkafarian has quit IRC20:48
*** redir has joined #zope3-dev20:49
*** rlo has joined #zope3-dev20:58
*** b52lap has quit IRC21:01
*** afd has joined #zope3-dev21:04
*** mgedmin has quit IRC21:05
*** redir has quit IRC21:05
*** markusleist has joined #zope3-dev21:12
*** norro_ has joined #zope3-dev21:13
*** lisppaste6 has quit IRC21:16
*** gumpa has quit IRC21:18
*** lisppaste6 has joined #zope3-dev21:22
*** rlo has quit IRC21:28
*** jodok has joined #zope3-dev21:31
*** rlo has joined #zope3-dev21:33
*** dunny has joined #zope3-dev21:38
*** redir has joined #zope3-dev21:43
*** kleist has quit IRC21:45
*** pbugni has quit IRC21:45
*** rlo has quit IRC21:52
*** mkerrin has quit IRC22:07
*** Newfie2007 has quit IRC22:12
*** ignas has quit IRC22:18
*** ignas has joined #zope3-dev22:18
*** ignas has quit IRC22:19
*** b52laptop has joined #zope3-dev22:21
*** wbuntu has quit IRC22:29
*** wbuntu has joined #zope3-dev22:32
*** greenman has joined #zope3-dev22:35
*** edgordon has joined #zope3-dev22:36
*** whit has joined #zope3-dev22:45
*** reco has joined #zope3-dev22:52
*** greenman has quit IRC22:54
instantfoohi, is there an equivalent of zope.component.subscribers(objects, iface) that only takes a single object as first argument?22:57
instantfoofrom an article by Jim: "Adapters that adapt a single object are an important special case, so a simple interface-call API is provided to handle this special case"22:59
philiKON_zope.compoment.subscribers((theonlyobject,), iface)22:59
philiKON_in other words, you pass a 1-tuple23:00
philiKON_for 'objects'23:00
instantfoook, I'm doing this already: subscribers([myobj], IFoo)23:00
philiKON_semantically, a tuple is preferred23:01
instantfooit'd be slightly quicker with a tuple?23:01
instantfoook23:01
*** afd has quit IRC23:02
*** pbugni has joined #zope3-dev23:25
*** stub has joined #zope3-dev23:33
*** edgordon has quit IRC23:35
*** norro_ has quit IRC23:36
*** mrevoir_ has joined #zope3-dev23:39
*** Jell-O-Fishi has quit IRC23:43
*** jsadjohnson has quit IRC23:47
*** mrevoir has quit IRC23:51
*** jsadjohnson has joined #zope3-dev23:52
*** d2m has quit IRC23:54
*** tarek has quit IRC23:59

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