[Zope-Checkins] SVN: Products.Five/branches/publication-refactor2/browser/metaconfigure.py All browser views, implement IPublishTraverse and has such

Michael Kerrin michael.kerrin at openapp.biz
Fri Apr 21 16:05:26 EDT 2006


Log message for revision 67256:
  All browser views, implement IPublishTraverse and has such
  they must do the __of__(context) call on the returned object.
  

Changed:
  U   Products.Five/branches/publication-refactor2/browser/metaconfigure.py

-=-
Modified: Products.Five/branches/publication-refactor2/browser/metaconfigure.py
===================================================================
--- Products.Five/branches/publication-refactor2/browser/metaconfigure.py	2006-04-21 19:54:38 UTC (rev 67255)
+++ Products.Five/branches/publication-refactor2/browser/metaconfigure.py	2006-04-21 20:05:25 UTC (rev 67256)
@@ -195,10 +195,10 @@
                     return getattr(self, pages[name])
                 view = zapi.queryView(self, name, request)
                 if view is not None:
-                    return view
+                    return view.__of__(self)
 
                 m = class_.publishTraverse.__get__(self)
-                return m(request, name)
+                return m(request, name).__of__(self)
 
         else:
             def publishTraverse(self, request, name,
@@ -208,7 +208,7 @@
                     return getattr(self, pages[name])
                 view = zapi.queryView(self, name, request)
                 if view is not None:
-                    return view
+                    return view.__of__(self)
 
                 raise NotFoundError(self, name, request)
 



More information about the Zope-Checkins mailing list