7 Aug
2002
7 Aug
'02
5:59 p.m.
douwe@oberon.nl writes:
I have an object which has a method that returns an object which has a method. IE:
obj.method1() --> obj2
and I want to call obj2.method2()
From code this is not a problem, but I want to do it through an url.
So I try:
http://mysite:8080/obj/method/method2
But that doesn't work for some reason.
it says: Resource not Found Resource: <typeof obj2> instance at <some address> not found It will not work as ZPublisher does not call methods during traversal with the exception of the final object.
You can use Python Script's "traversal_subpath" to do something like this (at least in simple cases). Otherwise, you need to look at the publishing hook "__bobo_traverse__". Dieter