Re: [Zope] Can't compare apples to apples. (document_id != id_of_my_document)
24 Aug
2000
24 Aug
'00
7:34 a.m.
"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
9356
Age (days ago)
9356
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jens Quade