Re: [Zope-dev] vocabularies missing wihtout zope.app.schema
On Mon, Jan 11, 2010 at 17:52, Hanno Schlichting ha...@hannosch.eu wrote: On Mon, Jan 11, 2010 at 4:31 PM, Roger d...@projekt01.ch wrote: The zope.componentvocabulary package defines some basic vocabulary (factory) classes. Probably we should move the zope/app/schema/vocabulary.py to this package as registry.py. If it doesn't introduce new dependencies, that sounds good. Hi, with the newest plone4 beta there is an empty vocabulary registry because no package imports zope.app.schema any longer. I am not sure if the registry from zope.app.schema belongs to zope.componentvocabulary. After all zope.componentvocabulary provides vocabularies for components while zope.app.schema replaces the current, non component based registry with his own one. How about moving the code into zope.schema and make it the default registry if zope.component is available? Best regards, Patrick ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] vocabularies missing wihtout zope.app.schema
On 7/21/10 6:19 PM, Patrick Gerken wrote: On Mon, Jan 11, 2010 at 17:52, Hanno Schlichting ha...@hannosch.eu wrote: On Mon, Jan 11, 2010 at 4:31 PM, Roger d...@projekt01.ch wrote: The zope.componentvocabulary package defines some basic vocabulary (factory) classes. Probably we should move the zope/app/schema/vocabulary.py to this package as registry.py. If it doesn't introduce new dependencies, that sounds good. Hi, with the newest plone4 beta there is an empty vocabulary registry because no package imports zope.app.schema any longer. I am not sure if the registry from zope.app.schema belongs to zope.componentvocabulary. After all zope.componentvocabulary provides vocabularies for components while zope.app.schema replaces the current, non component based registry with his own one. How about moving the code into zope.schema and make it the default registry if zope.component is available? I ran into this yesterday. It is already fixed in lastest Zope 2.12 and Plone trunk (thanks Hanno). The vocab registry that looks up vocabularies as components is now located in Products.Five.schema (to avoid depending on zope.app.schema). For tests it is now initialized in latest Products.PloneTestCase. David -- David Glick Web Developer davidgl...@groundwire.org 206.286.1235x32 Groundwire: You Are Connected http://groundwire.org ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] vocabularies missing wihtout zope.app.schema
On 01/11/2010 02:26 PM, Roger wrote: Hi all I'm not happy with the current vocabulary registry concept. Please note that vocabularies have had a successor concept for a while: sources. They are much cleaner and split their concerns for various aspects much more nicely. They don't provide a registry concept, though. Christian -- Christian Theune · c...@gocept.com gocept gmbh co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1 Zope and Plone consulting and development ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] vocabularies missing wihtout zope.app.schema
Hi all I'm not happy with the current vocabulary registry concept. Some zope.* packages provide vocabularies as zope.schema.interfaces.IVocabularyFactory utilities. The current zope.schema vocabulary registry without the patch located in zope.app.schema can't lookup such vocabulary factory utilities. Which concept should the ZTK use? The plain vocabulary from zope.schema.vocabulary or the enhanced component lookupbased concept defined in zope.app.schema.vocabulary? Any hints how we should improve that? Regards Roger Ineichen _ END OF MESSAGE ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] vocabularies missing wihtout zope.app.schema
On Mon, Jan 11, 2010 at 2:26 PM, Roger d...@projekt01.ch wrote: Which concept should the ZTK use? The plain vocabulary from zope.schema.vocabulary or the enhanced component lookupbased concept defined in zope.app.schema.vocabulary? Any idea how zope.componentvocabulary fits into this? Hanno ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] vocabularies missing wihtout zope.app.schema
Hi Hanno -Ursprüngliche Nachricht- Von: Hanno Schlichting [mailto:ha...@hannosch.eu] Gesendet: Montag, 11. Januar 2010 15:45 An: d...@projekt01.ch Cc: zope-dev Betreff: Re: [Zope-dev] vocabularies missing wihtout zope.app.schema On Mon, Jan 11, 2010 at 2:26 PM, Roger d...@projekt01.ch wrote: Which concept should the ZTK use? The plain vocabulary from zope.schema.vocabulary or the enhanced component lookupbased concept defined in zope.app.schema.vocabulary? Any idea how zope.componentvocabulary fits into this? The zope.componentvocabulary package defines some basic vocabulary (factory) classes. Probably we should move the zope/app/schema/vocabulary.py to this package as registry.py. The question is, does someone like to use a non component based vocabulary registry? Was that the reason that the vocabulary registry was not moved from zope.app.schema? I guess not, right? Regards Roger Ineichen Hanno ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] vocabularies missing wihtout zope.app.schema
Hello, One more question is how to solve the PIA problem with the automatic registration of the component based registry? This import me, then you'll have it bite us regularly. I think this is definitely bad design. Monday, January 11, 2010, 4:31:57 PM, you wrote: R Hi Hanno -Ursprüngliche Nachricht- Von: Hanno Schlichting [mailto:ha...@hannosch.eu] Gesendet: Montag, 11. Januar 2010 15:45 An: d...@projekt01.ch Cc: zope-dev Betreff: Re: [Zope-dev] vocabularies missing wihtout zope.app.schema On Mon, Jan 11, 2010 at 2:26 PM, Roger d...@projekt01.ch wrote: Which concept should the ZTK use? The plain vocabulary from zope.schema.vocabulary or the enhanced component lookupbased concept defined in zope.app.schema.vocabulary? Any idea how zope.componentvocabulary fits into this? R The zope.componentvocabulary package defines some R basic vocabulary (factory) classes. Probably we R should move the zope/app/schema/vocabulary.py R to this package as registry.py. R The question is, does someone like to use a non component R based vocabulary registry? Was that the reason that the R vocabulary registry was not moved from zope.app.schema? R I guess not, right? R Regards R Roger Ineichen Hanno R ___ R Zope-Dev maillist - Zope-Dev@zope.org R https://mail.zope.org/mailman/listinfo/zope-dev R ** No cross posts or HTML encoding! ** R (Related lists - R https://mail.zope.org/mailman/listinfo/zope-announce R https://mail.zope.org/mailman/listinfo/zope ) -- Best regards, Adam GROSZERmailto:agros...@gmail.com -- Quote of the day: Learn to say no. It will be of more use to you than to be able to read Latin. - Charles Haddon Spurgeon ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] vocabularies missing wihtout zope.app.schema
On Mon, Jan 11, 2010 at 4:31 PM, Roger d...@projekt01.ch wrote: The zope.componentvocabulary package defines some basic vocabulary (factory) classes. Probably we should move the zope/app/schema/vocabulary.py to this package as registry.py. If it doesn't introduce new dependencies, that sounds good. The question is, does someone like to use a non component based vocabulary registry? Was that the reason that the vocabulary registry was not moved from zope.app.schema? I guess not, right? I guess the reason was that Zope2 has made a copy of it to Products.Five.schema and the Toolkit in general didn't get to this part of refactoring yet. Hanno ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )