[Zope3-Users] views based on request method (GET, POST, etc.)
    Stephan Richter 
    srichter at cosmos.phy.tufts.edu
       
    Tue Sep 12 13:39:21 EDT 2006
    
    
  
On Tuesday 12 September 2006 07:38, Jan-Wijbrand Kolman wrote:
> But I have the feeling this can be done more elegantly. I did notice
> something in this direction in zope/app/dav/configure.zcml, but I'm not
> sure this actually helps. It could be I overlook something very very
> obvious...
Hi JW,
you have two choices:
1. Implement HTTP verbs as methods. See the resources implementation. 
zope.app.publisher.browser
2. Register some view having the method name as the view name. See 
SchoolTool's REST implementation, for example, schooltool.person.rest.
Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
    
    
More information about the Zope3-users
mailing list