+-------[ [EMAIL PROTECTED] ]----------------------
| In order to interact with the paypal shopping cart system, they want me to
| increment hidden fields, such as:
|  
| <input type="hidden" tal:attributes="value item/name; name python:'item_name_'
| + `x`">
| <input type="hidden" tal:attributes="value item/id; name python:'item_number_'
| + `x`">
| 
| where "x" is a number from 1 on up, where "1" represents the first product in
| the shopping cart, "2" represents the second product, etc. So...we have to do
| it their way. Perhaps this is really bad ZPT, but we have to do it their way.
| Can ZPT handle this, or not?

1) Why not use the "enumerate" method in your repeat?
2) Why not pass the items to a python script that builds the structure you
   need and returns it?

-- 
Andrew Milton
[EMAIL PROTECTED]
_______________________________________________
Zope maillist  -  Zope@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 )

Reply via email to