Your approach is somewhat weird. The REQUEST does not hold any content from any object. You can use restrictedTraverse() to *obtain* a reference to the corresponding object *with the informations* stored *with the REQUEST*. if you have the refreence to the object you can use the API of the object to retrieve its content. -aj --On Sonntag, 11. Januar 2004 12:23 Uhr +0100 Frédéric LEMAITRE <fred_lemaitre@yahoo.com> wrote:
Hello,
There is something (maybe simple) that i don't manage do to. I want to get the content of a REQUEST from a python script.
In fact, there is another application (adobe PDF form) that calls my zope site via a POST method REQUEST and give me the file in-line in the request.
I want to get the content of this file in order to generate a file object stored in my ZoDB.
Is there something like : REQUEST.getContent() REQUEST.read()
Help needed. Thanks in advance Frédéric
P.S : Execuse my english
_________________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )