[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - schemadisplay.py:1.15 editwizard.py:1.21 editview.py:1.48

Dominik Huber dominik.huber at projekt01.ch
Thu Feb 26 05:27:52 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/browser/form
In directory cvs.zope.org:/tmp/cvs-serv13371

Modified Files:
	schemadisplay.py editwizard.py editview.py 
Log Message:
- bug fix: schemadisplay.DisplayView and 
  editwizard.EditWizardView missing imports (own mistake, excuse me)
- add _setupWidget test for editwizard
- needless imports removed
- todo: test for displayview


=== Zope3/src/zope/app/browser/form/schemadisplay.py 1.14 => 1.15 ===
--- Zope3/src/zope/app/browser/form/schemadisplay.py:1.14	Wed Feb 25 08:21:50 2004
+++ Zope3/src/zope/app/browser/form/schemadisplay.py	Thu Feb 26 05:27:51 2004
@@ -20,6 +20,8 @@
 from zope.schema import getFieldNamesInOrder
 
 from zope.publisher.interfaces.browser import IBrowserRequest
+from zope.app.interfaces.location import ILocation
+from zope.app.location import LocationProxy
 from zope.app.publisher.browser import BrowserView
 from zope.security.checker import defineChecker, NamesChecker
 from zope.component import getAdapter


=== Zope3/src/zope/app/browser/form/editwizard.py 1.20 => 1.21 ===
--- Zope3/src/zope/app/browser/form/editwizard.py:1.20	Wed Feb 25 08:21:50 2004
+++ Zope3/src/zope/app/browser/form/editwizard.py	Thu Feb 26 05:27:51 2004
@@ -15,24 +15,31 @@
 
 $Id$
 """
-from zope.app import zapi
-from zope.app.i18n import ZopeMessageIDFactory as _
-from zope.publisher.interfaces.browser import IBrowserRequest
+
 from zope.component import getAdapter
-from zope.app.publisher.browser.globalbrowsermenuservice import \
-     globalBrowserMenuService
-from zope.app.pagetemplate.simpleviewclass import SimpleViewClass
-from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
+from zope.publisher.interfaces.browser import IBrowserRequest
 from zope.security.checker import defineChecker, NamesChecker
-from zope.app.form.utility \
-        import setUpEditWidgets, getWidgetsData, applyWidgetsChanges
-from zope.app.interfaces.form import WidgetInputError
-from zope.app.interfaces.form import WidgetsError
+
+from zope.app import zapi
 from zope.app.event import publish
 from zope.app.event.objectevent import ObjectModifiedEvent
+from zope.app.i18n import ZopeMessageIDFactory as _
+from zope.app.interfaces.location import ILocation
+from zope.app.location import LocationProxy
+
+
+from zope.app.pagetemplate.simpleviewclass import SimpleViewClass
+from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
+from zope.app.publisher.browser.globalbrowsermenuservice import \
+     globalBrowserMenuService
 
 from editview import EditView
 from submit import Next, Previous, Update
+from zope.app.interfaces.form import WidgetInputError
+from zope.app.interfaces.form import WidgetsError
+from zope.app.form.utility \
+        import setUpEditWidgets, getWidgetsData, applyWidgetsChanges
+
 
 PaneNumber = 'CURRENT_PANE_IDX'
 


=== Zope3/src/zope/app/browser/form/editview.py 1.47 => 1.48 ===
--- Zope3/src/zope/app/browser/form/editview.py:1.47	Wed Feb 25 08:21:50 2004
+++ Zope3/src/zope/app/browser/form/editview.py	Thu Feb 26 05:27:51 2004
@@ -17,25 +17,27 @@
 """
 from datetime import datetime
 
-from zope.app import zapi
 from zope.schema import getFieldNamesInOrder
 from zope.publisher.interfaces.browser import IBrowserRequest
-from zope.app.publisher.browser import BrowserView
 from zope.security.checker import defineChecker, NamesChecker
 from zope.component import getAdapter
 
+from zope.app import zapi
+from zope.app.event import publish
+from zope.app.event.objectevent import ObjectModifiedEvent
 from zope.app.i18n import ZopeMessageIDFactory as _
 from zope.app.interfaces.form import WidgetsError
-from zope.app.location import LocationProxy
 from zope.app.interfaces.location import ILocation
-from zope.app.form.utility import setUpEditWidgets, applyWidgetsChanges
-from zope.app.browser.form.submit import Update
-from zope.app.event import publish
-from zope.app.event.objectevent import ObjectModifiedEvent
+from zope.app.location import LocationProxy
 from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
 from zope.app.pagetemplate.simpleviewclass import SimpleViewClass
+from zope.app.publisher.browser import BrowserView
 from zope.app.publisher.browser.globalbrowsermenuservice import \
     globalBrowserMenuService
+
+from zope.app.form.utility import setUpEditWidgets, applyWidgetsChanges
+from zope.app.browser.form.submit import Update
+
 
 class EditView(BrowserView):
     """Simple edit-view base class




More information about the Zope3-Checkins mailing list