IRC log of #zope3-dev for Tuesday, 2006-07-18

*** PyNick has quit IRC00:02
*** philiKON has joined #zope3-dev00:08
*** batlogg has quit IRC00:11
*** batlogg has joined #zope3-dev00:13
*** gumpa has left #zope3-dev00:24
*** philiKON has quit IRC00:36
*** philiKON has joined #zope3-dev00:37
*** J1m has quit IRC00:53
*** hazmat has quit IRC00:54
*** benji has quit IRC00:55
*** senra has quit IRC00:59
*** niemeyer has quit IRC01:05
*** jhauser has quit IRC01:06
*** hazmat has joined #zope3-dev01:07
*** mgedmin has quit IRC01:16
*** mgedmin has joined #zope3-dev01:23
*** vlado_ has quit IRC01:25
*** nathany has joined #zope3-dev01:25
rockyhm... does anyone know about <browser:addform> and <browser:editform> being changed to use formlib ?01:29
*** yota has quit IRC01:37
*** ignas has quit IRC01:47
*** SteveA has quit IRC02:01
*** batlogg has quit IRC02:12
*** srichter has joined #zope3-dev02:16
*** nathany has quit IRC02:21
*** ChanServ sets mode: +o srichter02:30
*** nathany has joined #zope3-dev02:57
*** mgedmin has quit IRC03:01
philiKONrocky, no, not really03:13
rockyphiliKON: personally i think its dumb in order to create a form (edit form for example) with formlib that uses everything default that you have to touch zcml and py code03:30
philiKONrocky, i think it's ok03:41
philiKONwith browser:*form, zcml did too much03:41
rocky"useful defaults" are good03:41
philiKONzcml isn't about sensible defaults03:41
philiKONzcml is just a registration language03:41
philiKONautomation (=sensible defaults, if you want) happens in python03:42
philiKONso, if sensible defaults should happen, they should happen in some base class03:42
philiKONbut not in zcml03:42
*** alecm has quit IRC03:50
*** alecm has joined #zope3-dev03:52
*** whit has quit IRC03:59
*** alga has joined #zope3-dev04:01
*** whit has joined #zope3-dev04:05
*** pcardune has joined #zope3-dev04:05
*** rocky has quit IRC04:15
*** oferw has joined #zope3-dev04:26
*** hazmat has quit IRC04:43
*** oferw has quit IRC05:43
*** alga has quit IRC06:18
*** stub has joined #zope3-dev06:22
*** reco has quit IRC06:53
*** MacYET_ has joined #zope3-dev07:02
*** MacYET_ has left #zope3-dev07:03
*** alga has joined #zope3-dev07:18
*** srichter has quit IRC07:52
*** strichter has joined #zope3-dev07:52
*** eins has joined #zope3-dev08:05
einshi08:05
*** pcardune has quit IRC08:16
*** dobee has joined #zope3-dev08:19
*** alga has quit IRC08:26
*** dokai has quit IRC08:36
*** russf has quit IRC08:36
*** Aiste has quit IRC08:36
*** graham has quit IRC08:36
*** whit has quit IRC08:36
*** dunny has quit IRC08:36
*** flox|away has quit IRC08:36
*** zbir has quit IRC08:36
*** philiKON has quit IRC08:36
*** BjornT has quit IRC08:36
*** nouri has quit IRC08:36
*** wrobel has quit IRC08:36
*** whit has joined #zope3-dev08:37
*** philiKON has joined #zope3-dev08:37
*** dunny has joined #zope3-dev08:37
*** flox|away has joined #zope3-dev08:37
*** zbir has joined #zope3-dev08:37
*** dokai has joined #zope3-dev08:37
*** russf has joined #zope3-dev08:37
*** Aiste has joined #zope3-dev08:37
*** graham has joined #zope3-dev08:37
*** BjornT has joined #zope3-dev08:37
*** wrobel has joined #zope3-dev08:37
*** nouri has joined #zope3-dev08:37
*** batlogg has joined #zope3-dev08:42
*** jhauser has joined #zope3-dev08:43
*** flox|away has quit IRC08:45
*** jukart has joined #zope3-dev09:07
*** hdima has joined #zope3-dev09:08
*** SteveA has joined #zope3-dev09:32
*** Theuni has joined #zope3-dev09:47
*** flox has joined #zope3-dev09:48
*** flox is now known as flox|away09:48
*** RaFromBRC has joined #zope3-dev10:17
*** flox|away is now known as flox10:41
*** batlogg has quit IRC10:49
*** zagy has joined #zope3-dev11:03
*** SteveA has quit IRC11:30
einshow do I access request in vocabulary?12:06
TheuniI'm pretty sure I don't understand your question.12:09
philiKONeins, you don't12:09
*** flox has quit IRC12:11
*** flox_ has joined #zope3-dev12:12
*** flox_ is now known as flox12:12
einsTheuni somebody does;)12:14
Theunilooks like it12:14
einsphiliKON thanks;) got that myself12:14
*** oferw has joined #zope3-dev12:58
*** SteveA has joined #zope3-dev13:01
*** J1m has joined #zope3-dev13:02
*** mgedmin has joined #zope3-dev13:06
*** mexiKON has joined #zope3-dev13:07
*** strichter has quit IRC13:10
*** philiKON has quit IRC13:25
*** jinty has joined #zope3-dev13:29
*** nathany has quit IRC13:30
*** ignas has joined #zope3-dev13:38
*** mexiKON has quit IRC13:51
*** strichter has joined #zope3-dev13:57
*** dunny has quit IRC13:58
*** nathany has joined #zope3-dev14:02
*** batlogg has joined #zope3-dev14:09
*** volvox has joined #zope3-dev14:16
*** jukart has quit IRC14:23
*** jukart has joined #zope3-dev14:26
*** J1m has quit IRC14:31
*** mkerrin has joined #zope3-dev14:31
*** vlado has joined #zope3-dev14:33
*** nathany has quit IRC14:44
*** nathany_ has joined #zope3-dev14:44
*** SteveA has quit IRC14:47
*** strichter has quit IRC14:47
*** nathany_ has quit IRC14:50
*** rocky has joined #zope3-dev14:52
*** russf_ has joined #zope3-dev14:56
*** SteveA has joined #zope3-dev14:57
*** zbir has quit IRC14:58
*** russf has quit IRC15:03
*** dobee has quit IRC15:22
*** oferw has quit IRC15:25
*** vlado has quit IRC15:32
*** SteveA has quit IRC15:32
*** alga has joined #zope3-dev15:32
*** alga_ has joined #zope3-dev15:34
*** romanofski has joined #zope3-dev15:43
*** baldtrol has joined #zope3-dev15:46
*** jinty has quit IRC15:52
*** gumpa has joined #zope3-dev15:59
*** benji has joined #zope3-dev16:00
*** zbir has joined #zope3-dev16:02
*** roym has joined #zope3-dev16:03
*** alga_ has quit IRC16:07
*** alga has quit IRC16:07
roymI need to rename an item in a container. Based on what I see in IWriteContainer, I'd have to do a copy and then delete the original ref. Is there a better way?16:08
mgedminthere's an adapter, IObjectRenamer IIRC16:08
*** philiKON has joined #zope3-dev16:10
floxroym: from zope.copypastemove.interfaces import IObjectMover16:10
*** alga has joined #zope3-dev16:10
*** alga_ has joined #zope3-dev16:10
floxroym: mover = IObjectMover(object)16:10
*** alga_ has quit IRC16:10
mgedminzope.copypastemove.interfaces.IContainerItemRenamer16:10
mgedminis what I had in mind16:10
roymflox, mgedmin: thanks.16:10
floxroym: mover.moveTo(otherFolder, new_name)16:11
mgedminthe ContainerItemRenamer uses IObjectMover internally16:11
floxfor my use case, i needed to move to other Container. but for his use case, he can use ContainerItemRenamer as well16:12
Theunidoes anybody know when the next beta will be done?16:13
TheuniAre we waiting to get all critical issues resolved first?16:13
philiKONwtf, now there are 27 critical issues?16:14
philiKONTheuni, actually, i was planning on making another beta soonish16:15
philiKONthe first beta had packaging bugs16:15
*** mgedmin changes topic to "logs available at http://zope3.pov.lt/irclogs/ || paste code examples into http://zope3.pastebin.com/ or http://paste.plone.org/ || bugs live at http://www.zope.org/Collectors/Zope3-dev"16:15
*** rock1 has joined #zope3-dev16:15
philiKONat least those should be fixed iwth a new beta16:15
Theuniright16:15
*** rocky has quit IRC16:15
*** rock1 is now known as rocky16:15
Theuniwe (gocept) would like to see another beta to get one of our products moved on to 3.3, but we're kind of waiting for another beta to see the packaging issues gone16:16
philiKONi haven't had time because of some exams coming up16:16
philiKON(tomorrow)16:17
philiKONif you guys need a beta, feel free to do one :)16:17
TheuniAh, I see. Well. I tried doing the packaging a while ago, but something went wrong, so I better not touch that right now. :)16:17
philiKONi might ahve some time later this week16:18
Theuniactually it's 5 critical bugs16:18
*** bradb has joined #zope3-dev16:18
philiKONthis collector is hard to use16:20
philiKONi selected 'critical' and left the status at 'accepted' and 'pending'16:20
Theuniyou're supposed to select '3.3 release' now :)16:21
philiKONah16:21
philiKONthen i see 4 bugs16:21
* mgedmin sees 916:21
Theuniyou see (almost) double!16:21
Theuniit's 5, one is critical and has been reported yesterday16:21
Theuniit might slip into 3.3 release soon16:21
philiKONah16:21
Theuniit's 67016:22
Theunii'm still chewing on my security bug16:22
* Theuni gives it another try16:22
mgedminwell, there are 9 issues with importance "3.3 Release"16:22
mgedminmaybe not all of them are bugs16:22
mgedminyep, some are "bug+solution"16:22
mgedminand some are resolved, duh!16:23
Theuniaha!16:23
mgedmin4 bugs now16:23
*** philiKON has quit IRC16:23
TheuniI'm doing: new/pending/accepted, 3.3release/critical, bug/bug+Solution16:25
*** russf has joined #zope3-dev16:26
*** russf_ has quit IRC16:31
Theunidid somebody change something regarding the inclusion of the bugtracker module in the Zope 3 checkout?16:32
*** J1m has joined #zope3-dev16:33
mgedminafaiu bugtracker was moved into its own top-level svn project16:35
Theuniit seems to still be references from within the zope 3 project though16:35
mgedminI had to rm the bugtracker and zwiki package includes in a couple of checkouts16:35
ignasyep, zcml are ignored in package-includes16:36
ignassvn:ignored16:36
mgedminI do not think there are any other references16:36
Theuniic16:37
*** romanofs1i has joined #zope3-dev16:45
*** russf_ has joined #zope3-dev16:45
*** romanofski has quit IRC16:46
*** whit has quit IRC16:46
*** russf has quit IRC16:52
*** _sussi has joined #zope3-dev16:52
*** whit has joined #zope3-dev16:57
*** eins has quit IRC17:06
*** romanofs1i has quit IRC17:16
*** romanofski has joined #zope3-dev17:17
*** alga has quit IRC17:23
*** hdima has quit IRC17:23
*** strichter has joined #zope3-dev17:25
*** alga has joined #zope3-dev17:25
*** stub has quit IRC17:30
*** pcardune has joined #zope3-dev17:31
*** batlogg has quit IRC17:35
*** pcardune_ has joined #zope3-dev17:35
*** gintas has joined #zope3-dev17:36
*** russf_ has quit IRC17:39
*** russf has joined #zope3-dev17:40
*** b_52CEntos has quit IRC17:42
*** b_52CEntos has joined #zope3-dev17:49
*** pcardune has quit IRC17:51
*** zbir has quit IRC17:52
*** bradb has quit IRC17:53
*** rocky has quit IRC18:03
*** rocky has joined #zope3-dev18:05
*** bradb has joined #zope3-dev18:06
*** _sussi has left #zope3-dev18:10
*** bradb has quit IRC18:16
roymIs there a way to get a handle to any "located" object in the zodb from18:24
roymwithin a context method (ie: I don't have a handle to a request).18:24
baldtrolroym: how do you mean?18:25
roymI need to do a zapi.traverse and navigate to a known location.18:26
roymI just need to find any object that's already in the zodb.18:26
roymThis is for getting data to populate a vocabulary source.18:26
*** bradb has joined #zope3-dev18:27
baldtrolif you know the containment path for the object you want, then yeah, you can do that.  if you know it's relationship to your current context in the containment hierarchy, you can get it that way too...  is it a parent/child or in a statically installed place?18:27
*** RaFromBRC has joined #zope3-dev18:28
roymThe issue is that I am querying an ISource (usually from where the context is a choice object that is NOT located anywhere).18:28
roymat least not yet.18:29
baldtrolahh, gotcha.18:30
mgedminroym: you could getSite()18:30
mgedminor you could try to look if the choice object is bound to a contained object18:30
*** bradb has quit IRC18:30
mgedmin(i.e. context.context)18:30
mgedminI would use getSite()18:30
roymgetSite seems perfect - thanks.18:31
baldtrolmgedmin to the rescue!18:32
*** flox has quit IRC18:37
baldtrolwhat event is notified before an object is deleted?18:43
*** jukart has quit IRC18:43
baldtrolwell what event is "notified about", i guess.  you don't really notify events, you notify subscribers ;)18:44
mgedminafaiu there's only IObjectRemovedEvent which gets sent after an object is deleted18:44
baldtroldoes event.object still hold the object long enough for me to do something with it?18:45
baldtrolor is it gone when it's gone?18:45
mgedminobjects are garbage collected18:45
mgedminso yes, event.object will still be it18:46
baldtrolwell, right...  i guess i was asking that transaction.commit() hasn't happened before the event?  i'd assume no, but i worry.18:46
mgedminand the event also contains the container from which the object was deleted, I think18:46
mgedminwait a second...18:46
mgedminyes it does18:47
baldtrolah, cool.  i've been working on a zc.relationship based relationship/container pair, but since when an object is deleted, i'd like to look for any relationships that refer to that object, and remove it from the index, rather than leaving a stale relationship there.18:48
*** whit has quit IRC18:49
*** zbir has joined #zope3-dev18:50
mgedminIObjectRemovedEvent is for you then18:51
*** dobee has joined #zope3-dev18:52
baldtrolthank you sir :)18:52
roymmgedmin - I think getSite() only works for a "located" object.18:53
roymzapi.traverse(getSite(), QConstants.METADATA)18:53
roym*** TypeError: Not enough context to determine location root18:53
roymCan I do a queryUtility to find one that is located in the zodb?18:54
mgedminroym: getSite() extracts the site from a thread local18:56
mgedminit is valid only during request processing18:56
mgedminwhat's QConstants.METADATA?18:56
*** bradb has joined #zope3-dev18:56
roymQConstants.METADATA is just a path string (eg: '/a/b')18:56
roymso does that mean that I can only get a handle to the zodb during request processing?18:57
roymMy problem is that I have a source widget that needs to do a dynamic query to populate itself.18:58
roymI don't know how to make the request available during that lookup.18:58
baldtrolroym: i had a similar issue trying to populate a vocabulary from a sql query.  the query was based on information in the request, but vocabularies don't accept requests as part of their construction :/  if you figure it out, let me know ;)19:00
roymbaldtrol: good to know that at least I'm not the only one :)19:01
*** dobee has quit IRC19:02
baldtrol:)19:02
roymbaldtrol: I have this notion that I might be able to do lookup in the ITerms adapter - since it gets the context and request. let me try that.19:07
*** whit has joined #zope3-dev19:07
*** jinty has joined #zope3-dev19:08
mgedminroym: almost everything zope does is inside a request19:12
mgedminyou might also get a handle to the zodb if you manage to get hold of the publication19:13
mgedminbut the only way I know how to do that is to take request.publication19:13
mgedminthere's also a somewhat dirty trick of using the security mechanism's getInteraction() and looping through its participations to see if one of those is an IRequest19:14
mgedminif you specify the vocabulary by name in your schema (foo = Choice(vocabulary='foos'))19:14
mgedminand register a named utility19:14
mgedminthen your vocabulary construction function will be invoked during request processing19:15
mgedminand its context argument will be a contained object... I think19:15
*** romanofski has quit IRC19:20
*** zagy has quit IRC19:21
*** philiKON has joined #zope3-dev19:52
*** flox_ has joined #zope3-dev20:01
*** flox_ is now known as flox20:01
*** mgedmin has quit IRC20:07
*** strichter is now known as srichter20:19
*** ChanServ sets mode: +o srichter20:19
*** oferw has joined #zope3-dev20:20
*** jukart has joined #zope3-dev20:31
*** whit has quit IRC20:33
*** rock1 has joined #zope3-dev20:34
*** rocky has quit IRC20:34
*** rock1 is now known as rocky20:34
*** rocky is now known as rock120:34
*** rock1 is now known as rocky20:35
*** whit has joined #zope3-dev20:35
*** ignas has quit IRC20:39
*** RaFromBRC has quit IRC20:42
*** RaFromBRC has joined #zope3-dev20:42
*** gintas has quit IRC20:49
roymmgedmin: I was away - just saw your comments; helps me understand things better, thankyou.20:51
*** jukart has quit IRC20:53
roymI don't think that the vocabulary constructor accepts a request. However, you've made me realize that I can just register my data retrieval functionality as a utility.20:56
*** zbir_ has joined #zope3-dev21:06
*** b_52CEntos has quit IRC21:14
*** tonico has quit IRC21:16
*** oferw has quit IRC21:18
*** b_52CEntos has joined #zope3-dev21:20
*** zbir has quit IRC21:22
*** zbir_ is now known as zbir21:33
*** nathany has joined #zope3-dev21:37
*** hazmat has joined #zope3-dev21:37
*** RaFromBRC is now known as RaFromBRC|away21:41
*** batlogg has joined #zope3-dev21:46
*** nathany has quit IRC21:55
*** vlado has joined #zope3-dev21:58
*** jinty has quit IRC22:02
*** rock1 has joined #zope3-dev22:09
*** rocky has quit IRC22:09
*** rock1 is now known as rocky22:09
*** Aiste has quit IRC22:10
*** batlogg has quit IRC22:18
*** gintas has joined #zope3-dev22:18
*** batlogg has joined #zope3-dev22:21
*** ignas has joined #zope3-dev22:25
*** ktwilight has joined #zope3-dev22:29
*** Aiste has joined #zope3-dev22:31
*** dunny has joined #zope3-dev22:38
*** dobee has joined #zope3-dev22:42
*** baldtrol has left #zope3-dev22:44
*** mkerrin has quit IRC23:00
*** gintas_ has joined #zope3-dev23:10
*** gintas has quit IRC23:13
*** russf has quit IRC23:17
*** russf has joined #zope3-dev23:18
*** vlado has quit IRC23:20
*** vlado_ has joined #zope3-dev23:20
*** dobee has quit IRC23:22
*** reco has joined #zope3-dev23:37
*** tonico has joined #zope3-dev23:40
*** pcardune_ has quit IRC23:48

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