On Sunday 03 April 2005 17:02, Florian Lindner wrote: > > You probably set your base path incorrectly. Anyways, I still think this > > is a horrible way to do it; I would rather build a view that forwards you > > to the site. > > Hello, > I've implemented a view like that: > > class toSite(object): > Â Â def __call__(self): > Â Â Â Â from zope.app.zapi import absoluteURL > Â Â Â Â URL = absoluteURL(getSite(), self.request) > Â Â Â Â return self.request.response.redirect(URL) > > Which for me works perfectly. Any drawbacks of this solution?
No, this is perfect. Its even cleverer than my suggest algorithm. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training _______________________________________________ Zope3-users mailing list Zope3email@example.com http://mail.zope.org/mailman/listinfo/zope3-users