[Zope] Can't compare apples to apples. (document_id != id_of_my_document)

Jens Quade jq@jquade.de
24 Aug 2000 09:34:31 +0200


"T.J. Mannos" <MannosTJ@slcc.edu> 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.

Compare

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



-- 
Jens Quade * jq@jquade.de * Bonn