IRC log of #zope3-dev for Wednesday, 2008-12-24

*** rmarianski has quit IRC00:07
*** dunny has joined #zope3-dev00:26
*** kaeru has joined #zope3-dev00:26
*** ignas has quit IRC00:31
*** dunny has quit IRC00:37
*** J1m has quit IRC00:58
*** lurkymclurkleton has quit IRC01:09
*** cshenton has quit IRC01:17
*** pelle_ has quit IRC01:19
*** tarek has joined #zope3-dev01:31
*** yota has joined #zope3-dev01:54
*** JaRoel|4D has joined #zope3-dev01:54
*** whit has quit IRC01:55
*** mcdonc has quit IRC02:20
*** JaRoel|4D has quit IRC02:24
*** yota has quit IRC02:33
*** jpcw has quit IRC02:39
*** aaronv has quit IRC02:43
*** fmail has joined #zope3-dev03:04
*** fmail has left #zope3-dev03:09
*** mcdonc has joined #zope3-dev03:18
*** andycat has quit IRC03:52
*** davisagli has left #zope3-dev03:52
*** baijum has joined #zope3-dev04:24
*** baijum has quit IRC04:42
*** davisagli has joined #zope3-dev04:44
*** hexsprite has quit IRC04:52
*** whit has joined #zope3-dev05:27
*** whit has quit IRC05:28
*** davisagli has quit IRC05:41
*** mcdonc_ has joined #zope3-dev05:42
*** stub has joined #zope3-dev05:42
*** davisagli has joined #zope3-dev05:47
*** greenman has quit IRC05:55
*** mcdonc has quit IRC05:59
*** mcdonc has joined #zope3-dev06:01
*** binseer has joined #zope3-dev06:23
*** mcdonc_ has quit IRC06:24
*** binbrain has quit IRC06:27
*** alecm has quit IRC06:44
*** jayaraj has joined #zope3-dev06:53
*** greenman has joined #zope3-dev07:40
*** baijum has joined #zope3-dev07:48
*** fairwinds has quit IRC07:50
*** dunny has joined #zope3-dev08:35
*** dunny has quit IRC08:41
*** dunny has joined #zope3-dev08:43
*** afd___ has joined #zope3-dev08:51
*** dunny has quit IRC09:00
*** greenman has quit IRC09:02
*** bigkevmcd has joined #zope3-dev09:04
*** __mac__ has joined #zope3-dev09:07
*** tarek has quit IRC09:36
*** thekryz has joined #zope3-dev09:37
*** thekryz has quit IRC09:40
*** JaRoel|4D has joined #zope3-dev09:42
*** JaRoel|4_ has joined #zope3-dev09:44
*** projekt01 has joined #zope3-dev09:51
*** baijum has quit IRC09:53
*** JaRoel|4D has quit IRC09:53
*** jpcw has joined #zope3-dev09:56
*** davisagli has left #zope3-dev10:06
*** __mac__ has quit IRC10:22
*** harobed has joined #zope3-dev10:26
*** dunny has joined #zope3-dev10:37
*** greenman has joined #zope3-dev10:41
*** toutpt has joined #zope3-dev10:50
*** tarek has joined #zope3-dev11:04
*** binbrain has joined #zope3-dev11:13
*** __mac__ has joined #zope3-dev11:16
*** jpcw has quit IRC11:17
*** afd___ has quit IRC11:26
*** __mac__ has quit IRC11:41
*** MJ has joined #zope3-dev11:41
*** dunny has quit IRC12:07
*** greenman has quit IRC12:11
*** tarek has quit IRC12:26
*** romanofski has joined #zope3-dev12:30
*** jpcw has joined #zope3-dev12:35
*** nyo has joined #zope3-dev12:49
*** harobed has quit IRC12:56
*** harobed has joined #zope3-dev12:57
*** __mac__ has joined #zope3-dev12:57
*** __mac__ has quit IRC13:04
*** harobed has quit IRC13:09
*** timte has joined #zope3-dev13:12
*** projekt01_ has joined #zope3-dev13:20
*** __mac__ has joined #zope3-dev13:28
binbrainhow do I get access to a utility with the site manager inside of a View?13:30
*** goschtl has joined #zope3-dev13:34
*** goschtl has quit IRC13:38
Theunibinbrain: zope.component.getUtility ... or what exactly is your question?13:38
*** projekt01 has quit IRC13:39
*** iham|away is now known as iham13:39
*** __mac__ has quit IRC13:39
binbrainthe zope.component.getUtility isn't finding my locally registered utility13:40
projekt01_Theuni, is the ZODB 3.8 the current blob implementation branch?13:40
binbrainbut if I use sm.getUtility(interface, name) I find it13:40
binbrainI found this out using debug13:40
*** goschtl has joined #zope3-dev13:41
*** baijum has joined #zope3-dev13:41
projekt01_Theuni, there is a undefined argument targetpath at line: 370 in ZODB/branches/3.8, should be path not targetpath13:43
projekt01_Theuni, I'm not sure where the current development happens for ZODB and if I should fix it13:44
nyobinbrain: may be there's problem in your configuration? there should be a subscriber in that sets last traversed site's sitemanager to current so if you use getUtility, it will find locally registered utilities..13:44
binbrainso to reiterate. at the time of site creation I register the pau utility with sm.registerUtility, but later when I need to grab the pau in the browserpage, zope.component.getUtility can't find it13:44
binbrainif I go to debug though, and use the sm.getUtility(IAuthentication, "name"), it finds it13:45
binbrainhow would my configuration effect the subscriber from not setting the last traversed sm to current?13:46
nyobinbrain: what sitemanager you get if you use getSiteManager function or adapt context to IComponentLookup in your view?13:46
nyobinbrain: well, may be your config doesn't include's configure.zcml or something... :)13:47
Theunibinbrain: for example in debug, the site  is not "traversed" and thus the site manager is not set as context13:47
Theuniprojekt01_: 3.8 is stable, development happens on trunk13:47
Theuniprojekt01_: if you find a bug, prepare a fix for both 3.8 and the trunk13:47
Theunij1m probably wants to review it, though13:47
projekt01_Theuni, trunk is fixed, 3.8 branch not13:50
Theunithen it should be :)13:51
* Theuni prepares for some christmas ... stuff13:51
projekt01_tag 3.8.1 is not fixed too, I guess this is the current release13:52
Theunii think so. pypi should tell13:53
projekt01_Theuni, np13:53
*** goschtl has quit IRC13:55
*** baijum has quit IRC14:07
*** nyo has quit IRC14:09
binbrainI'm not understanding "maybe your config doesn't include configure.zcml" so I'm guessing that might be whats wrong14:10
binbrainwhen I set the siteup, I do have a subscriber on setSiteManagerWhenAdded14:11
*** nyo has joined #zope3-dev14:12
binbrainso it sounds like the problem is that the context for my view isn't getting properly set to the current site, so getUtility can't find it. so what in my configure do I need to make that happen?14:15
*** projekt01_ has quit IRC14:18
*** fairwinds has joined #zope3-dev14:18
*** Theuni has quit IRC14:19
*** romanofski has quit IRC14:33
*** MJ has quit IRC15:00
*** baijum has joined #zope3-dev15:01
bigkevmcdthe shops are mobbed :-|15:05
*** Theuni has joined #zope3-dev15:14
*** romanofski has joined #zope3-dev15:16
*** J1m has joined #zope3-dev15:18
*** baijum has quit IRC15:23
*** baijum has joined #zope3-dev15:28
*** baijum has quit IRC15:34
*** aaronv has joined #zope3-dev15:38
*** Theuni has left #zope3-dev15:39
*** redir has joined #zope3-dev15:54
*** lurkymclurkleton has joined #zope3-dev16:03
*** MJ has joined #zope3-dev16:04
*** lurkymclurkleton has quit IRC16:04
*** lurkymclurkleton has joined #zope3-dev16:05
*** lucielejard has joined #zope3-dev16:16
*** binbrain has quit IRC16:16
*** Aiste has quit IRC16:31
*** MJ has quit IRC16:41
*** wgrant has quit IRC17:01
*** romanofski has quit IRC17:07
*** cshenton has joined #zope3-dev17:17
*** whit has joined #zope3-dev17:26
*** multani has quit IRC17:41
*** binbrain has joined #zope3-dev17:42
*** J1m has quit IRC17:53
*** harobed has joined #zope3-dev17:54
*** toutpt has quit IRC17:55
*** binseer has quit IRC18:06
*** rmarianski has joined #zope3-dev18:11
*** afd___ has joined #zope3-dev18:19
*** JaRoel|4_ has quit IRC18:23
*** whit has quit IRC18:24
*** J1m has joined #zope3-dev18:28
*** mcdonc has quit IRC18:35
*** J1m has quit IRC18:42
*** J1m has joined #zope3-dev18:44
*** J1m has quit IRC18:49
*** rmarianski has quit IRC18:54
*** rmarianski has joined #zope3-dev18:54
*** davisagli has joined #zope3-dev18:54
*** binbrain has quit IRC19:02
*** lucielejard has quit IRC19:02
*** binbrain has joined #zope3-dev19:02
*** afd___ has quit IRC19:12
*** harobed has quit IRC19:14
*** JaRoel|4D has joined #zope3-dev19:21
*** stub has quit IRC19:22
*** jayaraj has quit IRC19:23
*** lurkymclurkleton has quit IRC19:36
*** whit has joined #zope3-dev19:45
*** nyo has quit IRC20:16
*** jpcw has quit IRC20:29
*** bigkevmcd has quit IRC20:37
*** mcdonc has joined #zope3-dev21:22
*** nyo has joined #zope3-dev21:33
*** tarek has joined #zope3-dev21:51
binbrainin my view, the self.context getSiteManager doesn't get the site LocalSite, but rather the root site, I've heard that it might be something wrong with my configuration, not sure how to fix it though21:52
*** tarek has quit IRC21:53
*** dunny has joined #zope3-dev21:58
*** whit has quit IRC22:08
*** davisagli_ has joined #zope3-dev22:09
*** davisagli_ has quit IRC22:23
*** davisagli_ has joined #zope3-dev22:24
*** davisagli has quit IRC22:24
nyobinbrain: what what object is self.context in your example?22:26
*** rmarianski has quit IRC22:26
*** rmarianski has joined #zope3-dev22:27
nyobinbrain: and about configuration - how did you create your application skeleton?22:27
*** dunny has quit IRC22:28
*** dunny has joined #zope3-dev22:31
*** dunny has quit IRC22:32
binbrainnyo: the siteManager manger that I get with self.context.getSiteManager has the same id as the one I get doing root.getSiteManager22:34
binbrainthe application skeleton? I guess you mean the skin? The skin is setup, I have working macros that are looked up successfully in other browser pages22:35
nyobinbrain: no, I mean the way you created your zope instance22:36
binbrainmkzopeinstance I guess22:36
binbrainlong time ago, but thats the way I usually do it22:36
nyobinbrain: ah.. is that zope 3.3?22:36
nyobinbrain: a22:37
nyobinbrain: just looks like people don't use mkzopinstance anymore, so I thought you used zopeproject or created a buildout yourself22:38
nyobinbrain: nevermind, it should work:)22:38
nyobinbrain: what is the "self.context" in your case22:39
mcdoncisnt it getSiteManager(self.context)?22:40
binbrainself.context is class ''22:41
*** davisagli has joined #zope3-dev22:43
*** goschtl has joined #zope3-dev22:44
*** goschtl has quit IRC22:44
nyobinbrain: wow. either it is the "root" you mentioned, or it's sitemanager was set to root's one:)22:45
binbrainon site creation, IE, object added event, def setSiteManagerWhenAdded(site, event):   site.setSiteManager(LocalSiteManager(site))22:47
*** davisagli__ has joined #zope3-dev22:47
*** davisagli_ has quit IRC22:50
nyobinbrain: that's strange..22:50
binbrainI'm pretty sure that I am getting the siteManager of the root, I just don't understand why the self.context has that instead of the LocalSite22:50
nyoreally strange..22:50
binbrainI'm no Zope3 expert22:50
binbrainso, strange probably translates to "I have something messed up"22:51
nyobinbrain: looks like so :) is your code available to check out?22:51
binbrainno can do unfortunately22:52
*** cshenton has quit IRC22:52
*** davisagli has quit IRC22:54
*** davisagli__ is now known as davisagli23:13
*** whit has joined #zope3-dev23:32
*** mcdonc has quit IRC23:45
*** whit has quit IRC23:46
*** wgrant has joined #zope3-dev23:50

Generated by 2.15.1 by Marius Gedminas - find it at!