IRC log of #zope3-dev for Wednesday, 2008-05-07

*** hazmat has quit IRC00:02
*** rmarianski has quit IRC00:04
*** rmarianski has joined #zope3-dev00:04
*** nathany has quit IRC00:10
*** timte has quit IRC00:14
*** whit has joined #zope3-dev00:17
*** rmarianski has quit IRC00:17
*** rmarianski has joined #zope3-dev00:18
*** scooterXL has joined #zope3-dev00:30
*** jpcw2002 has joined #zope3-dev00:37
*** rcrafton has quit IRC00:37
*** dunny has joined #zope3-dev00:38
*** RaFromBRC is now known as RaFromBRC|lunch00:43
*** scooterXL has quit IRC00:44
*** junkafarian has quit IRC00:44
*** harobed has quit IRC00:45
*** whit has quit IRC00:46
*** nathany has joined #zope3-dev00:46
*** MattBowen|wor2 has quit IRC00:47
*** djohnson has joined #zope3-dev00:54
*** whitmo has joined #zope3-dev00:57
*** norro has quit IRC01:02
*** benji has quit IRC01:08
*** RaFromBRC|lunch is now known as RaFromBRC01:17
*** jamur2 has quit IRC01:20
*** dbfrombrc has joined #zope3-dev01:27
*** lurkymclurkleton has quit IRC01:28
*** MJ has quit IRC01:35
*** jpcw2002 has quit IRC01:47
*** djohnson has quit IRC01:47
*** greenman has joined #zope3-dev01:58
*** rmarianski has quit IRC01:59
*** sm_ has quit IRC02:04
*** quodt has quit IRC02:05
*** jodok_ has quit IRC02:09
*** gstratton has joined #zope3-dev02:09
*** whitmo has quit IRC02:21
*** sp0cksbeard has quit IRC02:28
*** b52laptop has quit IRC02:30
*** reco has quit IRC02:30
*** nathany has quit IRC02:38
*** dbfrombrc has quit IRC02:48
*** aclark is now known as aclark|away02:54
*** J1m has quit IRC03:26
*** lucielejard has quit IRC03:30
*** djohnson_ has joined #zope3-dev03:33
*** djohnson_ has quit IRC03:35
*** djohnson_ has joined #zope3-dev03:40
*** dunny has quit IRC03:51
*** dbfrombrc has joined #zope3-dev04:02
*** djohnson_ has quit IRC04:08
*** elro has quit IRC04:50
*** run|home has joined #zope3-dev04:57
*** dunny has joined #zope3-dev04:58
*** dbfrombrc has quit IRC05:04
*** elro has joined #zope3-dev05:04
*** dbfrombrc has joined #zope3-dev05:06
*** srichter has quit IRC05:19
*** niemeyer has quit IRC05:22
*** RaFromBRC has quit IRC05:26
*** rcrafton has joined #zope3-dev05:37
*** dbfrombrc has quit IRC05:40
*** pcardune has quit IRC05:42
*** dunny has quit IRC05:45
*** vimes656 has joined #zope3-dev06:00
*** elro has quit IRC06:01
*** jpcw2002 has joined #zope3-dev06:18
*** rcrafton has quit IRC06:26
*** hazmat has joined #zope3-dev06:27
*** ChanServ sets mode: +o hazmat06:27
*** alecm has quit IRC06:27
*** alecm has joined #zope3-dev06:27
*** greenman has quit IRC06:32
*** binseer has joined #zope3-dev06:56
*** scooterXL has joined #zope3-dev06:57
*** alecm_ has joined #zope3-dev07:06
*** alecm has quit IRC07:06
*** run|home has quit IRC07:12
*** vimes656 has quit IRC07:21
*** lisppaste6 has quit IRC07:43
*** fairwinds has joined #zope3-dev07:47
*** fairwinds has left #zope3-dev07:47
*** baijum has joined #zope3-dev07:48
*** srichter has joined #zope3-dev07:52
*** afd_ has joined #zope3-dev07:53
*** lisppaste6 has joined #zope3-dev07:54
*** ChanServ sets mode: +o srichter07:55
*** pcardune has joined #zope3-dev07:58
*** alecm_ has quit IRC08:03
*** vimes656 has joined #zope3-dev08:14
*** dunny has joined #zope3-dev08:15
*** naro has joined #zope3-dev08:16
*** dobee has joined #zope3-dev08:17
*** dobee has joined #zope3-dev08:31
*** jukart has joined #zope3-dev08:36
*** jukart has joined #zope3-dev08:38
*** jpcw2002 has quit IRC08:39
*** sm_ has joined #zope3-dev08:41
*** timte has joined #zope3-dev08:51
*** sorindregan has joined #zope3-dev09:04
*** ktwilight_ has joined #zope3-dev09:13
*** ktwilight has quit IRC09:15
*** philiKON_ has joined #zope3-dev09:30
*** philiKON has quit IRC09:32
*** philiKON_ is now known as philiKON09:32
*** jodok has joined #zope3-dev09:39
*** redir has joined #zope3-dev09:48
*** regebro has joined #zope3-dev09:52
*** yota has joined #zope3-dev09:59
*** tarek has joined #zope3-dev09:59
*** grahamperrin has left #zope3-dev10:03
*** junkafarian has joined #zope3-dev10:07
*** redir has quit IRC10:11
*** greenman has joined #zope3-dev10:14
*** stub has joined #zope3-dev10:22
*** lurker_ has joined #zope3-dev10:33
*** lurker has quit IRC10:41
*** jayaraj has joined #zope3-dev10:42
*** jpcw2002 has joined #zope3-dev10:45
*** MJ has joined #zope3-dev10:46
*** norro has joined #zope3-dev10:55
*** baijum has quit IRC10:58
*** jayaraj_ has joined #zope3-dev11:00
*** harobed has joined #zope3-dev11:04
*** baijum has joined #zope3-dev11:05
*** yotaff has joined #zope3-dev11:05
*** jayaraj__ has joined #zope3-dev11:16
*** jayaraj has quit IRC11:20
*** quodt has joined #zope3-dev11:21
*** gstratton has quit IRC11:23
*** binseer_ has joined #zope3-dev11:25
*** binseer_ has quit IRC11:27
*** binseer has quit IRC11:27
*** thruflo has joined #zope3-dev11:27
*** binseer has joined #zope3-dev11:27
*** jpcw2002 has joined #zope3-dev11:28
*** greenman has quit IRC11:31
*** jayaraj_ has quit IRC11:33
*** greenman has joined #zope3-dev11:34
*** agroszer has joined #zope3-dev11:43
*** maurits has joined #zope3-dev11:57
greenmanI have a question about ... (
greenmanthe browser mix in looks for dublin core metadata12:06
greenmanyet the former File object doesn't declare itself as providing this12:06
greenmanis there a simple way of allowing this File object to provide that layer?12:07
greenmanwould be nice for show() to be cache friendly for those File objects12:07
greenmanI am guessing the right way is for the context that contains or has as an attribute the file object to be providing the modified data12:12
*** jayaraj has joined #zope3-dev12:14
*** gstratton has joined #zope3-dev12:15
*** gstratton has quit IRC12:19
*** gstratton has joined #zope3-dev12:21
afd_File is declared as implementing IAttributeAnnotatable12:21
afd_there is an adapter adapting IAttributeAnnotatable objects to IAnnotation12:21
afd_which is used adapted by DublinCore to store dc data12:21
afd_so you don't have to do anything12:22
*** junkafarian has quit IRC12:23
*** junkafarian has joined #zope3-dev12:24
*** gstratton has quit IRC12:26
*** jayaraj__ has quit IRC12:30
*** b52laptop has joined #zope3-dev12:38
greenmanafd_: so it's up to the factory adding the file to set it up12:40
*** seletz has joined #zope3-dev12:41
seletzramonski: ^^^^12:41
seletzoh sorry, wrong channel :p12:44
* seletz made a fool of himself one more time :p12:45
*** baijum has quit IRC12:47
*** baijum has joined #zope3-dev12:48
*** jpcw2002 has left #zope3-dev12:53
*** jpcw2002 has joined #zope3-dev12:55
*** baijum has quit IRC12:55
*** djohnson has joined #zope3-dev12:56
*** jayaraj_ has joined #zope3-dev13:10
*** baijum has joined #zope3-dev13:14
*** thruflo is now known as icedlatte13:15
*** grahamperrin has joined #zope3-dev13:21
*** paolo has joined #zope3-dev13:22
greenmansomething tells me that is broken anyway and would indicate File objects never end up with dublin core annotations13:26
greenmanthe line header= self.request.getHeader('If-Modified-Since', None) is wrong13:26
*** jayaraj has quit IRC13:29
*** jayaraj_ has quit IRC13:29
*** jayaraj_ has joined #zope3-dev13:30
afd_greenman: why is that line wrong?13:33
greenmanit should be self.request.response.getHeader ?13:34
afd_the browser sends the If-Modified-Since header13:35
greenmanI 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_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 IRC13:39
greenmanall I am saying is that I don't believe the line self.request.getHeader('If-Modified-Since', None) is correct13:40
greenmansince when does request have a getHeader method?13:40
greenmanso I am implying this method never gets to this point13:41
*** aclark|away is now known as aclark13:43
greenmanthis is a zope 3 BrowserRequest?13:44
greenmanyeah, I think that's the problem, this part of the library has issues in the zope 2 world13:45
afd_I think zope 2 has it's own version of a File content object...13:46
greenmanas well as this one13: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 libraries13:47
greenmansure. thanks for your help.13:48
*** grahamperrin has left #zope3-dev13:58
*** jukart has quit IRC14:02
*** dunny has quit IRC14:05
*** stub has quit IRC14:09
*** menesis has joined #zope3-dev14:10
*** b52laptop has quit IRC14:18
*** b52laptop has joined #zope3-dev14:19
*** jayaraj has joined #zope3-dev14:24
*** icedlatte has quit IRC14:27
*** mkerrin has joined #zope3-dev14:28
*** projekt01 has joined #zope3-dev14:32
*** ignas has joined #zope3-dev14:39
*** jayaraj_ has quit IRC14:42
*** rcrafton has joined #zope3-dev14:47
*** jodok has joined #zope3-dev14:48
*** salfield has quit IRC14:57
*** seletz is now known as seletz|afk15:04
*** benji has joined #zope3-dev15:21
*** redir has joined #zope3-dev15:27
*** greenman has quit IRC15:36
*** MattBowen|work has joined #zope3-dev15:41
*** niemeyer has joined #zope3-dev15:42
*** mgedmin has joined #zope3-dev15:50
*** lurkymclurkleton has joined #zope3-dev15:50
*** jamur2 has joined #zope3-dev15:57
*** rmarianski has joined #zope3-dev16:03
*** pyqwer has joined #zope3-dev16:06
*** seletz|afk is now known as seletz16:10
*** gstratton has joined #zope3-dev16:11
pyqwerDoes someone know, which version of zalchemy in the SVN-Repository works with a recent SQLAlchemy distribution?16:14
*** J1m has joined #zope3-dev16:15
*** redir has quit IRC16:22
*** gstratton has quit IRC16:23
*** reco has joined #zope3-dev16:23
*** whit has joined #zope3-dev16:27
*** rmarianski has quit IRC16:28
*** thruflo has joined #zope3-dev16:30
*** djohnson__ has joined #zope3-dev16:44
*** djohnson has quit IRC16:44
*** MattBowen|wor1 has joined #zope3-dev16:53
*** naro has quit IRC16:57
*** rocky has quit IRC16:59
*** faassen has joined #zope3-dev17:01
*** rocky has joined #zope3-dev17:03
*** reco has quit IRC17:06
*** reco has joined #zope3-dev17:07
*** MattBowen|work has quit IRC17:10
*** binseer has quit IRC17:15
*** ktwilight_ has quit IRC17:15
*** ktwilight_ has joined #zope3-dev17:16
*** jayaraj has quit IRC17:22
*** nathany has joined #zope3-dev17:23
*** nathany has joined #zope3-dev17:23
*** MattBowen|work has joined #zope3-dev17:27
*** benji has quit IRC17:30
*** sorindregan has quit IRC17:33
*** redir has joined #zope3-dev17:33
*** baijum has quit IRC17:34
*** alexdb has joined #zope3-dev17:34
*** djohnson__ has quit IRC17:35
*** vimes656 has quit IRC17:37
*** rmarianski has joined #zope3-dev17:40
*** MattBowen|wor1 has quit IRC17:45
*** MattBowen|work has quit IRC17:45
*** whit has quit IRC17:46
*** lucielejard has joined #zope3-dev17:47
*** lucielejard has quit IRC17:47
*** rocky has quit IRC17:48
*** rocky has joined #zope3-dev17:52
*** jayaraj has joined #zope3-dev18:01
*** J1m has quit IRC18:01
*** romanofski has quit IRC18:02
*** J1m has joined #zope3-dev18:03
*** vimes656 has joined #zope3-dev18:06
*** timte has quit IRC18:10
*** alecm has joined #zope3-dev18:14
*** jayaraj_ has joined #zope3-dev18:17
*** jayaraj__ has joined #zope3-dev18:19
*** derek|laptop has quit IRC18:21
*** J1m has quit IRC18:24
*** dvschramm has joined #zope3-dev18:25
*** J1m has joined #zope3-dev18:25
*** thruflo has left #zope3-dev18:25
*** b52laptop has quit IRC18:32
Theunipyqwer: please forget about zalchemy18:34
Theuniit's pretty much abandoned by now. the folder stuff is *bah* and the transaction stuff finally went into zope.sqlalchemy18:35
*** jayaraj has quit IRC18:35
*** J1m has quit IRC18:36
*** alecm has quit IRC18:36
*** alecm has joined #zope3-dev18:37
*** jayaraj__ has quit IRC18:38
*** srichter has quit IRC18:39
*** jayaraj__ has joined #zope3-dev18:39
*** jayaraj_ has quit IRC18:39
*** b52laptop has joined #zope3-dev18:40
*** whit has joined #zope3-dev18:42
*** whit has quit IRC18:44
*** menesis has quit IRC18:49
*** malthe has quit IRC18:55
*** pcardune has quit IRC18:56
*** jayaraj__ has quit IRC18:59
*** projekt01 has quit IRC18:59
*** alecghica has quit IRC19:24
*** naro has joined #zope3-dev19:28
*** b52laptop has quit IRC19:28
*** paolo has quit IRC19:32
*** quodt has quit IRC19:34
*** mgedmin has quit IRC19:39
*** vimes656 has left #zope3-dev19:40
*** timte has joined #zope3-dev19:50
*** salfield has joined #zope3-dev19:56
*** srichter has joined #zope3-dev20:00
*** lurker_ has quit IRC20:00
*** lurker has joined #zope3-dev20:01
*** dobee has quit IRC20:04
*** nathany has quit IRC20:05
*** alexdb has quit IRC20:09
*** alecm has quit IRC20:10
*** lurker has quit IRC20:13
pyqwerTheuni: Thanks, I did not know about the zope.sqlalchemy package. Great, I'll have a look at it!20:13
*** pcardune has joined #zope3-dev20:13
*** alecm has joined #zope3-dev20:15
*** alecm has quit IRC20:16
*** pyqwer has quit IRC20:16
*** alecm has joined #zope3-dev20:18
*** jukart has joined #zope3-dev20:20
*** ChanServ sets mode: +o srichter20:20
*** seletz has quit IRC20:22
*** lurker has joined #zope3-dev20:22
*** lurker has quit IRC20:23
*** lurker has joined #zope3-dev20:25
*** faassen has quit IRC20:25
*** __mac__ has joined #zope3-dev20:26
*** lurker has quit IRC20:30
*** malthe has joined #zope3-dev20:30
*** mcdonc has quit IRC20:32
*** mcdonc has joined #zope3-dev20:32
*** ignas has quit IRC20:36
*** regebro has quit IRC20:37
*** nathany has joined #zope3-dev20:38
*** jodok has quit IRC20:39
*** nathany_ has joined #zope3-dev20:39
*** nathany_ has quit IRC20:39
*** lurker has joined #zope3-dev20:40
*** J1m has joined #zope3-dev20:51
*** __mac___ has joined #zope3-dev20:53
*** tarek has quit IRC20:54
*** lurker has quit IRC20:55
*** reedobrien has joined #zope3-dev20:59
*** harobed has quit IRC20:59
*** mkerrin has quit IRC21:02
*** maurits has quit IRC21:02
*** lurker has joined #zope3-dev21:05
*** redir has quit IRC21:06
*** dobee has joined #zope3-dev21:08
*** __mac__ has quit IRC21:12
*** jpcw2002 has left #zope3-dev21:12
*** J1m_ has joined #zope3-dev21:18
*** jodok has joined #zope3-dev21:20
*** jukart has quit IRC21:26
*** J1m has quit IRC21:28
*** alecm is now known as alecm|away21:29
*** __mac___ has quit IRC21:46
*** mweichert has quit IRC21:50
*** elro has joined #zope3-dev21:55
*** quodt has joined #zope3-dev22:03
*** timte has quit IRC22:05
*** quodt has quit IRC22:07
elrowhat's the replacement for the site manager api?22:07
philiKONwhaddaya mean?22:07
elrozope.component 3.4 seems to say that getSiteManager needs to be deprecated22:08
philiKONdoes it emit a warning?22:08
*** whit has joined #zope3-dev22:08
philiKONthen it's not deprecated :)22:09
elro shows BBB  too22:09
elroright ok22:10
*** __mac__ has joined #zope3-dev22:10
philiKONthis is zope.*app*.component22:10
*** whit has quit IRC22:10
philiKONand it's about the getNextSiteManager() stuff22:10
philiKONwhich is indeed deprecated22:11
elroI'm writing a test, and I want to test what happens when I change site manager. I'd like to avoid adding into the requirements. Is there any way to setSite to a zope.component.register.Components?22:11
philiKONzope.component knows nothing about the thread local variable that is set to the site manager22:12
philiKONby setSite()22:12
philiKONall this is in
philiKONin fact, you won't even be able to use local site managers without the hooks in enabled22:12
philiKON(you enable them by calling setHooks())22:12
philiKONalso, as far as i remember, the Components class isn't quite made to work as a local, non-persistent component registry22:13
elrobut zope.component.getSiteManager still returns the correct thing - or is that setup by the setHooks22:13
philiKONi think that's what z3c.baseregistry provides22:13
philiKONelro: z.c.getSiteManager() returns the correct thing b/c it's replaced by a custom implementation from this replacement happens when you call setHooks() indeed.22:13
*** afd_ has quit IRC22:15
elrodoes z3c.baseregistry replace getSiteManager too?22:15
elroI'm trying to work out whether I can use id(z.c.getSiteManager()) in a scoping function for zope.sqlalchemy22:16
*** agroszer has quit IRC22:18
philiKONno, z3c.baseregistry doesn't replace getSiteManager()22:22
philiKONit uses the same mechanism as
philiKONit just provides non persistent local site managers22:22
philiKON(in contrast to persistent local site managers that z.a.component has)22:22
philiKONid() sounds scary, especially if it may be a persistent obj22:23
elrothe id() shouldn't change for the duration of a request though, no?22:23
philiKONno, i suppose not22:24
elrothough I could probably test for a _p_oid first22:24
philiKONwhat you really want is to detect when a site manager changes, right?22:24
philiKONor rather, that a site manager has changed22:25
elroit seems easier just to add it to the scoping function of sqlalchemy's scoped session22:25
philiKONi have no idea what that means :)22:26
* philiKON doesn't know sqlalchemy that well22:26
philiKONi just wonder what you want with the sitemanager22:26
philiKONand why you'd need its id()22:26
elroI need to ensure that I end up with a different session within different site managers22:27
elrobecause local utility registrations could differ22:28
philiKONbut per request there's really only on esite manager22:28
philiKONit's set during traversal22:28
philiKONeach time the publication traverses over an ISit eobject, it stows the corresponding site manager away22:28
philiKONso when the application code (views, etc.) is executed, there's only one site manager active22:28
philiKONof course, i don't know how much you do stuff during traversal, because that's really only where the site manager changes22:29
elrothe 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 request22:30
*** whit has joined #zope3-dev22:32
philiKONso let me understand this22:33
elroIf app.site1 = MyApp(); app.site2 = MyApp(), I want an operation such as = bar; to force two sessions into the transaction22:33
philiKONlet's say in an early stage (e.g. during traversal), code finds a particular db engine22:33
philiKONah i see22:33
philiKONthat's not really possible with just a getSiteManager() call22:34
philiKONas said, there's only one active site manager22:34
philiKONit's found during traversal22:34
philiKONso it depends on the URL which site is active22:34
philiKONif the view behind http://.../app/site1/... manages to modify something in site2, then still site1's site manager is active22:35
philiKONthe only way to circumvent that is to explicitly use a context argument22:35
philiKONthis will yield site2's site manager22:35
elrocould something like site1 = app.restrictedTraverse(site1); site2 = app.restrictedTraverse(site2); =bar; = bar work?22:38
elro(assuming that site1.obj somehow triggers a getUtility lookup somewhere)22:40
elroor would getUtility(ISomething, site1.obj) work (assuming site1.obj,__parent__ = site1)22:41
philiKONi don't seem to quite follow22:42
philiKONthere's no restrictedTraverse in z3 :)22:42
philiKONtraversal happens exactly once per request22:42
*** __mac__ has quit IRC22:43
elroI've spend too long in Zope2 ;-)22:43
philiKONi could tell from obj.obj.obj.obj :)22:43
philiKONugly attribute syntax22:43
*** whitmo has joined #zope3-dev22:43
*** whit has quit IRC22:43
philiKONi don't quite undestand this, i'm afraid22:44
elrodoes 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
philiKONthe latter22:44
philiKONit's an explicit keywrod argument though22:44
philiKONgetUtility(IFoo, context=context)22:44
philiKONwhere context should have a __parent__ chain somewhere leading to an ISite22:44
philiKON(the 2nd positional arg to getUtilty is the name)22:45
*** whit has joined #zope3-dev22:46
elrowithout a context though I guess I'm stuffed22:46
philiKONfrom what i understand, it appears so22:46
elroI need to register a ScopedSession for each instance of the application, and ensure I look up the ScopedSession with a context22:46
*** whitmo_ has joined #zope3-dev22:47
philiKONseems so22:48
*** whit has quit IRC22:48
*** seletz has joined #zope3-dev22:48
*** MJ has quit IRC22:51
elroThough maybe it would be more natural to adapt an object to a session22:52
philiKONnot a bad idea22:53
*** b52laptop has joined #zope3-dev22:57
*** whitmo has quit IRC22:58
*** whitmo_ has quit IRC22:58
*** whit has joined #zope3-dev22:59
*** jpcw2002 has joined #zope3-dev22:59
*** whitmo has joined #zope3-dev23:02
*** whit has quit IRC23:02
*** jodok has quit IRC23:16
*** timte has joined #zope3-dev23:24
*** whitmo has quit IRC23:28
*** seletz_ has joined #zope3-dev23:30
*** greenman has joined #zope3-dev23:30
*** whit has joined #zope3-dev23:31
*** dunny has joined #zope3-dev23:37
*** seletz has quit IRC23:38
*** greenman has quit IRC23:40
*** seletz_ is now known as seletz23:40
*** malthe has quit IRC23:42
*** malthe has joined #zope3-dev23:42
*** seletz has quit IRC23:46
*** seletz has joined #zope3-dev23:46
*** naro has quit IRC23:49
*** timte has quit IRC23:49
*** scooterXL has quit IRC23:53
*** tarek has joined #zope3-dev23:54

Generated by 2.15.1 by Marius Gedminas - find it at!