> Error Type: TypeError
> Error Value: unsupported operand type(s) for -

>      resource = row['resource'] - 1

You should check that row['resource'] is a data type that supports
subtraction. If for example row['resource'] is a string, this will raise the
error. Try: resource = int(row['resource']) - 1
--
  Andy McKay
  Agmweb Consulting
  http://www.agmweb.ca




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

Reply via email to