Re: [Zope-dev] Help, please!!! __call__ problems with DTML templates

2000-10-10 Thread Evan Simpson
From: Stephen Simmons <[EMAIL PROTECTED]> > 1.) How do you magically get the DTML context from '' without > having to resort to '' in the templates? A.isDocTemp = 1 # or make it a shared class attribute > 2.) How to convert an arbitrary text string into rendered DTML inside a > python product

Re: [Zope-dev] Help, please!!! __call__ problems with DTML templates

2000-10-10 Thread Steve Alexander
Stephen Simmons wrote: > > 2.) How to convert an arbitrary text string into rendered DTML inside a > python product method? > How do you get the object's properties, REQUEST and acquisition context all > in the namespace? > > I've been trying code like: >template = ' fmt="structured_text">

Re: [Zope-dev] Help, please!!! __call__ problems with DTML templates

2000-10-10 Thread Steve Alexander
Stephen Simmons wrote: > > 1.) How do you magically get the DTML context from '' without > having to resort to '' in the templates? Give your class a class attribute of isDocTemp=1. This tells the DTML method calling machinery that you want to receive the namespace as REQUEST as the third arg

[Zope-dev] Help, please!!! __call__ problems with DTML templates

2000-10-10 Thread Stephen Simmons
Today is not a good day:-( I've just spent 2 days trying to force __call__ to render my product properly, got every error possible at least seven times, and wasted last night working out what was wrong with Refresh (I was calling refresh on the wrong product. Duh!). Please, please, please, ca