Hello again

Im 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>

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.


Fabio Akita - Developer
F/Nazca S&S / Adversiting

Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to