[Zope-dev] Using other than NullResource to handle HTTP PUT

Richard Barrett R.Barrett@ftel.co.uk
Tue, 1 Aug 2000 14:23:09 +0100


I'm developing, in python, some classes whose instances to be 
published by Zope, one of which is folder-like, i.e. is can contain 
instances. I want HTTP PUT requests which will create new object 
instances within instances of this folder-like class to be handled by 
a PUT function I define. I cannot identify the "right" way to do 
this, or at least a way which doesn't involve hacking the standard 
Zope code to have my PUT function handle the operation.

The normal behaviour of Zope appears to be to create an instance of 
the NullResource  class and call the PUT function on that. This then 
proceeds to create a DTMLDocument, Image or File instance which is 
not what I need to happen; I want to have instances of one of my own 
classes created instead.

Any advice appreciated especially if I'm missing something obvious.

btw am I alone in struggling to understand the python classes 
underlying Zope's operation and how these classes work/ineract? I've 
read a lot of source code but still feel I have only the vaguest 
grasp of the theory of operation of the whole thing. Ho hum.
------------------------------------------------------------------
Richard Barrett, PostPoint 27,         e-mail:r.barrett@ftel.co.uk
Fujitsu Telecommunications Europe Ltd,      tel: (44) 121 717 6337
Solihull Parkway, Birmingham Business Park, B37 7YU, England
"Democracy is two wolves and a lamb voting on what to have for
lunch. Liberty is a well armed lamb contesting the vote."
Benjamin Franklin, 1759
------------------------------------------------------------------