|
Re: Re: [Zope-CMF] Re: How do deal with cmfcatalog-wrapped objects?: msg#00051web.zope.z3base.five
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Just worked in the same area. I actually realised for our code, that we need two adapter, which reraises the question, how to reach for the real object for this adapters. Two adapters: Something like allowedRolesAndUsers is IMO a policy of the catalog or the overall system. Additionally there needs to be an adapter/ Interface to provide an object with the methods necessary for the selection of indices. This is more a descision of the developer of the object, or a particular application. I think it is not a good solution, that the object-specific adapter inherits from the catalog-specific adapter. So one ends up with a double wrapped object, where the outer catalog- specific adapter needs to have access to the real object. How is this handled best? Is there a generic unwrap()-method? __Janko Am 07.04.2006 um 07:38 schrieb Andreas Jung: Both solution appear a bit "heavy" to me. I solved this issue for TextIndexNG3 by adding generic support for wrapped objects by introducing an - -- Janko Hauser email: jhauser@xxxxxxxxx mobile: +49 1721 641552 -----BEGIN PGP SIGNATURE----- iD8DBQFEOSV9e7bTUi4B2KARAoY2AJ9NG3tEJsnIjpjYZ/TNGMBck1DvTgCglyPI nTv9mO4vUhMRCXH0RldT2dY= =YFv7 -----END PGP SIGNATURE----- |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Re: How do deal with cmfcatalog-wrapped objects?: 00051, Andreas Jung |
|---|---|
| Next by Date: | zope.viewlet and zope.contentprovider - options for Zope 2 and Plone 3: 00051, Martin Aspeli |
| Previous by Thread: | Re: Re: How do deal with cmfcatalog-wrapped objects?i: 00051, Andreas Jung |
| Next by Thread: | SqlAlchemy thru Five: 00051, David Pratt |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |