Re: [Zope-dev] Method calls

2000-11-23 Thread Steve Spicklemire
Hmm... OK ... next question... what are you doing *in* the 'in' tag? Somehow you're trying to access an object contained in an object manager (one of your modules?) and you're using an 'int' rather than a string as an id. Can you post the code? thanks, -steve > "Roch'e" == Roch'e Compaan <

RE: [Zope-dev] Method calls

2000-11-23 Thread Roch'e Compaan
All apologies, I was looking at the wrong "dtml-in". It must be me choking on the workload :) roché >OK.. it's the 'in' tag that's causing the problem. Why not try: > > > > and see what 'in' is choking on... ___ Zope-Dev maillist - [EMAIL P

RE: [Zope-dev] Method calls

2000-11-23 Thread Roch'e Compaan
>OK.. it's the 'in' tag that's causing the problem. Why not try: > > > > and see what 'in' is choking on... It's choking on a list of instances. This is what is returned when I "var" the expression: [, , , ] ___ Zope-Dev maillist - [EMAIL P

Re: [Zope-dev] Method calls

2000-11-23 Thread Steve Spicklemire
In Roche, OK.. it's the 'in' tag that's causing the problem. Why not try: and see what 'in' is choking on... -steve > "Roch'e" == Roch'e Compaan <[EMAIL PROTECTED]> writes: ... Roch'e> line 147, in render (Object: Roch'e> modList="Products.Modules.getModulesForProduct(this(

RE: [Zope-dev] Method calls

2000-11-23 Thread Roch'e Compaan
Here's the whole traceback (i don't use hasattr in my code): Traceback (innermost last): File /usr/local/zope/2-2-2/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/zope/2-2-2/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/2-2-2/lib

Re: [Zope-dev] Method calls

2000-11-23 Thread Steve Spicklemire
Hi Roch, The whole traceback would be helpful.. one clue: Error Type: TypeError Error Value: hasattr, argument 2: expected string, int found 'hasattr' is the function that is complaining do you use it in your code? -steve > "Roch'e" == Roch'e Compaan <[EMAIL PROTECTED]> writes:

[Zope-dev] Method calls

2000-11-23 Thread Roch'e Compaan
I have a method called getModulesForProduct to which I pass a ProductID eg: If ProductID is passed on from a form variable it works fine. If I set the ProductID through REQUEST.set: , I get a TypeError: Error Type: TypeError Error Value: hasattr, argument 2: expected string, int found I'v