Log message for revision 65656: Use _setObject which actually adds the object to the items list of the container. We probably still need to fix up the ZPT class so that it provides the correct manage_* junk (which essentially means creating a subclass with a bunch of mix-ins). Redirect happens on the response.
Changed: U Products.Five/branches/philikon-local-components/component/browser.py -=- Modified: Products.Five/branches/philikon-local-components/component/browser.py =================================================================== --- Products.Five/branches/philikon-local-components/component/browser.py 2006-03-01 05:18:37 UTC (rev 65655) +++ Products.Five/branches/philikon-local-components/component/browser.py 2006-03-01 05:28:58 UTC (rev 65656) @@ -94,7 +94,7 @@ zpt = ZPTPage() zpt.source = unicode(src) - obj._setOb(viewname, zpt) #XXX there could be a naming conflict + obj._setObject(viewname, zpt) #XXX there could be a naming conflict zpt = getattr(obj, viewname) components = obj.getSiteManager() @@ -111,7 +111,7 @@ def customizeTemplate(self, viewname): zpt = self.doCustomizeTemplate(viewname) #TODO use @@absolute_url view - self.request.redirect(zpt.absolute_url() + "/manage_workspace") + self.request.RESPONSE.redirect(zpt.absolute_url() + "/manage_workspace") class ZPTViewFactory(object): _______________________________________________ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins