[Zope] Permission error.

Max M maxmcorp@worldonline.dk
Thu, 15 Feb 2001 17:17:30 +0100


This constructor method gives me a permission error:

def manage_addots_Poll(self, id='forum', title='Poll', description='',
questions=[], choices=[], RESPONSE=None):
    "Add a ots_Poll to a folder."
    self._setObject(id, ots_Poll(id, title, description, questions,
choices))
    RESPONSE.redirect('index_html')

-----------------------------
This works:

def manage_addots_Poll(self, id='forum', title='Poll', description='',
questions=[], choices=[], RESPONSE=None, REQUEST=None):
    "Add a ots_Poll to a folder."
    self._setObject(id, ots_Poll(id, title, description, questions,
choices))
    if REQUEST is not None:  <-------------------- CHANGED
        return self.manage_main(self, REQUEST)<--- CHANGED

-----------------------------
Why do I have to do it this way?

regards Max M

Max M. W. Rasmussen,    Denmark.   New Media Director
private: maxmcorp@worldonline.dk work: maxm@normik.dk
-----------------------------------------------------
Shipping software is an unnatural act