[Zope] Accessing the members of a tuple
Small Business Services
toolkit at magma.ca
Tue Feb 10 13:05:14 EST 2004
try:
<input name="semesterFirstTaught" value="<dtml-var
"courseInformation[0]">" />
HTH
Jonathan
----- Original Message -----
From: "Asad Habib" <ahabib at engin.umich.edu>
To: <zope at zope.org>
Sent: February 10, 2004 12:25 PM
Subject: [Zope] Accessing the members of a tuple
> Hello. I have a Python script that returns a tuple result to a DTML
> document. The script is working correctly. However, when I try to access
> the members of the tuple from the DTML document, Zope returns an error
> saying that the 'Resource courseInformation[0] is not available'. Any help
> would be greatly appreciated. Thanks. The following is my code and
> getCourseInformation is my Python script:
>
> <dtml-let courseInformation="getCourseInformation(coursesTaught,
course_name)">
> <input name="semesterFirstTaught" value="<dtml-var
courseInformation[0]>" />
> </dtml-let>
>
> - Asad
>
>
> _______________________________________________
> Zope maillist - Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
More information about the Zope
mailing list