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 <
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
>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
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(
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
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:
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