[Zope-Checkins]
SVN: Products.Five/branches/philikon-local-components/component/browser.py
Now i remember why we initially made this a class -- function
objects
Philipp von Weitershausen
philikon at philikon.de
Wed Mar 1 19:19:32 EST 2006
Log message for revision 65702:
Now i remember why we initially made this a class -- function objects
can't be pickled.
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-02 00:18:55 UTC (rev 65701)
+++ Products.Five/branches/philikon-local-components/component/browser.py 2006-03-02 00:19:31 UTC (rev 65702)
@@ -114,10 +114,14 @@
#TODO use @@absolute_url view
self.request.RESPONSE.redirect(viewzpt.absolute_url() + "/manage_workspace")
-def viewFactory(viewzpt, viewname):
- def view(context, request):
+class ZPTViewFactory(viewzpt, viewname):
+
+ def __init__(viewzpt, viewname):
+ self.viewzpt = viewzpt
+ self.viewname = viewname
+
+ def __call__(context, request):
return ZPTView(viewzpt, viewname, context, request)
- return view
class ZPTView(BrowserView):
More information about the Zope-Checkins
mailing list