[Zope] Developing customer customizable products

Peter Sabaini peter at sabaini.at
Fri Dec 5 06:03:22 EST 2003


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-
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3461 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.zope.org/pipermail/zope/attachments/20031205/dcfebfc1/smime.bin


More information about the Zope mailing list