[Zope] sequence-item as a method argument
Fabio Akita
akitaf@sti.com.br
Wed, 14 Jun 2000 16:41:33 -0300
Hello again
I´m still testing the usability and reliability of Zope. To accomplish this
goal I am developing a very very simple shopping cart. But I got troubled by
something aparently simple. This is the code:
<dtml-in "SESSION['cartItems']">
<dtml-in "sqlSearchProduct(productID=sequence-item)">
<tr><td><dtml-var productName></td><td><dtml-var price></td></tr>
</dtml-in>
</dtml-in>
SESSION['cartItems'] is an array created in another DTML document using the
well known SQLSession product. Here I am retrieving the itens of this array
and passing it to a ZSQL method to get the selected items.
The sqlSearchProduct, alone, works well. If I substitute the inner <dtml-in
"sql...> for a simple <dtml-var sequence-item> the block works fine,
otherwise it gives me the following error:
Zope has encountered an error while publishing this resource.
Error Type: NameError
Error Value: sequence
Anyone knows what is going on? I think this must be a simple thing.
Thanks
[]´s
Fabio Akita - Developer
F/Nazca S&S / Adversiting
akita@fnazca.com.br