[Zope] Working with Lists

Terry Babbey terry@lambton.on.ca
Thu, 20 Jul 2000 10:47:32 -0400


Here is my code and my error.

<dtml-in "_.getitem(ProgCode,0).CL">
<dtml-let item=sequence-item>
  <dtml-var "item[0]">
</dtml-let>
<BR>
</dtml-in>

Zope has encountered an error while publishing this resource.

           Error Type: IndexError
           Error Value: string index out of range

CL is a property of a dtml document and is a list of courses for a
given program. My goal is to test character 8 of each line and if it
is a - (dash) then it represents a course name which I will usr to
point to a course description.
Any help?
Terry
--
__________________________________________________________________
Terry Babbey
Technical Support Specialist
Lambton College, Sarnia, Ontario, Canada
__________________________________________________________________