[Zope] Catalog aware
zopelist at betabug.ch
Thu Jul 20 05:33:51 EDT 2006
(Wed, Jul 19, 2006 at 12:00:09PM -0400) zope-request at zope.org wrote/schrieb/egrapse:
> Subject: Re: [Zope] Catalog aware
Andreas Jung wrote:
> > It makes little sense to index the contents of PTs. PTs are used to
> > present a view on a particular instance of your class but not for
> > providing content
> > itself.
> I think it's a question of preferences
> Then can I "inject" Catalog awarness to an object?
... more on subclassing and monkeypatching in further mails.
Garito, please reread Andreas words. They are wisdom of the masters and
not to be ignored.
What would you want to catalog from the Page Template? The <html>,
<body> and <div> tags? The tal:content attributes?
But there is nothing else in there. There should be *no* content in
the page template. If there is then *you are doing something wrong* and
you will pay a heavy price down the road. Stop what you are doing and
think about doing it in a better way.
More information about the Zope