| *** hazmat has quit IRC | 00:02 | |
| *** rmarianski has quit IRC | 00:04 | |
| *** rmarianski has joined #zope3-dev | 00:04 | |
| *** nathany has quit IRC | 00:10 | |
| *** timte has quit IRC | 00:14 | |
| *** whit has joined #zope3-dev | 00:17 | |
| *** rmarianski has quit IRC | 00:17 | |
| *** rmarianski has joined #zope3-dev | 00:18 | |
| *** scooterXL has joined #zope3-dev | 00:30 | |
| *** jpcw2002 has joined #zope3-dev | 00:37 | |
| *** rcrafton has quit IRC | 00:37 | |
| *** dunny has joined #zope3-dev | 00:38 | |
| *** RaFromBRC is now known as RaFromBRC|lunch | 00:43 | |
| *** scooterXL has quit IRC | 00:44 | |
| *** junkafarian has quit IRC | 00:44 | |
| *** harobed has quit IRC | 00:45 | |
| *** whit has quit IRC | 00:46 | |
| *** nathany has joined #zope3-dev | 00:46 | |
| *** MattBowen|wor2 has quit IRC | 00:47 | |
| *** djohnson has joined #zope3-dev | 00:54 | |
| *** whitmo has joined #zope3-dev | 00:57 | |
| *** norro has quit IRC | 01:02 | |
| *** benji has quit IRC | 01:08 | |
| *** RaFromBRC|lunch is now known as RaFromBRC | 01:17 | |
| *** jamur2 has quit IRC | 01:20 | |
| *** dbfrombrc has joined #zope3-dev | 01:27 | |
| *** lurkymclurkleton has quit IRC | 01:28 | |
| *** MJ has quit IRC | 01:35 | |
| *** jpcw2002 has quit IRC | 01:47 | |
| *** djohnson has quit IRC | 01:47 | |
| *** greenman has joined #zope3-dev | 01:58 | |
| *** rmarianski has quit IRC | 01:59 | |
| *** sm_ has quit IRC | 02:04 | |
| *** quodt has quit IRC | 02:05 | |
| *** jodok_ has quit IRC | 02:09 | |
| *** gstratton has joined #zope3-dev | 02:09 | |
| *** whitmo has quit IRC | 02:21 | |
| *** sp0cksbeard has quit IRC | 02:28 | |
| *** b52laptop has quit IRC | 02:30 | |
| *** reco has quit IRC | 02:30 | |
| *** nathany has quit IRC | 02:38 | |
| *** dbfrombrc has quit IRC | 02:48 | |
| *** aclark is now known as aclark|away | 02:54 | |
| *** J1m has quit IRC | 03:26 | |
| *** lucielejard has quit IRC | 03:30 | |
| *** djohnson_ has joined #zope3-dev | 03:33 | |
| *** djohnson_ has quit IRC | 03:35 | |
| *** djohnson_ has joined #zope3-dev | 03:40 | |
| *** dunny has quit IRC | 03:51 | |
| *** dbfrombrc has joined #zope3-dev | 04:02 | |
| *** djohnson_ has quit IRC | 04:08 | |
| *** elro has quit IRC | 04:50 | |
| *** run|home has joined #zope3-dev | 04:57 | |
| *** dunny has joined #zope3-dev | 04:58 | |
| *** dbfrombrc has quit IRC | 05:04 | |
| *** elro has joined #zope3-dev | 05:04 | |
| *** dbfrombrc has joined #zope3-dev | 05:06 | |
| *** srichter has quit IRC | 05:19 | |
| *** niemeyer has quit IRC | 05:22 | |
| *** RaFromBRC has quit IRC | 05:26 | |
| *** rcrafton has joined #zope3-dev | 05:37 | |
| *** dbfrombrc has quit IRC | 05:40 | |
| *** pcardune has quit IRC | 05:42 | |
| *** dunny has quit IRC | 05:45 | |
| *** vimes656 has joined #zope3-dev | 06:00 | |
| *** elro has quit IRC | 06:01 | |
| *** jpcw2002 has joined #zope3-dev | 06:18 | |
| *** rcrafton has quit IRC | 06:26 | |
| *** hazmat has joined #zope3-dev | 06:27 | |
| *** ChanServ sets mode: +o hazmat | 06:27 | |
| *** alecm has quit IRC | 06:27 | |
| *** alecm has joined #zope3-dev | 06:27 | |
| *** greenman has quit IRC | 06:32 | |
| *** binseer has joined #zope3-dev | 06:56 | |
| *** scooterXL has joined #zope3-dev | 06:57 | |
| *** alecm_ has joined #zope3-dev | 07:06 | |
| *** alecm has quit IRC | 07:06 | |
| *** run|home has quit IRC | 07:12 | |
| *** vimes656 has quit IRC | 07:21 | |
| *** lisppaste6 has quit IRC | 07:43 | |
| *** fairwinds has joined #zope3-dev | 07:47 | |
| *** fairwinds has left #zope3-dev | 07:47 | |
| *** baijum has joined #zope3-dev | 07:48 | |
| *** srichter has joined #zope3-dev | 07:52 | |
| *** afd_ has joined #zope3-dev | 07:53 | |
| *** lisppaste6 has joined #zope3-dev | 07:54 | |
| *** ChanServ sets mode: +o srichter | 07:55 | |
| *** pcardune has joined #zope3-dev | 07:58 | |
| *** alecm_ has quit IRC | 08:03 | |
| *** vimes656 has joined #zope3-dev | 08:14 | |
| *** dunny has joined #zope3-dev | 08:15 | |
| *** naro has joined #zope3-dev | 08:16 | |
| *** dobee has joined #zope3-dev | 08:17 | |
| *** dobee has joined #zope3-dev | 08:31 | |
| *** jukart has joined #zope3-dev | 08:36 | |
| *** jukart has joined #zope3-dev | 08:38 | |
| *** jpcw2002 has quit IRC | 08:39 | |
| *** sm_ has joined #zope3-dev | 08:41 | |
| *** timte has joined #zope3-dev | 08:51 | |
| *** sorindregan has joined #zope3-dev | 09:04 | |
| *** ktwilight_ has joined #zope3-dev | 09:13 | |
| *** ktwilight has quit IRC | 09:15 | |
| *** philiKON_ has joined #zope3-dev | 09:30 | |
| *** philiKON has quit IRC | 09:32 | |
| *** philiKON_ is now known as philiKON | 09:32 | |
| *** jodok has joined #zope3-dev | 09:39 | |
| *** redir has joined #zope3-dev | 09:48 | |
| *** regebro has joined #zope3-dev | 09:52 | |
| *** yota has joined #zope3-dev | 09:59 | |
| *** tarek has joined #zope3-dev | 09:59 | |
| *** grahamperrin has left #zope3-dev | 10:03 | |
| *** junkafarian has joined #zope3-dev | 10:07 | |
| *** redir has quit IRC | 10:11 | |
| *** greenman has joined #zope3-dev | 10:14 | |
| *** stub has joined #zope3-dev | 10:22 | |
| *** lurker_ has joined #zope3-dev | 10:33 | |
| *** lurker has quit IRC | 10:41 | |
| *** jayaraj has joined #zope3-dev | 10:42 | |
| *** jpcw2002 has joined #zope3-dev | 10:45 | |
| *** MJ has joined #zope3-dev | 10:46 | |
| *** norro has joined #zope3-dev | 10:55 | |
| *** baijum has quit IRC | 10:58 | |
| *** jayaraj_ has joined #zope3-dev | 11:00 | |
| *** harobed has joined #zope3-dev | 11:04 | |
| *** baijum has joined #zope3-dev | 11:05 | |
| *** yotaff has joined #zope3-dev | 11:05 | |
| *** jayaraj__ has joined #zope3-dev | 11:16 | |
| *** jayaraj has quit IRC | 11:20 | |
| *** quodt has joined #zope3-dev | 11:21 | |
| *** gstratton has quit IRC | 11:23 | |
| *** binseer_ has joined #zope3-dev | 11:25 | |
| *** binseer_ has quit IRC | 11:27 | |
| *** binseer has quit IRC | 11:27 | |
| *** thruflo has joined #zope3-dev | 11:27 | |
| *** binseer has joined #zope3-dev | 11:27 | |
| *** jpcw2002 has joined #zope3-dev | 11:28 | |
| *** greenman has quit IRC | 11:31 | |
| *** jayaraj_ has quit IRC | 11:33 | |
| *** greenman has joined #zope3-dev | 11:34 | |
| *** agroszer has joined #zope3-dev | 11:43 | |
| *** maurits has joined #zope3-dev | 11:57 | |
| greenman | I have a question about zope.app.file.file.File ... (http://svn.zope.org/zope.app.file/trunk/src/zope/app/file/file.py?rev=75300&view=auto) | 12:06 | 
|---|---|---|
| greenman | the browser mix in http://svn.zope.org/zope.app.file/trunk/src/zope/app/file/browser/file.py?rev=75300&view=auto looks for dublin core metadata | 12:06 | 
| greenman | yet the former File object doesn't declare itself as providing this | 12:06 | 
| greenman | is there a simple way of allowing this File object to provide that layer? | 12:07 | 
| greenman | would be nice for show() to be cache friendly for those File objects | 12:07 | 
| greenman | I am guessing the right way is for the context that contains or has as an attribute the file object to be providing the modified data | 12:12 | 
| *** jayaraj has joined #zope3-dev | 12:14 | |
| *** gstratton has joined #zope3-dev | 12:15 | |
| *** gstratton has quit IRC | 12:19 | |
| *** gstratton has joined #zope3-dev | 12:21 | |
| afd_ | greenman: http://svn.zope.org/zope.app.file/trunk/src/zope/app/file/configure.zcml?rev=75300&view=markup | 12:21 | 
| afd_ | File is declared as implementing IAttributeAnnotatable | 12:21 | 
| afd_ | there is an adapter adapting IAttributeAnnotatable objects to IAnnotation | 12:21 | 
| afd_ | which is used adapted by DublinCore to store dc data | 12:21 | 
| afd_ | so you don't have to do anything | 12:22 | 
| *** junkafarian has quit IRC | 12:23 | |
| *** junkafarian has joined #zope3-dev | 12:24 | |
| *** gstratton has quit IRC | 12:26 | |
| *** jayaraj__ has quit IRC | 12:30 | |
| *** b52laptop has joined #zope3-dev | 12:38 | |
| greenman | afd_: so it's up to the factory adding the file to set it up | 12:40 | 
| *** seletz has joined #zope3-dev | 12:41 | |
| seletz | http://apidoc.zope.org/++apidoc++/Code/zope/index.html | 12:41 | 
| seletz | ramonski: ^^^^ | 12:41 | 
| seletz | oh sorry, wrong channel :p | 12:44 | 
| * seletz made a fool of himself one more time :p | 12:45 | |
| *** baijum has quit IRC | 12:47 | |
| *** baijum has joined #zope3-dev | 12:48 | |
| *** jpcw2002 has left #zope3-dev | 12:53 | |
| *** jpcw2002 has joined #zope3-dev | 12:55 | |
| *** baijum has quit IRC | 12:55 | |
| *** djohnson has joined #zope3-dev | 12:56 | |
| *** jayaraj_ has joined #zope3-dev | 13:10 | |
| *** baijum has joined #zope3-dev | 13:14 | |
| *** thruflo is now known as icedlatte | 13:15 | |
| *** grahamperrin has joined #zope3-dev | 13:21 | |
| *** paolo has joined #zope3-dev | 13:22 | |
| greenman | something tells me that http://svn.zope.org/zope.app.file/trunk/src/zope/app/file/browser/file.py?rev=75300&view=auto is broken anyway and would indicate File objects never end up with dublin core annotations | 13:26 | 
| greenman | the line header= self.request.getHeader('If-Modified-Since', None) is wrong | 13:26 | 
| *** jayaraj has quit IRC | 13:29 | |
| *** jayaraj_ has quit IRC | 13:29 | |
| *** jayaraj_ has joined #zope3-dev | 13:30 | |
| afd_ | greenman: why is that line wrong? | 13:33 | 
| greenman | it should be self.request.response.getHeader ? | 13:34 | 
| afd_ | the browser sends the If-Modified-Since header | 13:35 | 
| greenman | I must have different request objects then, I haven't seen them have a getHeader method ... but I'm in the plone 3 and therefore zope 2 world, | 13:36 | 
| afd_ | http://svn.zope.org/zope.dublincore/trunk/src/zope/dublincore/configure.zcml?rev=75119&view=markup | 13:37 | 
| afd_ | you can see the subscribers there. | 13:38 | 
| afd_ | they'll update the DC when an event is triggered for an object (modified, created, etc) | 13:39 | 
| *** jodok has quit IRC | 13:39 | |
| greenman | all I am saying is that I don't believe the line self.request.getHeader('If-Modified-Since', None) is correct | 13:40 | 
| greenman | since when does request have a getHeader method? | 13:40 | 
| greenman | so I am implying this method never gets to this point | 13:41 | 
| *** aclark|away is now known as aclark | 13:43 | |
| afd_ | greenman: http://paste.plone.org/21260 | 13:43 | 
| greenman | this is a zope 3 BrowserRequest? | 13:44 | 
| afd_ | yes | 13:44 | 
| greenman | yeah, I think that's the problem, this part of the zope.app.file library has issues in the zope 2 world | 13:45 | 
| afd_ | I think zope 2 has it's own version of a File content object... | 13:46 | 
| greenman | as well as this one | 13:46 | 
| afd_ | perhaps you should address this problem on #plone, there are probably a few people there with more experience in integrating z2 with z3 libraries | 13:47 | 
| greenman | sure. thanks for your help. | 13:48 | 
| afd_ | np | 13:48 | 
| *** grahamperrin has left #zope3-dev | 13:58 | |
| *** jukart has quit IRC | 14:02 | |
| *** dunny has quit IRC | 14:05 | |
| *** stub has quit IRC | 14:09 | |
| *** menesis has joined #zope3-dev | 14:10 | |
| *** b52laptop has quit IRC | 14:18 | |
| *** b52laptop has joined #zope3-dev | 14:19 | |
| *** jayaraj has joined #zope3-dev | 14:24 | |
| *** icedlatte has quit IRC | 14:27 | |
| *** mkerrin has joined #zope3-dev | 14:28 | |
| *** projekt01 has joined #zope3-dev | 14:32 | |
| *** ignas has joined #zope3-dev | 14:39 | |
| *** jayaraj_ has quit IRC | 14:42 | |
| *** rcrafton has joined #zope3-dev | 14:47 | |
| *** jodok has joined #zope3-dev | 14:48 | |
| *** salfield has quit IRC | 14:57 | |
| *** seletz is now known as seletz|afk | 15:04 | |
| *** benji has joined #zope3-dev | 15:21 | |
| *** redir has joined #zope3-dev | 15:27 | |
| *** greenman has quit IRC | 15:36 | |
| *** MattBowen|work has joined #zope3-dev | 15:41 | |
| *** niemeyer has joined #zope3-dev | 15:42 | |
| *** mgedmin has joined #zope3-dev | 15:50 | |
| *** lurkymclurkleton has joined #zope3-dev | 15:50 | |
| *** jamur2 has joined #zope3-dev | 15:57 | |
| *** rmarianski has joined #zope3-dev | 16:03 | |
| *** pyqwer has joined #zope3-dev | 16:06 | |
| *** seletz|afk is now known as seletz | 16:10 | |
| *** gstratton has joined #zope3-dev | 16:11 | |
| pyqwer | Does someone know, which version of zalchemy in the SVN-Repository works with a recent SQLAlchemy distribution? | 16:14 | 
| *** J1m has joined #zope3-dev | 16:15 | |
| *** redir has quit IRC | 16:22 | |
| *** gstratton has quit IRC | 16:23 | |
| *** reco has joined #zope3-dev | 16:23 | |
| *** whit has joined #zope3-dev | 16:27 | |
| *** rmarianski has quit IRC | 16:28 | |
| *** thruflo has joined #zope3-dev | 16:30 | |
| *** djohnson__ has joined #zope3-dev | 16:44 | |
| *** djohnson has quit IRC | 16:44 | |
| *** MattBowen|wor1 has joined #zope3-dev | 16:53 | |
| *** naro has quit IRC | 16:57 | |
| *** rocky has quit IRC | 16:59 | |
| *** faassen has joined #zope3-dev | 17:01 | |
| *** rocky has joined #zope3-dev | 17:03 | |
| *** reco has quit IRC | 17:06 | |
| *** reco has joined #zope3-dev | 17:07 | |
| *** MattBowen|work has quit IRC | 17:10 | |
| *** binseer has quit IRC | 17:15 | |
| *** ktwilight_ has quit IRC | 17:15 | |
| *** ktwilight_ has joined #zope3-dev | 17:16 | |
| *** jayaraj has quit IRC | 17:22 | |
| *** nathany has joined #zope3-dev | 17:23 | |
| *** nathany has joined #zope3-dev | 17:23 | |
| *** MattBowen|work has joined #zope3-dev | 17:27 | |
| *** benji has quit IRC | 17:30 | |
| *** sorindregan has quit IRC | 17:33 | |
| *** redir has joined #zope3-dev | 17:33 | |
| *** baijum has quit IRC | 17:34 | |
| *** alexdb has joined #zope3-dev | 17:34 | |
| *** djohnson__ has quit IRC | 17:35 | |
| *** vimes656 has quit IRC | 17:37 | |
| *** rmarianski has joined #zope3-dev | 17:40 | |
| *** MattBowen|wor1 has quit IRC | 17:45 | |
| *** MattBowen|work has quit IRC | 17:45 | |
| *** whit has quit IRC | 17:46 | |
| *** lucielejard has joined #zope3-dev | 17:47 | |
| *** lucielejard has quit IRC | 17:47 | |
| *** rocky has quit IRC | 17:48 | |
| *** rocky has joined #zope3-dev | 17:52 | |
| *** jayaraj has joined #zope3-dev | 18:01 | |
| *** J1m has quit IRC | 18:01 | |
| *** romanofski has quit IRC | 18:02 | |
| *** J1m has joined #zope3-dev | 18:03 | |
| *** vimes656 has joined #zope3-dev | 18:06 | |
| *** timte has quit IRC | 18:10 | |
| *** alecm has joined #zope3-dev | 18:14 | |
| *** jayaraj_ has joined #zope3-dev | 18:17 | |
| *** jayaraj__ has joined #zope3-dev | 18:19 | |
| *** derek|laptop has quit IRC | 18:21 | |
| *** J1m has quit IRC | 18:24 | |
| *** dvschramm has joined #zope3-dev | 18:25 | |
| *** J1m has joined #zope3-dev | 18:25 | |
| *** thruflo has left #zope3-dev | 18:25 | |
| *** b52laptop has quit IRC | 18:32 | |
| Theuni | pyqwer: please forget about zalchemy | 18:34 | 
| Theuni | it's pretty much abandoned by now. the folder stuff is *bah* and the transaction stuff finally went into zope.sqlalchemy | 18:35 | 
| *** jayaraj has quit IRC | 18:35 | |
| *** J1m has quit IRC | 18:36 | |
| *** alecm has quit IRC | 18:36 | |
| *** alecm has joined #zope3-dev | 18:37 | |
| *** jayaraj__ has quit IRC | 18:38 | |
| *** srichter has quit IRC | 18:39 | |
| *** jayaraj__ has joined #zope3-dev | 18:39 | |
| *** jayaraj_ has quit IRC | 18:39 | |
| *** b52laptop has joined #zope3-dev | 18:40 | |
| *** whit has joined #zope3-dev | 18:42 | |
| *** whit has quit IRC | 18:44 | |
| *** menesis has quit IRC | 18:49 | |
| *** malthe has quit IRC | 18:55 | |
| *** pcardune has quit IRC | 18:56 | |
| *** jayaraj__ has quit IRC | 18:59 | |
| *** projekt01 has quit IRC | 18:59 | |
| *** alecghica has quit IRC | 19:24 | |
| *** naro has joined #zope3-dev | 19:28 | |
| *** b52laptop has quit IRC | 19:28 | |
| *** paolo has quit IRC | 19:32 | |
| *** quodt has quit IRC | 19:34 | |
| *** mgedmin has quit IRC | 19:39 | |
| *** vimes656 has left #zope3-dev | 19:40 | |
| *** timte has joined #zope3-dev | 19:50 | |
| *** salfield has joined #zope3-dev | 19:56 | |
| *** srichter has joined #zope3-dev | 20:00 | |
| *** lurker_ has quit IRC | 20:00 | |
| *** lurker has joined #zope3-dev | 20:01 | |
| *** dobee has quit IRC | 20:04 | |
| *** nathany has quit IRC | 20:05 | |
| *** alexdb has quit IRC | 20:09 | |
| *** alecm has quit IRC | 20:10 | |
| *** lurker has quit IRC | 20:13 | |
| pyqwer | Theuni: Thanks, I did not know about the zope.sqlalchemy package. Great, I'll have a look at it! | 20:13 | 
| *** pcardune has joined #zope3-dev | 20:13 | |
| *** alecm has joined #zope3-dev | 20:15 | |
| *** alecm has quit IRC | 20:16 | |
| *** pyqwer has quit IRC | 20:16 | |
| *** alecm has joined #zope3-dev | 20:18 | |
| *** jukart has joined #zope3-dev | 20:20 | |
| *** ChanServ sets mode: +o srichter | 20:20 | |
| *** seletz has quit IRC | 20:22 | |
| *** lurker has joined #zope3-dev | 20:22 | |
| *** lurker has quit IRC | 20:23 | |
| *** lurker has joined #zope3-dev | 20:25 | |
| *** faassen has quit IRC | 20:25 | |
| *** __mac__ has joined #zope3-dev | 20:26 | |
| *** lurker has quit IRC | 20:30 | |
| *** malthe has joined #zope3-dev | 20:30 | |
| *** mcdonc has quit IRC | 20:32 | |
| *** mcdonc has joined #zope3-dev | 20:32 | |
| *** ignas has quit IRC | 20:36 | |
| *** regebro has quit IRC | 20:37 | |
| *** nathany has joined #zope3-dev | 20:38 | |
| *** jodok has quit IRC | 20:39 | |
| *** nathany_ has joined #zope3-dev | 20:39 | |
| *** nathany_ has quit IRC | 20:39 | |
| *** lurker has joined #zope3-dev | 20:40 | |
| *** J1m has joined #zope3-dev | 20:51 | |
| *** __mac___ has joined #zope3-dev | 20:53 | |
| *** tarek has quit IRC | 20:54 | |
| *** lurker has quit IRC | 20:55 | |
| *** reedobrien has joined #zope3-dev | 20:59 | |
| *** harobed has quit IRC | 20:59 | |
| *** mkerrin has quit IRC | 21:02 | |
| *** maurits has quit IRC | 21:02 | |
| *** lurker has joined #zope3-dev | 21:05 | |
| *** redir has quit IRC | 21:06 | |
| *** dobee has joined #zope3-dev | 21:08 | |
| *** __mac__ has quit IRC | 21:12 | |
| *** jpcw2002 has left #zope3-dev | 21:12 | |
| *** J1m_ has joined #zope3-dev | 21:18 | |
| *** jodok has joined #zope3-dev | 21:20 | |
| *** jukart has quit IRC | 21:26 | |
| *** J1m has quit IRC | 21:28 | |
| *** alecm is now known as alecm|away | 21:29 | |
| *** __mac___ has quit IRC | 21:46 | |
| *** mweichert has quit IRC | 21:50 | |
| *** elro has joined #zope3-dev | 21:55 | |
| *** quodt has joined #zope3-dev | 22:03 | |
| *** timte has quit IRC | 22:05 | |
| *** quodt has quit IRC | 22:07 | |
| elro | what's the replacement for the site manager api? | 22:07 | 
| philiKON | whaddaya mean? | 22:07 | 
| elro | zope.component 3.4 seems to say that getSiteManager needs to be deprecated | 22:08 | 
| philiKON | does it emit a warning? | 22:08 | 
| elro | no | 22:08 | 
| *** whit has joined #zope3-dev | 22:08 | |
| philiKON | then it's not deprecated :) | 22:09 | 
| elro | http://svn.zope.org/zope.app.component/trunk/src/zope/app/component/README.txt?rev=85829&view=auto shows BBB too | 22:09 | 
| elro | right ok | 22:10 | 
| *** __mac__ has joined #zope3-dev | 22:10 | |
| philiKON | this is zope.*app*.component | 22:10 | 
| *** whit has quit IRC | 22:10 | |
| philiKON | and it's about the getNextSiteManager() stuff | 22:10 | 
| philiKON | which is indeed deprecated | 22:11 | 
| elro | I'm writing a test, and I want to test what happens when I change site manager. I'd like to avoid adding zope.app.component into the requirements. Is there any way to setSite to a zope.component.register.Components? | 22:11 | 
| philiKON | zope.component knows nothing about the thread local variable that is set to the site manager | 22:12 | 
| philiKON | by setSite() | 22:12 | 
| philiKON | all this is in zope.app.component | 22:12 | 
| philiKON | in fact, you won't even be able to use local site managers without the hooks in zope.app.component enabled | 22:12 | 
| philiKON | (you enable them by calling setHooks()) | 22:12 | 
| philiKON | also, as far as i remember, the Components class isn't quite made to work as a local, non-persistent component registry | 22:13 | 
| elro | but zope.component.getSiteManager still returns the correct thing - or is that setup by the setHooks | 22:13 | 
| philiKON | i think that's what z3c.baseregistry provides | 22:13 | 
| philiKON | elro: z.c.getSiteManager() returns the correct thing b/c it's replaced by a custom implementation from zope.app.component. this replacement happens when you call setHooks() indeed. | 22:13 | 
| elro | ah | 22:14 | 
| *** afd_ has quit IRC | 22:15 | |
| elro | does z3c.baseregistry replace getSiteManager too? | 22:15 | 
| elro | I'm trying to work out whether I can use id(z.c.getSiteManager()) in a scoping function for zope.sqlalchemy | 22:16 | 
| *** agroszer has quit IRC | 22:18 | |
| philiKON | no, z3c.baseregistry doesn't replace getSiteManager() | 22:22 | 
| philiKON | it uses the same mechanism as zope.app.component | 22:22 | 
| philiKON | it just provides non persistent local site managers | 22:22 | 
| philiKON | (in contrast to persistent local site managers that z.a.component has) | 22:22 | 
| philiKON | id() sounds scary, especially if it may be a persistent obj | 22:23 | 
| elro | the id() shouldn't change for the duration of a request though, no? | 22:23 | 
| philiKON | no, i suppose not | 22:24 | 
| elro | though I could probably test for a _p_oid first | 22:24 | 
| philiKON | what you really want is to detect when a site manager changes, right? | 22:24 | 
| philiKON | or rather, that a site manager has changed | 22:25 | 
| elro | it seems easier just to add it to the scoping function of sqlalchemy's scoped session | 22:25 | 
| philiKON | i have no idea what that means :) | 22:26 | 
| * philiKON doesn't know sqlalchemy that well | 22:26 | |
| philiKON | i just wonder what you want with the sitemanager | 22:26 | 
| philiKON | and why you'd need its id() | 22:26 | 
| elro | I need to ensure that I end up with a different session within different site managers | 22:27 | 
| philiKON | ok | 22:27 | 
| elro | because local utility registrations could differ | 22:28 | 
| philiKON | but per request there's really only on esite manager | 22:28 | 
| philiKON | it's set during traversal | 22:28 | 
| philiKON | each time the publication traverses over an ISit eobject, it stows the corresponding site manager away | 22:28 | 
| philiKON | so when the application code (views, etc.) is executed, there's only one site manager active | 22:28 | 
| philiKON | of course, i don't know how much you do stuff during traversal, because that's really only where the site manager changes | 22:29 | 
| elro | the corner case I'm trying to handle is having two instances of an application (each with a db engine registered as a local utility) get different sessions when they are both accessed in a single request | 22:30 | 
| philiKON | hmm | 22:32 | 
| *** whit has joined #zope3-dev | 22:32 | |
| philiKON | so let me understand this | 22:33 | 
| elro | If app.site1 = MyApp(); app.site2 = MyApp(), I want an operation such as app.site1.obj.foo = bar; app.site2.obj.foo=bar to force two sessions into the transaction | 22:33 | 
| philiKON | let's say in an early stage (e.g. during traversal), code finds a particular db engine | 22:33 | 
| philiKON | ah i see | 22:33 | 
| philiKON | that's not really possible with just a getSiteManager() call | 22:34 | 
| philiKON | as said, there's only one active site manager | 22:34 | 
| philiKON | it's found during traversal | 22:34 | 
| philiKON | so it depends on the URL which site is active | 22:34 | 
| philiKON | if the view behind http://.../app/site1/... manages to modify something in site2, then still site1's site manager is active | 22:35 | 
| elro | hmm | 22:35 | 
| philiKON | the only way to circumvent that is to explicitly use a context argument | 22:35 | 
| philiKON | getSiteManager(context=app2.site2.obj.foo) | 22:35 | 
| philiKON | this will yield site2's site manager | 22:35 | 
| elro | could something like site1 = app.restrictedTraverse(site1); site2 = app.restrictedTraverse(site2); site1.obj.foo =bar; site2.obj.foo = bar work? | 22:38 | 
| elro | (assuming that site1.obj somehow triggers a getUtility lookup somewhere) | 22:40 | 
| elro | or would getUtility(ISomething, site1.obj) work (assuming site1.obj,__parent__ = site1) | 22:41 | 
| philiKON | i don't seem to quite follow | 22:42 | 
| philiKON | there's no restrictedTraverse in z3 :) | 22:42 | 
| philiKON | traversal happens exactly once per request | 22:42 | 
| *** __mac__ has quit IRC | 22:43 | |
| elro | I've spend too long in Zope2 ;-) | 22:43 | 
| philiKON | :) | 22:43 | 
| philiKON | i could tell from obj.obj.obj.obj :) | 22:43 | 
| philiKON | ugly attribute syntax | 22:43 | 
| *** whitmo has joined #zope3-dev | 22:43 | |
| philiKON | anywa | 22:43 | 
| *** whit has quit IRC | 22:43 | |
| philiKON | i don't quite undestand this, i'm afraid | 22:44 | 
| elro | does the context that gets passed to getUtility have to be a site, or can it just refer to a site somewhere in it's __parent__ chain? | 22:44 | 
| philiKON | the latter | 22:44 | 
| philiKON | it's an explicit keywrod argument though | 22:44 | 
| philiKON | getUtility(IFoo, context=context) | 22:44 | 
| philiKON | where context should have a __parent__ chain somewhere leading to an ISite | 22:44 | 
| philiKON | (the 2nd positional arg to getUtilty is the name) | 22:45 | 
| *** whit has joined #zope3-dev | 22:46 | |
| elro | without a context though I guess I'm stuffed | 22:46 | 
| philiKON | from what i understand, it appears so | 22:46 | 
| elro | I need to register a ScopedSession for each instance of the application, and ensure I look up the ScopedSession with a context | 22:46 | 
| *** whitmo_ has joined #zope3-dev | 22:47 | |
| philiKON | seems so | 22:48 | 
| *** whit has quit IRC | 22:48 | |
| *** seletz has joined #zope3-dev | 22:48 | |
| *** MJ has quit IRC | 22:51 | |
| elro | Though maybe it would be more natural to adapt an object to a session | 22:52 | 
| philiKON | not a bad idea | 22:53 | 
| *** b52laptop has joined #zope3-dev | 22:57 | |
| *** whitmo has quit IRC | 22:58 | |
| *** whitmo_ has quit IRC | 22:58 | |
| *** whit has joined #zope3-dev | 22:59 | |
| *** jpcw2002 has joined #zope3-dev | 22:59 | |
| *** whitmo has joined #zope3-dev | 23:02 | |
| *** whit has quit IRC | 23:02 | |
| *** jodok has quit IRC | 23:16 | |
| *** timte has joined #zope3-dev | 23:24 | |
| *** whitmo has quit IRC | 23:28 | |
| *** seletz_ has joined #zope3-dev | 23:30 | |
| *** greenman has joined #zope3-dev | 23:30 | |
| *** whit has joined #zope3-dev | 23:31 | |
| *** dunny has joined #zope3-dev | 23:37 | |
| *** seletz has quit IRC | 23:38 | |
| *** greenman has quit IRC | 23:40 | |
| *** seletz_ is now known as seletz | 23:40 | |
| *** malthe has quit IRC | 23:42 | |
| *** malthe has joined #zope3-dev | 23:42 | |
| *** seletz has quit IRC | 23:46 | |
| *** seletz has joined #zope3-dev | 23:46 | |
| *** naro has quit IRC | 23:49 | |
| *** timte has quit IRC | 23:49 | |
| *** scooterXL has quit IRC | 23:53 | |
| *** tarek has joined #zope3-dev | 23:54 | |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!