[Zope-Coders] Adding SearchableText() to ZopePageTemplate class
Florent Guillaume
fg@nuxeo.com
Thu, 3 Apr 2003 12:53:41 +0200
In article <2147483647.1049124192@[10.19.128.17]> you write:
> I would like to add SearchableText() as alias for PrincipiaSearchSource()
> to the ZopePageTemplate
> class. This would allow to keep context in page templates inside a CMF
> site. This content could be
> indexed without any further hacks and scripts as SearchableText instead of
> PrincipiaSearchSource.
Hmm this won't be enough to make ZopePageTemplate an good citizen CMF
object. You'll need indexing methods too, and possibly workflow methods.
Basically you need DynamicType and CMFCatalogAware.
So I don't see what you don't subclass ZopePageTemplate and add to it
the necessary methods or base classes.
Florent
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com