[Zope] Can't access my zope product functions by URL

Paul Winkler pw_lists at slinkp.com
Wed Feb 23 12:30:48 EST 2005


On Wed, Feb 23, 2005 at 04:32:24PM +0100, Anders Karlsson wrote:
> When the user changes the title it uses a form that calls the function 
> manage_edit(). The problem is that when I do that I get a 404 error telling 
> that the file "http://www.myserver.org/test/myobject/manage_edit" doesn't 
> exist. What makes my hair fading to gray is that my code for this is almost 
> identical to the boring-product example and there it works! One major 
> difference is that I call the "security.declareProtected()" function to 
> register my function and boring-product uses an "__ac_permissions__" list 
> instead. But I declare my function access rights just as all other products 
> I've looked at.

This one comes up occasionally...  Your manage_edit() lacks a docstring.
ZPublisher refuses to publish methods that do not have docstrings.

There should be a note to that effect in the error message,
if you look at it more closely.

-- 

Paul Winkler
http://www.slinkp.com


More information about the Zope mailing list