[Zope-dev] Why is TemplateDict so opaque? -and- Have youseen this problem?

Toby Dickenson tdickenson@geminidataloggers.com
Tue, 21 Dec 1999 07:57:18 -0000


> Another issue that this may solve is the inconsistant way of
> calling methods. Originally, when writing GUF, the concept was
> the Zope administrator could use any Zope method to populate 
> userlists,
> roles etc. However, as DTML methods require these magic variables,
> I had the choice of:
>     - Using DTML calling conventions, and methods that could not
>       fake it (Python Methods, External methods) would have to
>       be called from a DTML stub. ZSQL methods are be the 
>       main one affected.
> 
>     - Put in a special case if meta_type == 'DTML Method', making the
>       code and documentation more complex.

You can detect objects that need the DTMLish calling sequence using, 

if hasattr(dv,'isDocTemp') and dv.isDocTemp:
    ....