[Zope-dev] Method calls

Roch'e Compaan roche@ybm.co.za
Thu, 23 Nov 2000 15:21:48 +0200


I have a method called getModulesForProduct to which I pass a ProductID eg:
<dtml-in "Products.Modules.getModulesForProduct(this(), _, ProductID)"
sort=name>

If ProductID is passed on from a form variable it works fine.

If I set the ProductID through REQUEST.set:
  <dtml-call "REQUEST.set('ProductID',_.str(Product.id))"> ,

I get a TypeError:

Error Type: TypeError
Error Value: hasattr, argument 2: expected string, int found

I've been banging my head against this problem the whole day so help would
really be appreciated.

Roché