Modifizieren eines ATDocuments vor dem Rendern

"Robert Barsch" <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <51336.194.105.100.57.1242474897.squirrel@webmail.geophysik.uni-muenchen.de>
Hallo Liste,

ich möchte gerne in Plone 3 vor dem Rendern einer Page (ATDocument) den
von Plone generierten HTML Output des Body Textes modifizieren können.


In Plone 2.1 geht sowas via Monkey Patch:

> from Products.ATContentTypes.types.ATDocument import ATDocument
>
> def CookedBody(self, stx_level=None, setlevel=0):
>     text = self.getText()
>     # do someting with the text
>     text = text.upper()
>     return text
>
> ATDocument.CookedBody = CookedBody


Wie würde ich sowas machen ohne Einführung eines neuen ContentTypes und
auf möglichst eleganter Art & Weise mit Zope 3 Techniken?

LG,
Robert




_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.