[Checkins] SVN: z3ext.layoutform/trunk/src/z3ext/layoutform/ move interface
Nikolay Kim
fafhrd at datacom.kz
Tue Mar 3 14:43:22 EST 2009
Log message for revision 97450:
move interface
Changed:
U z3ext.layoutform/trunk/src/z3ext/layoutform/browser/formview.py
U z3ext.layoutform/trunk/src/z3ext/layoutform/browser/interfaces.py
U z3ext.layoutform/trunk/src/z3ext/layoutform/form.py
U z3ext.layoutform/trunk/src/z3ext/layoutform/interfaces.py
-=-
Modified: z3ext.layoutform/trunk/src/z3ext/layoutform/browser/formview.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/browser/formview.py 2009-03-03 19:39:54 UTC (rev 97449)
+++ z3ext.layoutform/trunk/src/z3ext/layoutform/browser/formview.py 2009-03-03 19:43:21 UTC (rev 97450)
@@ -15,13 +15,13 @@
$Id: 2007-12-12 12:27:02Z fafhrd $
"""
-from interfaces import IFormWrapper
+from z3ext.layoutform.interfaces import IFormWrapper
class FormView(object):
def isWrapped(self):
- context = self.context.__parent__
+ context = self.context
while 1:
if IFormWrapper.providedBy(context):
Modified: z3ext.layoutform/trunk/src/z3ext/layoutform/browser/interfaces.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/browser/interfaces.py 2009-03-03 19:39:54 UTC (rev 97449)
+++ z3ext.layoutform/trunk/src/z3ext/layoutform/browser/interfaces.py 2009-03-03 19:43:21 UTC (rev 97450)
@@ -40,8 +40,3 @@
class IErrorView(interface.Interface):
""" Error view snippet view """
-
-
-class IFormWrapper(interface.Interface):
- """ """
-
Modified: z3ext.layoutform/trunk/src/z3ext/layoutform/form.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/form.py 2009-03-03 19:39:54 UTC (rev 97449)
+++ z3ext.layoutform/trunk/src/z3ext/layoutform/form.py 2009-03-03 19:43:21 UTC (rev 97450)
@@ -26,6 +26,7 @@
from z3ext.layout.interfaces import IPagelet
from z3ext.layout.pagelet import BrowserPagelet
+from interfaces import IFormWrapper
from interfaces import IPageletForm, IPageletSubform
from interfaces import IPageletDisplayForm, IPageletFormView
@@ -94,6 +95,7 @@
elif ISubForm.providedBy(form):
subforms.append((form.weight, form.__name__, form))
elif IPageletForm.providedBy(form):
+ interface.alsoProvides(form, IFormWrapper)
forms.append((form.weight, form.__name__, form))
else:
views.append((form.weight, form.__name__, form))
Modified: z3ext.layoutform/trunk/src/z3ext/layoutform/interfaces.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/interfaces.py 2009-03-03 19:39:54 UTC (rev 97449)
+++ z3ext.layoutform/trunk/src/z3ext/layoutform/interfaces.py 2009-03-03 19:43:21 UTC (rev 97450)
@@ -121,3 +121,7 @@
class ICancelButton(ICancelAction):
""" cancel button """
+
+
+class IFormWrapper(interface.Interface):
+ """ """
More information about the Checkins
mailing list