[Zope-Coders] Adding SearchableText() to ZopePageTemplate class
Andreas Jung
Andreas Jung <andreas@andreas-jung.com>
Thu, 03 Apr 2003 17:15:22 +0200
Makes sense :-)
Andreas
--On Donnerstag, 3. April 2003 9:33 Uhr -0500 Casey Duncan <casey@zope.com>
wrote:
> 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
>> > 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.
>
> Yes, I agree. We don't want code that the CMF requires added to the Zope
> core. If you want to use a PageTemplate as content you should subclass
> in your app. No hacks would be needed.
>
> -Casey
>
>
> _______________________________________________
> Zope-Coders mailing list
> Zope-Coders@zope.org
> http://mail.zope.org/mailman/listinfo/zope-coders