Re: [Zope-dev] make zope.component.registry.Components inherit from dict?

2009-11-24 Thread Wichert Akkerman
On 2009-11-24 05:57, Martin Aspeli wrote: I whole-heartedly agree, and I think it's important that we use the momentum behind BFG (and other consumers of the ZTK) to drive the ZTK forward. Anything else would be stupid. I don't think BFG can be considered to be a 'consumer of the ZTK'. It

Re: [Zope-dev] make zope.component.registry.Components inherit from dict?

2009-11-24 Thread Hanno Schlichting
On Tue, Nov 24, 2009 at 5:53 AM, Matthew Wilkes matt...@matthewwilkes.co.uk wrote: But, here is where the ZCA eyes come back into play, I wouldn't add this to the ZCA itself.  One reason being that Hanno's been working on a more useful persistent component root for Zope that brings in bits of

Re: [Zope-dev] make zope.component.registry.Components inherit from dict?

2009-11-24 Thread Chris McDonough
Hanno Schlichting wrote: I'm not sure how this affects Chris proposal. But we already have a commonly used subclass of the component registry that uses the dict API in a somewhat different way here. Thanks for the explanation Hanno, fair enough. five.localsitemanager peed in this API pool

Re: [Zope-dev] make zope.component.registry.Components inherit from dict?

2009-11-24 Thread Martin Aspeli
Chris McDonough wrote: Except at this point we've lost all the other ZCA stuff. You can't override with a local utility, for example. I see. I didn't understand that this was a use case, because I don't use any persistent registries. If you say this is a use case, I believe it. Note

Re: [Zope-dev] make zope.component.registry.Components inherit from dict?

2009-11-24 Thread Martin Aspeli
Martin Aspeli wrote: I *do* actually like the named IAnonymousUtility thing as a convenience, because it retains some consistency. Maybe it's slower, which would be a negative. But it also allows all the other ZCA stuff (overriding, introspection, global/local variants, etc) and API: we're

Re: [Zope-dev] make zope.component.registry.Components inherit from dict?

2009-11-24 Thread Chris McDonough
Martin Aspeli wrote: Chris McDonough wrote: Except at this point we've lost all the other ZCA stuff. You can't override with a local utility, for example. I see. I didn't understand that this was a use case, because I don't use any persistent registries. If you say this is a use case,

[Zope-dev] Zope Tests: 6 OK

2009-11-24 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Mon Nov 23 12:00:00 2009 UTC to Tue Nov 24 12:00:00 2009 UTC. There were 6 messages: 6 from Zope Tests. Tests passed OK --- Subject: OK : Zope-2.10 Python-2.4.6 : Linux From: Zope Tests Date: Mon Nov 23 20:43:55 EST 2009 URL:

Re: [Zope-dev] make zope.component.registry.Components inherit from dict?

2009-11-24 Thread Benji York
On Tue, Nov 24, 2009 at 6:22 AM, Chris McDonough chr...@plope.com wrote: I think we have to divorce the requirement from the ZCA. The requirement: - an attribute of an instance of the class   zope.component.registry.Components which is dictionarylike   (accepts any key type, any value

Re: [Zope-dev] make zope.component.registry.Components inherit from dict?

2009-11-24 Thread Stephan Richter
On Tuesday 24 November 2009, Chris McDonough wrote: Off the top of my head, another way to think of this might be to say that the 'dict access' is basically looking up a named utility providing a very generic marker interface, e.g. zope.component.interfaces.IUtility or even just

[Zope-dev] Making zope.dublincore independent of zope.annotation

2009-11-24 Thread Thomas Lotze
I'd like to see the hard dependency of zope.dublincore on zope.annotation gone. This would lift the indirect dependency on the ZODB. zope.dublincore uses zope.annotation in three places: - For defining the IZopeDublinCoreAnnotatable marker interface which isn't used in any of the packages

Re: [Zope-dev] make zope.component.registry.Components inherit from dict?

2009-11-24 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin Aspeli wrote: Martin Aspeli wrote: I *do* actually like the named IAnonymousUtility thing as a convenience, because it retains some consistency. Maybe it's slower, which would be a negative. But it also allows all the other ZCA stuff

Re: [Zope-dev] make zope.component.registry.Components inherit from dict?

2009-11-24 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wichert Akkerman wrote: On 2009-11-24 05:57, Martin Aspeli wrote: I whole-heartedly agree, and I think it's important that we use the momentum behind BFG (and other consumers of the ZTK) to drive the ZTK forward. Anything else would be stupid.

Re: [Zope-dev] make zope.component.registry.Components inherit from dict?

2009-11-24 Thread Wichert Akkerman
On 2009-11-24 17:26, Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wichert Akkerman wrote: On 2009-11-24 05:57, Martin Aspeli wrote: I whole-heartedly agree, and I think it's important that we use the momentum behind BFG (and other consumers of the ZTK) to drive the ZTK

Re: [Zope-dev] make zope.component.registry.Components inherit from dict?

2009-11-24 Thread Chris McDonough
Stephan Richter wrote: On Tuesday 24 November 2009, Chris McDonough wrote: Off the top of my head, another way to think of this might be to say that the 'dict access' is basically looking up a named utility providing a very generic marker interface, e.g. zope.component.interfaces.IUtility or

[Zope-dev] Zope3 server with SIGSEGV - what to do?

2009-11-24 Thread Hermann Himmelbauer
Hi, In my Zope3 (I use Zope 3.4.0) logs I just found some curious entries: -- snip --- 2009-10-23T12:20:41 INFO root pid 21278: terminated by SIGSEGV -- 2009-10-23T12:20:41 INFO root spawned process pid=1502 -- 2009-10-23T12:21:12 INFO

Re: [Zope-dev] Zope3 server with SIGSEGV - what to do?

2009-11-24 Thread Benji York
On Tue, Nov 24, 2009 at 4:04 PM, Hermann Himmelbauer du...@qwer.tk wrote: This occurs once in a while, so it seems something segfaults and the server seems to notice that and restarts. Any clue what to do about this? If you're using a version of zope.security less than 3.7.1, I would suspect

[Zope-dev] Releasing zope.browserresource

2009-11-24 Thread Thomas Lotze
Could somebody please give me PyPI rights for zope.browserresource? I'd like to release a new version of it which includes the recent fixes to its dependencies. Thank you very much. -- Thomas ___ Zope-Dev maillist - Zope-Dev@zope.org

Re: [Zope-dev] make zope.component.registry.Components inherit from dict?

2009-11-24 Thread Chris McDonough
Chris McDonough wrote: I think it makes sense. If we can relax the utility name must be a string restriction it would be the best solution I think. I'll see what I can do. I've decided to keep the components subclass which inherits from dict. - C

Re: [Zope-dev] make zope.component.registry.Components inherit from dict?

2009-11-24 Thread Martin Aspeli
Chris McDonough wrote: I think we have to divorce the requirement from the ZCA. The requirement: - an attribute of an instance of the class zope.component.registry.Components which is dictionarylike (accepts any key type, any value type). If I can get that, I'd be happy,

Re: [Zope-dev] make zope.component.registry.Components inherit from dict?

2009-11-24 Thread Chris McDonough
Martin Aspeli wrote: Chris McDonough wrote: I think we have to divorce the requirement from the ZCA. The requirement: - an attribute of an instance of the class zope.component.registry.Components which is dictionarylike (accepts any key type, any value type). If I can get that,

Re: [Zope-dev] make zope.component.registry.Components inherit from dict?

2009-11-24 Thread Martin Aspeli
Chris McDonough wrote: I fear it was for naught, sorry. Adding an attribute is unsightly and turning this into a component problem doesn't have enough immediate gain. The BFG registry will just continue to be a dict subclass. If Zope folks later want to use libraries that come from

Re: [Zope-dev] make zope.component.registry.Components inherit from dict?

2009-11-24 Thread Chris McDonough
Martin Aspeli wrote: Chris McDonough wrote: I fear it was for naught, sorry. Adding an attribute is unsightly and turning this into a component problem doesn't have enough immediate gain. The BFG registry will just continue to be a dict subclass. If Zope folks later want to use

Re: [Zope-dev] Releasing zope.browserresource

2009-11-24 Thread Thomas Lotze
Stephan Richter wrote: On Tuesday 24 November 2009, Thomas Lotze wrote: Could somebody please give me PyPI rights for zope.browserresource? I'd like to release a new version of it which includes the recent fixes to its dependencies. Thank you very much. I am in the process of making you

Re: [Zope-dev] Zope3 server with SIGSEGV - what to do?

2009-11-24 Thread Hermann Himmelbauer
Am Dienstag 24 November 2009 22:12:00 schrieb Benji York: On Tue, Nov 24, 2009 at 4:04 PM, Hermann Himmelbauer du...@qwer.tk wrote: This occurs once in a while, so it seems something segfaults and the server seems to notice that and restarts. Any clue what to do about this? If you're