[Zope] Accessing the members of a tuple
Andreas Jung
andreas at andreas-jung.com
Tue Feb 10 12:43:37 EST 2004
Python expressions must be double-quoted! Please refer to the dtml reference
for details.
-aj
--On Dienstag, 10. Februar 2004 12:25 Uhr -0500 Asad Habib
<ahabib at engin.umich.edu> wrote:
> 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