[Zope] Accessing the members of a tuple

Asad Habib ahabib at engin.umich.edu
Tue Feb 10 12:25:46 EST 2004


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




More information about the Zope mailing list