[Zope] How can I return an object from a python-script
attila.keller@web.de
attila.keller@web.de
Tue, 8 Jan 2002 15:31:00 +0100
Hy,
I want to write a python script that have a object-reference of a=20
ZopeDB (e.g. a Folder) as return value.
I tried the following inside the folder 'test':
#
return context.this()
#
But this does not work=3F
Zope returns a "Resource not found" -error:
<!--
Traceback (innermost last):
File=20
/usr/src/packages/BUILD/Zope-2.3.1-src/lib/python/ZPublisher/Publish.py,=20
line 223, in publish=5Fmodule
File=20
/usr/src/packages/BUILD/Zope-2.3.1-src/lib/python/ZPublisher/Publish.py,=20
line 187, in publish
File=20
/usr/src/packages/BUILD/Zope-2.3.1-src/lib/python/Zope/=5F=5Finit=5F=5F.py,=20
line 221, in zpublisher=5Fexception=5Fhook
(Object: Traversable)
File=20
/usr/src/packages/BUILD/Zope-2.3.1-src/lib/python/ZPublisher/Publish.py,=20
line 173, in publish
File=20
/usr/src/packages/BUILD/Zope-2.3.1-src/lib/python/ZPublisher/HTTPResponse.=
py,=20
line 308, in setBody
File=20
/usr/src/packages/BUILD/Zope-2.3.1-src/lib/python/ZPublisher/HTTPResponse.=
py,=20
line 547, in notFoundError
NotFound: (see above)
-->
Is there any way to return object-refernces from python-scripts=3F
Thanks
Atti
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F
E*TRADE - neu in Deutschland. Jetzt Depot er=F6ffnen + Pr=E4mie erhalten=20
http://etrade.web.de