IRC log of #zope for Wednesday, 2012-08-08

smJ1m: got any newer favourite languages ?00:23
smjust curious00:24
*** mcdonc has quit IRC00:36
*** runyaga has joined #zope00:46
*** runyaga has quit IRC00:46
*** runyaga has joined #zope00:46
J1msm, wha? Oh, my griping about Python. No, It's still my favorite, though with less enthusiasm than in the past. :)00:50
smyay :)00:51
smwhen you said regularity, I thought of two of my favourites, haskell and racket00:52
smbut python is coming in to this java shop I'm in.. hooray00:53
*** mcdonc has joined #zope00:54
*** J1m has quit IRC01:20
*** avn has quit IRC01:30
*** kosh has joined #zope01:30
*** mcdonc has quit IRC01:48
*** evilbungle has quit IRC01:52
*** mcdonc has joined #zope02:09
*** mcdonc has quit IRC02:38
*** tiwula has quit IRC02:42
*** daMaestro has quit IRC02:53
*** _mup_ has quit IRC03:00
*** _mup_ has joined #zope03:00
*** benji has quit IRC03:27
*** benji has joined #zope03:28
*** Spanktar has quit IRC03:29
*** rodgort has quit IRC04:22
*** rodgort has joined #zope04:24
*** KageSenshi has joined #zope05:13
*** benji has quit IRC05:16
*** nande has quit IRC05:19
*** mcdonc has joined #zope05:33
*** benji has joined #zope05:40
*** KageSenshi has quit IRC05:57
*** KageSenshi has joined #zope06:04
*** alecm has quit IRC06:11
*** dayne has joined #zope06:15
*** frapell has joined #zope06:23
*** mcdonc has quit IRC06:36
*** alecm has joined #zope06:51
*** RichyB has quit IRC06:54
*** mcdonc has joined #zope07:12
*** kosh has quit IRC07:44
*** mcdonc has quit IRC08:53
*** menesis has joined #zope08:59
*** KageSenshi has quit IRC09:08
*** agroszer has joined #zope09:14
*** KageSenshi has joined #zope09:22
*** __mac__ has joined #zope09:29
*** moo-_- has quit IRC09:33
*** vperic has joined #zope09:48
*** avoinea has joined #zope10:14
*** vperic has quit IRC10:20
*** __mac__ has quit IRC10:40
*** goschtl has joined #zope10:45
*** eperez has joined #zope10:47
*** moo-_- has joined #zope10:51
*** giacomos has joined #zope11:05
*** maurits has joined #zope11:16
*** eperez has quit IRC11:22
*** MrTango has joined #zope11:25
*** sunew has joined #zope11:43
*** RichyB has joined #zope11:44
*** moo-_- has quit IRC12:10
*** moo-_- has joined #zope12:13
*** evilbungle has joined #zope12:16
*** astoon has joined #zope12:21
*** astoon has left #zope12:23
*** avn has joined #zope12:36
*** teix has joined #zope12:44
*** __mac__ has joined #zope12:45
*** eperez has joined #zope12:49
*** __mac__ has quit IRC13:37
*** nande has joined #zope13:37
*** sunew has quit IRC14:30
*** yvl has joined #zope14:55
*** goschtl has quit IRC15:11
*** menesis has quit IRC15:27
*** fredvd has joined #zope15:28
*** menesis has joined #zope16:08
*** J1m has joined #zope16:11
*** kosh has joined #zope16:20
*** fredvd has quit IRC16:25
*** KageSenshi has quit IRC16:27
*** J1m has quit IRC16:36
*** J1m has joined #zope16:41
*** f10w has quit IRC16:42
*** f10w has joined #zope16:45
*** menesis has quit IRC16:50
*** menesis has joined #zope16:52
*** menesis has quit IRC17:09
*** menesis has joined #zope17:10
*** KageSenshi has joined #zope17:20
*** mcdonc has joined #zope17:23
*** mk has joined #zope17:32
*** mk has left #zope17:32
*** mk86ax has joined #zope17:33
mk86axHi@all17:33
mk86axI have a question regarding Zope: I have two products which both have a own configure.zcml. Both require to set permissions for id=zope.View which is causing a ConfigurationConflict Error when I try to start my zopeServer. Both Products need those permissions. Is there any way to give them without causing a conflict?17:35
mgedminyes17:37
mgedminyou can override both of the conflicting directives and resolve the conflict that way17:38
mgedminfind the file that <include>s both product configurations, put the override in there17:38
J1mor include one of the files as an override of the other.17:39
*** eperez has quit IRC17:39
mk86axhm I thought its working like that, but actually I have no clue how to do that. I have two configure.zcml, each at the place where the product is. There is also a override.zcml in both folders. But I have no idea what to write there to solve the conflict17:40
mk86axk, i will post my zcmls to pastie. one moment17:41
mk86axhttp://pastie.org/private/sfgriw62j2aaygenpcmocg17:43
mk86axthose are the two zcml files. both with <permission id="zope.View"17:44
mk86axso I guess I have to place that <permission id="zope.View" definition somewhere else to solve the conflict. Just don't know how and where :-(17:45
mgedminyou have to walk up the include tree17:47
mgedminwhere is five/grok/configure.zcml included?17:47
mgedminwhee is gocept/fssyncz2/configure.zcml included?17:47
mgedminIIRC the ConfigurationConflictError prints the include stack of both directives17:48
mgedmin(pastebint it maybe?)17:48
mk86axhttp://pastie.org/private/zayfpuvwmtrdxbirgpvjpa17:50
mgedminok, I misremembered: it doesn't print the full include stack for config conflict errors17:52
mk86axgot no clue where to find the top of the stack. I tried to grep through but i get thousands of hits when it comes to configure.zcml or the product name s of course17:52
*** dayne has quit IRC17:54
J1mI'm 86% sure there used to be a traceback that showed zcml file names. <shrug>17:55
mgedminI think regular exceptions that happen during configuration time show the full stack17:55
mgedminmk86ax, this is zope 2?  I'm not familiar with modern zope 217:56
mgedminisn't there a site.zcml?17:56
mk86axits zope2 yes17:56
mk86axyes there is at instance1/etc17:57
mk86axhttp://pastie.org/private/vjcm4pqfrds0v02gsoyluq17:57
mgedminok17:58
mgedminI'd create a package-includes/something-overrides.zcml that contains this <permission ...> directive and a comment saying this is to resolve a conflict between five.grok and gocept.fssyncz217:58
mgedminthe hardest part is coming up with something to replace "something" in the filename ;)17:59
mk86axhonestly I am total nobody when it comes to zcml...18:00
mk86axso that something-overrides.zcml needs a configure tag + that permission…. inside?18:00
mk86axand where do i have to place this zcml file?18:00
mk86axdoes:  package-includes/something-overrides.zcml point to a certain path?18:01
mgedminisn't there instance1/etc/package-includes?18:01
mk86axah i see, ok18:02
mk86axso then i put the permission..line in here, including that file in the site.zcml and delete the permission entries from both configure.zcml files of the products?18:03
mgedminno18:03
mgedminyou put the permission line in that (newly created) file18:03
mgedminthat's it18:03
mgedminit's already included from site.zcml (<includeOverrides files="package-includes/*-overrides.zcml" />)18:04
mgedminand it's an override, so you don't need to delete anything from other product's config files18:04
*** vperic has joined #zope18:05
mk86axah ok18:05
mk86axConfigurationError: ('Unknown directive', None, u'permission')18:06
mk86axI put <configure><permission id="zope.View" title="View stuff" /></configure> in it, I guess that's not enough? :-D18:07
*** kosh has quit IRC18:08
mgedminyeah, you need an xmlns18:10
mgedmin<configure xmlns="http://namespaces.zope.org/zope">18:10
mgedminsorry about not mentioning that (I forgot myself)18:10
*** tiwula has joined #zope18:11
*** evilbungle has quit IRC18:11
*** evilbungle_ has joined #zope18:11
*** benji has quit IRC18:12
mk86axConfigurationExecutionError: zope.component.interfaces.ComponentLookupError: (<InterfaceClass zope.security.interfaces.IPermission>, 'zope.View')18:13
mgedminuhhh....18:13
mgedminpastebin full traceback?18:14
mk86axhttp://pastie.org/private/rwkttobvhopz1z7zndxaa18:15
mgedminmaybe order matters here?>18:15
mgedminin which case -overrides.zcml isn't going to cut it18:16
mgedminand you need to move that <permission> line directly into site.zcml, between " <five:loadProducts file="meta.zcml"/>" and "<!-- Load the configuration -->"18:16
*** benji has joined #zope18:18
mk86axyay, the server has at least started now without errors :-D18:19
mgedmin(you can probably see why I'm reluctant to recommend zope to anyone starting a new site/project)18:20
mk86axwell its not bad as long as you are not trying anything freaky like i do18:22
mk86axi gotta go. but thank you VERY MUCH mgedmin, you made my day ;-.)18:22
mgedmino/18:23
mk86axcya :-D18:23
*** mk86ax has left #zope18:23
*** frapell has quit IRC18:25
*** frapell has joined #zope18:25
*** frapell has joined #zope18:25
*** Guest80319 has joined #zope18:26
*** mcdonc has quit IRC18:33
*** KageSenshi has quit IRC18:41
*** agroszer has quit IRC18:47
*** alecm has quit IRC19:06
*** evilbungle has joined #zope19:07
*** evilbungle_ has quit IRC19:07
*** vperic has quit IRC19:24
*** avoinea has quit IRC19:26
*** evilbungle has quit IRC19:33
*** chaoflow has quit IRC19:33
*** benji has quit IRC19:33
*** f10w has quit IRC19:33
*** kiorky has quit IRC19:33
*** CIA-80 has quit IRC19:33
*** _mup_ has quit IRC19:33
*** sp0cksbeard has quit IRC19:33
*** giacomos has quit IRC19:33
*** runyaga has quit IRC19:33
*** sm has quit IRC19:33
*** benbangert has quit IRC19:33
*** tiwula has quit IRC19:33
*** MrTango has quit IRC19:33
*** purserj has quit IRC19:33
*** iElectric has quit IRC19:33
*** Wu has quit IRC19:33
*** Arfrever has quit IRC19:33
*** teix has quit IRC19:33
*** Guest80319 has quit IRC19:33
*** J1m has quit IRC19:33
*** RichyB has quit IRC19:33
*** maurits has quit IRC19:33
*** avn has quit IRC19:33
*** polysix has quit IRC19:33
*** mitchell`off has quit IRC19:33
*** lahwran has quit IRC19:33
*** rodgort has quit IRC19:33
*** zenwryly has quit IRC19:33
*** moo-_- has quit IRC19:33
*** raydeo has quit IRC19:33
*** Deathspawn has quit IRC19:33
*** ajmitch has quit IRC19:33
*** JT___ has quit IRC19:33
*** betabug has quit IRC19:33
*** nande has quit IRC19:34
*** evilbungle has joined #zope19:34
*** nande1 has joined #zope19:34
*** Guest80319 has joined #zope19:34
*** benji has joined #zope19:34
*** tiwula has joined #zope19:34
*** f10w has joined #zope19:34
*** J1m has joined #zope19:34
*** teix has joined #zope19:34
*** avn has joined #zope19:34
*** moo-_- has joined #zope19:34
*** RichyB has joined #zope19:34
*** MrTango has joined #zope19:34
*** maurits has joined #zope19:34
*** giacomos has joined #zope19:34
*** rodgort has joined #zope19:34
*** _mup_ has joined #zope19:34
*** runyaga has joined #zope19:34
*** zenwryly has joined #zope19:34
*** kiorky has joined #zope19:34
*** polysix has joined #zope19:34
*** purserj has joined #zope19:34
*** chaoflow has joined #zope19:34
*** iElectric has joined #zope19:34
*** Wu has joined #zope19:34
*** benbangert has joined #zope19:34
*** sm has joined #zope19:34
*** sp0cksbeard has joined #zope19:34
*** Deathspawn has joined #zope19:34
*** Arfrever has joined #zope19:34
*** lahwran has joined #zope19:34
*** mitchell`off has joined #zope19:34
*** raydeo has joined #zope19:34
*** ajmitch has joined #zope19:34
*** betabug has joined #zope19:34
*** JT___ has joined #zope19:34
*** CIA-80 has joined #zope19:34
*** alecm has joined #zope19:40
*** alecm has joined #zope19:40
*** chaoflow has quit IRC19:44
*** benji has quit IRC19:44
*** f10w has quit IRC19:44
*** kiorky has quit IRC19:44
*** CIA-80 has quit IRC19:44
*** _mup_ has quit IRC19:44
*** sp0cksbeard has quit IRC19:44
*** giacomos has quit IRC19:44
*** runyaga has quit IRC19:44
*** sm has quit IRC19:44
*** benbangert has quit IRC19:44
*** tiwula has quit IRC19:44
*** MrTango has quit IRC19:44
*** purserj has quit IRC19:44
*** iElectric has quit IRC19:44
*** Wu has quit IRC19:44
*** Arfrever has quit IRC19:44
*** teix has quit IRC19:44
*** nande1 has quit IRC19:44
*** Guest80319 has quit IRC19:44
*** J1m has quit IRC19:44
*** RichyB has quit IRC19:44
*** maurits has quit IRC19:44
*** avn has quit IRC19:44
*** alecm has quit IRC19:44
*** polysix has quit IRC19:44
*** mitchell`off has quit IRC19:44
*** lahwran has quit IRC19:44
*** evilbungle has quit IRC19:44
*** rodgort has quit IRC19:44
*** zenwryly has quit IRC19:44
*** moo-_- has quit IRC19:44
*** raydeo has quit IRC19:44
*** Deathspawn has quit IRC19:44
*** ajmitch has quit IRC19:44
*** JT___ has quit IRC19:44
*** betabug has quit IRC19:44
*** alecm has joined #zope19:45
*** evilbungle has joined #zope19:45
*** nande1 has joined #zope19:45
*** Guest80319 has joined #zope19:45
*** benji has joined #zope19:45
*** tiwula has joined #zope19:45
*** f10w has joined #zope19:45
*** J1m has joined #zope19:45
*** teix has joined #zope19:45
*** avn has joined #zope19:45
*** moo-_- has joined #zope19:45
*** RichyB has joined #zope19:45
*** MrTango has joined #zope19:45
*** maurits has joined #zope19:45
*** giacomos has joined #zope19:45
*** rodgort has joined #zope19:45
*** _mup_ has joined #zope19:45
*** runyaga has joined #zope19:45
*** zenwryly has joined #zope19:45
*** kiorky has joined #zope19:45
*** polysix has joined #zope19:45
*** purserj has joined #zope19:45
*** chaoflow has joined #zope19:45
*** iElectric has joined #zope19:45
*** Wu has joined #zope19:45
*** benbangert has joined #zope19:45
*** sm has joined #zope19:45
*** sp0cksbeard has joined #zope19:45
*** Deathspawn has joined #zope19:45
*** Arfrever has joined #zope19:45
*** lahwran has joined #zope19:45
*** mitchell`off has joined #zope19:45
*** raydeo has joined #zope19:45
*** ajmitch has joined #zope19:45
*** betabug has joined #zope19:45
*** JT___ has joined #zope19:45
*** CIA-80 has joined #zope19:45
*** [Arfrever] has quit IRC19:45
*** [Arfrever] has joined #zope19:46
*** agroszer has joined #zope20:06
*** giacomos has quit IRC20:07
*** agroszer has quit IRC20:18
*** Spanktar has joined #zope20:18
*** evilbungle has quit IRC20:26
*** Guest80319 is now known as frapell20:29
*** frapell has joined #zope20:29
*** frapell has joined #zope20:30
*** Guest81710 has joined #zope20:30
*** Guest81710 is now known as frapell_20:31
*** menesis has quit IRC20:37
*** frapell_ has quit IRC20:37
*** benji has quit IRC20:39
*** nande1 has quit IRC20:39
*** maurits has quit IRC20:40
*** benji has joined #zope20:45
*** Spanktar has quit IRC20:55
*** ajmitch has quit IRC20:55
*** Spanktar has joined #zope20:56
*** ajmitch has joined #zope20:58
*** frapell has joined #zope21:33
*** frapell has joined #zope21:33
*** frapell has quit IRC21:44
*** frapell has joined #zope21:45
*** frapell has joined #zope21:45
*** __mac__ has joined #zope21:46
*** evilbungle has joined #zope21:52
*** benji has quit IRC21:56
*** benji has joined #zope21:58
*** MrTango has quit IRC22:01
*** teix has quit IRC22:10
*** sqwishy has joined #zope22:25
sqwishyIs there a way to register an adapter that is not a factory?22:25
*** frapell has quit IRC22:26
benjisqwishy: I don't understand the question.  Will you elaborate a little?22:26
*** frapell has joined #zope22:27
*** frapell has joined #zope22:27
sqwishybenji: registerAdapter takes a class/factory and creates instances whenever it is needed by queryAdapter22:28
sqwishyI suppose I'm interested in registering one instance22:28
benjisqwishy: if you always want to return the same instance you can make a function that returns it22:30
sqwishybenji: And provide that as the factory?22:30
benjiright22:30
*** maurits has joined #zope22:31
sqwishybenji: Well, I think the factory has to implement an interface. So I'm not sure it'd be as simple as a function.22:32
benjisqwishy: http://paste.ubuntu.com/1136771/22:34
benji(that is untested code, but should be pretty close)22:34
sqwishyOh, neato, I don't think I was aware of the implementer and adapter methods, just the other ones ...22:37
*** maurits has quit IRC22:47
*** nande has joined #zope22:56
*** menesis has joined #zope22:58
*** __mac__ has quit IRC23:21

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