*** rmarianski has quit IRC | 00:07 | |
*** dunny has joined #zope3-dev | 00:26 | |
*** kaeru has joined #zope3-dev | 00:26 | |
*** ignas has quit IRC | 00:31 | |
*** dunny has quit IRC | 00:37 | |
*** J1m has quit IRC | 00:58 | |
*** lurkymclurkleton has quit IRC | 01:09 | |
*** cshenton has quit IRC | 01:17 | |
*** pelle_ has quit IRC | 01:19 | |
*** tarek has joined #zope3-dev | 01:31 | |
*** yota has joined #zope3-dev | 01:54 | |
*** JaRoel|4D has joined #zope3-dev | 01:54 | |
*** whit has quit IRC | 01:55 | |
*** mcdonc has quit IRC | 02:20 | |
*** JaRoel|4D has quit IRC | 02:24 | |
*** yota has quit IRC | 02:33 | |
*** jpcw has quit IRC | 02:39 | |
*** aaronv has quit IRC | 02:43 | |
*** fmail has joined #zope3-dev | 03:04 | |
*** fmail has left #zope3-dev | 03:09 | |
*** mcdonc has joined #zope3-dev | 03:18 | |
*** andycat has quit IRC | 03:52 | |
*** davisagli has left #zope3-dev | 03:52 | |
*** baijum has joined #zope3-dev | 04:24 | |
*** baijum has quit IRC | 04:42 | |
*** davisagli has joined #zope3-dev | 04:44 | |
*** hexsprite has quit IRC | 04:52 | |
*** whit has joined #zope3-dev | 05:27 | |
*** whit has quit IRC | 05:28 | |
*** davisagli has quit IRC | 05:41 | |
*** mcdonc_ has joined #zope3-dev | 05:42 | |
*** stub has joined #zope3-dev | 05:42 | |
*** davisagli has joined #zope3-dev | 05:47 | |
*** greenman has quit IRC | 05:55 | |
*** mcdonc has quit IRC | 05:59 | |
*** mcdonc has joined #zope3-dev | 06:01 | |
*** binseer has joined #zope3-dev | 06:23 | |
*** mcdonc_ has quit IRC | 06:24 | |
*** binbrain has quit IRC | 06:27 | |
*** alecm has quit IRC | 06:44 | |
*** jayaraj has joined #zope3-dev | 06:53 | |
*** greenman has joined #zope3-dev | 07:40 | |
*** baijum has joined #zope3-dev | 07:48 | |
*** fairwinds has quit IRC | 07:50 | |
*** dunny has joined #zope3-dev | 08:35 | |
*** dunny has quit IRC | 08:41 | |
*** dunny has joined #zope3-dev | 08:43 | |
*** afd___ has joined #zope3-dev | 08:51 | |
*** dunny has quit IRC | 09:00 | |
*** greenman has quit IRC | 09:02 | |
*** bigkevmcd has joined #zope3-dev | 09:04 | |
*** __mac__ has joined #zope3-dev | 09:07 | |
*** tarek has quit IRC | 09:36 | |
*** thekryz has joined #zope3-dev | 09:37 | |
*** thekryz has quit IRC | 09:40 | |
*** JaRoel|4D has joined #zope3-dev | 09:42 | |
*** JaRoel|4_ has joined #zope3-dev | 09:44 | |
*** projekt01 has joined #zope3-dev | 09:51 | |
*** baijum has quit IRC | 09:53 | |
*** JaRoel|4D has quit IRC | 09:53 | |
*** jpcw has joined #zope3-dev | 09:56 | |
*** davisagli has left #zope3-dev | 10:06 | |
*** __mac__ has quit IRC | 10:22 | |
*** harobed has joined #zope3-dev | 10:26 | |
*** dunny has joined #zope3-dev | 10:37 | |
*** greenman has joined #zope3-dev | 10:41 | |
*** toutpt has joined #zope3-dev | 10:50 | |
*** tarek has joined #zope3-dev | 11:04 | |
*** binbrain has joined #zope3-dev | 11:13 | |
*** __mac__ has joined #zope3-dev | 11:16 | |
*** jpcw has quit IRC | 11:17 | |
*** afd___ has quit IRC | 11:26 | |
*** __mac__ has quit IRC | 11:41 | |
*** MJ has joined #zope3-dev | 11:41 | |
*** dunny has quit IRC | 12:07 | |
*** greenman has quit IRC | 12:11 | |
*** tarek has quit IRC | 12:26 | |
*** romanofski has joined #zope3-dev | 12:30 | |
*** jpcw has joined #zope3-dev | 12:35 | |
*** nyo has joined #zope3-dev | 12:49 | |
*** harobed has quit IRC | 12:56 | |
*** harobed has joined #zope3-dev | 12:57 | |
*** __mac__ has joined #zope3-dev | 12:57 | |
*** __mac__ has quit IRC | 13:04 | |
*** harobed has quit IRC | 13:09 | |
*** timte has joined #zope3-dev | 13:12 | |
*** projekt01_ has joined #zope3-dev | 13:20 | |
*** __mac__ has joined #zope3-dev | 13:28 | |
binbrain | how do I get access to a utility with the site manager inside of a View? | 13:30 |
---|---|---|
*** goschtl has joined #zope3-dev | 13:34 | |
*** goschtl has quit IRC | 13:38 | |
Theuni | binbrain: zope.component.getUtility ... or what exactly is your question? | 13:38 |
*** projekt01 has quit IRC | 13:39 | |
*** iham|away is now known as iham | 13:39 | |
*** __mac__ has quit IRC | 13:39 | |
binbrain | the zope.component.getUtility isn't finding my locally registered utility | 13:40 |
projekt01_ | Theuni, is the ZODB 3.8 the current blob implementation branch? | 13:40 |
binbrain | but if I use sm.getUtility(interface, name) I find it | 13:40 |
binbrain | I found this out using debug | 13:40 |
*** goschtl has joined #zope3-dev | 13:41 | |
*** baijum has joined #zope3-dev | 13:41 | |
projekt01_ | Theuni, there is a undefined argument targetpath at line: 370 in blob.py ZODB/branches/3.8, should be path not targetpath | 13:43 |
projekt01_ | Theuni, I'm not sure where the current development happens for ZODB and if I should fix it | 13:44 |
nyo | binbrain: may be there's problem in your configuration? there should be a subscriber in zope.app.component that sets last traversed site's sitemanager to current so if you use getUtility, it will find locally registered utilities.. | 13:44 |
binbrain | so 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 it | 13:44 |
binbrain | if I go to debug though, and use the sm.getUtility(IAuthentication, "name"), it finds it | 13:45 |
binbrain | how would my configuration effect the subscriber from not setting the last traversed sm to current? | 13:46 |
nyo | binbrain: what sitemanager you get if you use getSiteManager function or adapt context to IComponentLookup in your view? | 13:46 |
nyo | binbrain: well, may be your config doesn't include zope.app.component's configure.zcml or something... :) | 13:47 |
Theuni | binbrain: for example in debug, the site is not "traversed" and thus the site manager is not set as context | 13:47 |
Theuni | projekt01_: 3.8 is stable, development happens on trunk | 13:47 |
Theuni | projekt01_: if you find a bug, prepare a fix for both 3.8 and the trunk | 13:47 |
Theuni | j1m probably wants to review it, though | 13:47 |
projekt01_ | Theuni, trunk is fixed, 3.8 branch not | 13:50 |
Theuni | then it should be :) | 13:51 |
* Theuni prepares for some christmas ... stuff | 13:51 | |
projekt01_ | tag 3.8.1 is not fixed too, I guess this is the current release | 13:52 |
Theuni | i think so. pypi should tell | 13:53 |
projekt01_ | Theuni, np | 13:53 |
*** goschtl has quit IRC | 13:55 | |
*** baijum has quit IRC | 14:07 | |
*** nyo has quit IRC | 14:09 | |
binbrain | I'm not understanding "maybe your config doesn't include zope.app.components configure.zcml" so I'm guessing that might be whats wrong | 14:10 |
binbrain | when I set the siteup, I do have a subscriber on setSiteManagerWhenAdded | 14:11 |
*** nyo has joined #zope3-dev | 14:12 | |
binbrain | so 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 IRC | 14:18 | |
*** fairwinds has joined #zope3-dev | 14:18 | |
*** Theuni has quit IRC | 14:19 | |
*** romanofski has quit IRC | 14:33 | |
*** MJ has quit IRC | 15:00 | |
*** baijum has joined #zope3-dev | 15:01 | |
bigkevmcd | the shops are mobbed :-| | 15:05 |
*** Theuni has joined #zope3-dev | 15:14 | |
*** romanofski has joined #zope3-dev | 15:16 | |
*** J1m has joined #zope3-dev | 15:18 | |
*** baijum has quit IRC | 15:23 | |
*** baijum has joined #zope3-dev | 15:28 | |
*** baijum has quit IRC | 15:34 | |
*** aaronv has joined #zope3-dev | 15:38 | |
*** Theuni has left #zope3-dev | 15:39 | |
*** redir has joined #zope3-dev | 15:54 | |
*** lurkymclurkleton has joined #zope3-dev | 16:03 | |
*** MJ has joined #zope3-dev | 16:04 | |
*** lurkymclurkleton has quit IRC | 16:04 | |
*** lurkymclurkleton has joined #zope3-dev | 16:05 | |
*** lucielejard has joined #zope3-dev | 16:16 | |
*** binbrain has quit IRC | 16:16 | |
*** Aiste has quit IRC | 16:31 | |
*** MJ has quit IRC | 16:41 | |
*** wgrant has quit IRC | 17:01 | |
*** romanofski has quit IRC | 17:07 | |
*** cshenton has joined #zope3-dev | 17:17 | |
*** whit has joined #zope3-dev | 17:26 | |
*** multani has quit IRC | 17:41 | |
*** binbrain has joined #zope3-dev | 17:42 | |
*** J1m has quit IRC | 17:53 | |
*** harobed has joined #zope3-dev | 17:54 | |
*** toutpt has quit IRC | 17:55 | |
*** binseer has quit IRC | 18:06 | |
*** rmarianski has joined #zope3-dev | 18:11 | |
*** afd___ has joined #zope3-dev | 18:19 | |
*** JaRoel|4_ has quit IRC | 18:23 | |
*** whit has quit IRC | 18:24 | |
*** J1m has joined #zope3-dev | 18:28 | |
*** mcdonc has quit IRC | 18:35 | |
*** J1m has quit IRC | 18:42 | |
*** J1m has joined #zope3-dev | 18:44 | |
*** J1m has quit IRC | 18:49 | |
*** rmarianski has quit IRC | 18:54 | |
*** rmarianski has joined #zope3-dev | 18:54 | |
*** davisagli has joined #zope3-dev | 18:54 | |
*** binbrain has quit IRC | 19:02 | |
*** lucielejard has quit IRC | 19:02 | |
*** binbrain has joined #zope3-dev | 19:02 | |
*** afd___ has quit IRC | 19:12 | |
*** harobed has quit IRC | 19:14 | |
*** JaRoel|4D has joined #zope3-dev | 19:21 | |
*** stub has quit IRC | 19:22 | |
*** jayaraj has quit IRC | 19:23 | |
*** lurkymclurkleton has quit IRC | 19:36 | |
*** whit has joined #zope3-dev | 19:45 | |
*** nyo has quit IRC | 20:16 | |
*** jpcw has quit IRC | 20:29 | |
*** bigkevmcd has quit IRC | 20:37 | |
*** mcdonc has joined #zope3-dev | 21:22 | |
*** nyo has joined #zope3-dev | 21:33 | |
*** tarek has joined #zope3-dev | 21:51 | |
binbrain | in 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 though | 21:52 |
*** tarek has quit IRC | 21:53 | |
*** dunny has joined #zope3-dev | 21:58 | |
*** whit has quit IRC | 22:08 | |
*** davisagli_ has joined #zope3-dev | 22:09 | |
*** davisagli_ has quit IRC | 22:23 | |
*** davisagli_ has joined #zope3-dev | 22:24 | |
*** davisagli has quit IRC | 22:24 | |
nyo | binbrain: what what object is self.context in your example? | 22:26 |
*** rmarianski has quit IRC | 22:26 | |
*** rmarianski has joined #zope3-dev | 22:27 | |
nyo | binbrain: and about configuration - how did you create your application skeleton? | 22:27 |
*** dunny has quit IRC | 22:28 | |
*** dunny has joined #zope3-dev | 22:31 | |
*** dunny has quit IRC | 22:32 | |
binbrain | nyo: the siteManager manger that I get with self.context.getSiteManager has the same id as the one I get doing root.getSiteManager | 22:34 |
binbrain | the application skeleton? I guess you mean the skin? The skin is setup, I have working macros that are looked up successfully in other browser pages | 22:35 |
nyo | binbrain: no, I mean the way you created your zope instance | 22:36 |
binbrain | mkzopeinstance I guess | 22:36 |
binbrain | long time ago, but thats the way I usually do it | 22:36 |
nyo | binbrain: ah.. is that zope 3.3? | 22:36 |
binbrain | 3.4.0c1 | 22:37 |
nyo | binbrain: a | 22:37 |
nyo | binbrain: just looks like people don't use mkzopinstance anymore, so I thought you used zopeproject or created a buildout yourself | 22:38 |
nyo | binbrain: nevermind, it should work:) | 22:38 |
nyo | binbrain: what is the "self.context" in your case | 22:39 |
mcdonc | isnt it getSiteManager(self.context)? | 22:40 |
binbrain | self.context is class 'zope.app.folder.folder.Folder' | 22:41 |
*** davisagli has joined #zope3-dev | 22:43 | |
*** goschtl has joined #zope3-dev | 22:44 | |
*** goschtl has quit IRC | 22:44 | |
nyo | binbrain: wow. either it is the "root" you mentioned, or it's sitemanager was set to root's one:) | 22:45 |
binbrain | on site creation, IE, object added event, def setSiteManagerWhenAdded(site, event): site.setSiteManager(LocalSiteManager(site)) | 22:47 |
*** davisagli__ has joined #zope3-dev | 22:47 | |
*** davisagli_ has quit IRC | 22:50 | |
nyo | binbrain: that's strange.. | 22:50 |
binbrain | I'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 LocalSite | 22:50 |
nyo | really strange.. | 22:50 |
binbrain | I'm no Zope3 expert | 22:50 |
binbrain | so, strange probably translates to "I have something messed up" | 22:51 |
nyo | binbrain: looks like so :) is your code available to check out? | 22:51 |
binbrain | no can do unfortunately | 22:52 |
*** cshenton has quit IRC | 22:52 | |
*** davisagli has quit IRC | 22:54 | |
*** davisagli__ is now known as davisagli | 23:13 | |
*** whit has joined #zope3-dev | 23:32 | |
*** mcdonc has quit IRC | 23:45 | |
*** whit has quit IRC | 23:46 | |
*** wgrant has joined #zope3-dev | 23:50 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!