[Zope] Developing customer customizable products
Petter Holmström
petter.holmstrom at abo.fi
Fri Dec 5 07:48:27 EST 2003
On pe, 2003-12-05 at 13:03, Peter Sabaini wrote:
> 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>)
^^^^
What kind of arguments are we talking about here?
This code:
def index_html(self, REQUEST):
template = DTMLFile( 'dtml/my_dtml_file', globals() )
return template(self, REQUEST)
results in the following error message:
Error Type: AttributeError
Error Value: aq_parent
I've looked in Google and found several posts about similar problems,
but I have not been able to find the solution to this particular
problem.
Thanks in advance,
-Petter-
--
Petter Holmström
Civare, Åbo Akademi University
Axelia, Biskopsgatan 8, Room 339
Tel: +358 2 215 3508 GSM: +358 40 8395765
Email: petter.holmstrom at abo.fi
More information about the Zope
mailing list