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

2000-08-24 Thread Jens Quade

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

> Hi, there,
> 
> I have a DTML document called "apples".
> 
> A call to  gives the string "apples"
> 
> However, a  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

  





-- 
Jens Quade * [EMAIL PROTECTED] * Bonn










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




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

2000-08-23 Thread T.J. Mannos

Hi, there,

I have a DTML document called "apples".

A call to  gives the string "apples"

However, a  returns false.  Am I missing
something?  I've tried _.str(document_id) and even
_.string.strip(_.str(document_id)).

Thanks,
T.J.


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