I'd provide a default DTMLMethod | PageTemplate file and check for a ZODB based DTMLMethod | PageTemplate object Sth like def render(self, <request, args etc.>): template = getattr(self, 'customized_pt', None) if template is None: template = self.default_pt return template(<your arguments>) Petter Holmström wrote:
Greetings everybody,
I've tried to find some information on this subject by using Google, with no success. Therefore I ask it here, and if I've selected the wrong mailing list please let me know and accept my appologies.
I need to develop a Zope product whose logic-part is to be left untouched but whose presentation parts (DTML methods, etc.) should be customizable. I'll give a little example to clearify:
Let's say I write a guestbook product. This product has a default user interface which means that I can, if I wish, just add a guestbook product to the customer's folder and that's it. Unfortunately we're seldom that lycky. Perhaps the customer wants the guestbook in another language, or "embedded" into his/her original website. To do this I'll have to override the default presentation pages somehow. The management screens can stay as they were. What is the best approach?
Thanks in advance,
-Petter-