|
Re: Re: How do deal with cmfcatalog-wrapped objects?: msg#00049web.zope.z3base.five
Andreas Jung wrote: > Both solution appear a bit "heavy" to me. I solved this issue for > TextIndexNG3 by adding generic support for wrapped objects by > introducing an IObjectWrapper interface which is checked by the > indexer. Using five:implements it is easy to attach this interface - > if necessary - to any wrapper class (including > IndexableObjectWrapper@CMFCore). Writing an adapter for adapting > IndexableObjectWrapper to IObjectWrapper is trivial. I think this > solution is more straight forward and does not require any changes to > the CMF. You are of course free to introduce adapters of your own, but I think the second solution suggested is not too heavy and easily implemented. After all, other code will also depend on the wrapper being as transparent as possible. Philipp _______________________________________________ Zope-CMF maillist - Zope-CMF-lEa0QfImRKZ5o+NzvwT5Tw@xxxxxxxxxxxxxxxx http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Priority CMF skins vs. Five views?: 00049, yuppie |
|---|---|
| Next by Date: | Re: Re: How do deal with cmfcatalog-wrapped objects?: 00049, Andreas Jung |
| Previous by Thread: | Re: Re: How do deal with cmfcatalog-wrapped objects?i: 00049, Andreas Jung |
| Next by Thread: | Re: Re: How do deal with cmfcatalog-wrapped objects?: 00049, Andreas Jung |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |