On Thu, Dec 17, 2009 at 10:18 PM, Andrew Milton <[email protected]> wrote: > +-------[ Baiju M ]---------------------- > | Hi, > | In exUserFolder there are few exceptions raised like this: > | > | raise 'LoginRequired', self.docLogin(self, request) > | > | This will not working in Zope 2.12 (Python 2.6) > | > | Any idea, how to change it ? > > Replace the raise with; > > request.RESPONSE.setStatus(401) > request.RESPONSE.setHeader('Content-Type','text/html') > request.RESPONSE.write(self.docLogin(self,request))
Thank you very much, this works ! Regards, Baiju M _______________________________________________ Zope maillist - [email protected] https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
