"T.J. Mannos" <[EMAIL PROTECTED]> writes:

> Hi, there,
> I have a DTML document called "apples".
> A call to <dtml-var document_id> gives the string "apples"
> However, a <dtml-if "document_id == 'apples'"> returns false.  Am I missing
> something?  I've tried _.str(document_id) and even
> _.string.strip(_.str(document_id)).

document_id is a function, 
document_id() returns the document_id.

dtml-var calls any function automatically, 
python (inside the quotes) doesn't.


<dtml-var document_id><br>  
<dtml-var "document_id"><br>
<dtml-var "document_id()">

Jens Quade * [EMAIL PROTECTED] * Bonn

Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to