Re: [Zope3-Users] How is sending a HTTP POST in Zope3 supposed to work ?

2005-11-12 Thread Stephan Richter
On Thursday 27 October 2005 05:44, Michael Haubenwallner wrote:
 osting to the object itself equals a GET request.
 Posting to the @@edit.html view of the object results in a
    UserError: The character set specified in the content type
 ($charset) does not match file content.
 error, even with charset set in the request headers.

How does your request look like? Note that we use POST in the edit form, so 
things should be fine. If this is not working for you, I would write a custom 
view maybe.

 Are there any functional tests existing for the HTTP POST method ?

I doubt it, but it would be nice, if you could write one.

 Aside: how would i create a default view for a POST request for a
 certain object ?

See the SchoolTool REST interface. It does all those type of things. The tinyu 
bit longer answer is: Develop a view class that implements a method called 
POST and then register this method as a view for IHTTPRequest.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] How is sending a HTTP POST in Zope3 supposed to work ?

2005-10-27 Thread Michael Haubenwallner
While i had no problems performing GET, PUT, DELETE and OPTIONS requests 
from httplib, i found no way to change an objects content through a POST.


Posting to the object itself equals a GET request.
Posting to the @@edit.html view of the object results in a
  UserError: The character set specified in the content type 
($charset) does not match file content.

error, even with charset set in the request headers.

Are there any functional tests existing for the HTTP POST method ?

Aside: how would i create a default view for a POST request for a 
certain object ?


Any help appreciated.

Michael

--
http://zope.org/Members/d2m
http://planetzope.org

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users