[Zope-Coders] Adding SearchableText() to ZopePageTemplate class
Casey Duncan
casey@zope.com
Thu, 3 Apr 2003 09:33:01 -0500
On Thursday 03 April 2003 05:53 am, Florent Guillaume wrote:
> In article <2147483647.1049124192@[10.19.128.17]> you write:
> > I would like to add SearchableText() as alias for PrincipiaSearchSou=
rce()=20
> > to the ZopePageTemplate
> > class. This would allow to keep context in page templates inside a CM=
F=20
> > site. This content could be
> > indexed without any further hacks and scripts as SearchableText inste=
ad of=20
> > PrincipiaSearchSource.
>=20
> Hmm this won't be enough to make ZopePageTemplate an good citizen CMF
> object. You'll need indexing methods too, and possibly workflow methods=
=2E
> Basically you need DynamicType and CMFCatalogAware.
>=20
> So I don't see what you don't subclass ZopePageTemplate and add to it
> the necessary methods or base classes.
Yes, I agree. We don't want code that the CMF requires added to the Zope =
core.=20
If you want to use a PageTemplate as content you should subclass in your =
app.=20
No hacks would be needed.
-Casey