[Checkins] SVN: five.megrok.z3cform/branches/based-on-megrok.z3cform.base/src/five/megrok/z3cform/ use the acquisition monster so that publisher finds the physical path of the form/form wrapper

Jean-Francois Roche jfroche at jfroche.be
Fri Sep 25 18:09:42 EDT 2009


Log message for revision 104555:
  use the acquisition monster so that publisher finds the physical path of the form/form wrapper

Changed:
  U   five.megrok.z3cform/branches/based-on-megrok.z3cform.base/src/five/megrok/z3cform/components.py
  U   five.megrok.z3cform/branches/based-on-megrok.z3cform.base/src/five/megrok/z3cform/meta.py

-=-
Modified: five.megrok.z3cform/branches/based-on-megrok.z3cform.base/src/five/megrok/z3cform/components.py
===================================================================
--- five.megrok.z3cform/branches/based-on-megrok.z3cform.base/src/five/megrok/z3cform/components.py	2009-09-25 22:07:25 UTC (rev 104554)
+++ five.megrok.z3cform/branches/based-on-megrok.z3cform.base/src/five/megrok/z3cform/components.py	2009-09-25 22:09:42 UTC (rev 104555)
@@ -1,4 +1,4 @@
-
+import Acquisition
 import martian
 from megrok.z3cform.base import components
 from plone.z3cform import z2
@@ -14,6 +14,8 @@
         if not (self.static is None):
             self.static = self.static.__of__(self)
 
+    getPhysicalPath = Acquisition.Acquired
+
     def __call__(self):
         """Render the form, patching the request first with
         plone.z3cform helper.

Modified: five.megrok.z3cform/branches/based-on-megrok.z3cform.base/src/five/megrok/z3cform/meta.py
===================================================================
--- five.megrok.z3cform/branches/based-on-megrok.z3cform.base/src/five/megrok/z3cform/meta.py	2009-09-25 22:07:25 UTC (rev 104554)
+++ five.megrok.z3cform/branches/based-on-megrok.z3cform.base/src/five/megrok/z3cform/meta.py	2009-09-25 22:09:42 UTC (rev 104555)
@@ -7,6 +7,7 @@
 from grokcore.view.meta.views import ViewGrokker, default_view_name
 from zope.publisher.interfaces.browser import IDefaultBrowserLayer
 from five.megrok.z3cform.directive import wrapper
+import Acquisition
 
 
 class FiveGrokFormGrokker(ViewSecurityGrokker, ViewGrokker):
@@ -25,6 +26,7 @@
             newfactory = wrap_form(factory, formwrapper)
             newfactory.module_info = factory.module_info
             factory = newfactory
+            factory.getPhysicalPath = Acquisition.Acquired
             factory.render = factory.__call__
 
         ViewSecurityGrokker.execute(self, factory, config, permission, **kw)



More information about the checkins mailing list