[Zope] How to check type of variable in DTML

Dieter Maurer dieter@handshake.de
Fri, 10 May 2002 22:45:18 +0200


Schmidt, Allen J. writes:
 > ...
 > In a dtml doc or method it works fine. In a ZSQL it does not. Seems that it
 > always sees the input parameters as strings...never a list - even when
 > entered as a list. ['Ford','Dodge',''] is seen as a string when checked
 > inside a dtml-if in the ZSQL method.
Where do you enter it? As a default value?
There, you are in a string context and "['Ford',...]" can be interpreted
as a string, too.

 > Are Pythonscripts handled somehow differently inside a ZSQL method?
No.
 > Or
 > something else??
????

You must tell a bit more about your problem...


Dieter