[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - add.py:1.1.2.2 configure.zcml:1.1.2.2 editview.py:1.1.2.2 widget.py:1.1.2.2

Jim Fulton jim@zope.com
Tue, 24 Dec 2002 07:51:51 -0500


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

Modified Files:
      Tag: NameGeddon-branch
	add.py configure.zcml editview.py widget.py 
Log Message:
Searched for and changed over 1200 references to Zope.something.

Most of these were either comments, doc strings, or permission ids.

Many were imports or ids in zcml.  (much zcml fixup is still needed.



=== Zope3/src/zope/app/browser/form/add.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/browser/form/add.py:1.1.2.1	Mon Dec 23 14:31:07 2002
+++ Zope3/src/zope/app/browser/form/add.py	Tue Dec 24 07:50:50 2002
@@ -145,7 +145,7 @@
     provideView(for_, name, IBrowserPresentation, class_, layer)
     
 def add(_context, name, schema, label, content_factory, 
-        permission = 'Zope.Public', layer = "default",
+        permission = 'zope.Public', layer = "default",
         class_ = None, for_ = None,
         template = None, omit=None, fields=None,
         arguments='', keyword_arguments='',


=== Zope3/src/zope/app/browser/form/configure.zcml 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/browser/form/configure.zcml:1.1.2.1	Mon Dec 23 14:31:07 2002
+++ Zope3/src/zope/app/browser/form/configure.zcml	Tue Dec 24 07:50:50 2002
@@ -1,70 +1,70 @@
 <zopeConfigure
    xmlns='http://namespaces.zope.org/zope'
    xmlns:browser='http://namespaces.zope.org/browser'
-   package="Zope.App.Forms.Views.Browser"
+   package="zope.app.browser.forms"
 >
 
   <!-- Form Widget View Directives -->
   <browser:defaultView for="zope.schema.interfaces.IField" name="edit" />
 
   <browser:view
-      permission="Zope.Public"
+      permission="zope.Public"
       allowed_interface="zope.app.interfaces.browser.form.IBrowserWidget"
       for="zope.schema.interfaces.ITextLine"
       name="edit"
       factory="zope.app.browser.form.widget.TextWidget" />
 
   <browser:view
-      permission="Zope.Public"
+      permission="zope.Public"
       allowed_interface="zope.app.interfaces.browser.form.IBrowserWidget"
       for="zope.schema.interfaces.IText"
       name="edit"
       factory="zope.app.browser.form.widget.TextAreaWidget" />
 
   <browser:view
-      permission="Zope.Public"
+      permission="zope.Public"
       allowed_interface="zope.app.interfaces.browser.form.IBrowserWidget"
       for="zope.schema.interfaces.IBytesLine"
       name="edit"
       factory="zope.app.browser.form.widget.BytesWidget" />
 
   <browser:view
-      permission="Zope.Public"
+      permission="zope.Public"
       allowed_interface="zope.app.interfaces.browser.form.IBrowserWidget"
       for="zope.schema.interfaces.IBytes"
       name="edit"
       factory="zope.app.browser.form.widget.BytesAreaWidget" />
 
   <browser:view
-      permission="Zope.Public"
+      permission="zope.Public"
       allowed_interface="zope.app.interfaces.browser.form.IBrowserWidget"
       for="zope.schema.interfaces.IInt"
       name="edit"
       factory="zope.app.browser.form.widget.IntWidget" />
 
   <browser:view
-      permission="Zope.Public"
+      permission="zope.Public"
       allowed_interface="zope.app.interfaces.browser.form.IBrowserWidget"
       for="zope.schema.interfaces.IFloat"
       name="edit"
       factory="zope.app.browser.form.widget.FloatWidget" />
 
   <browser:view
-      permission="Zope.Public"
+      permission="zope.Public"
       allowed_interface="zope.app.interfaces.browser.form.IBrowserWidget"
       for="zope.schema.interfaces.IBool"
       name="edit"
       factory="zope.app.browser.form.widget.CheckBoxWidget" />
 
   <browser:view
-      permission="Zope.Public"
+      permission="zope.Public"
       allowed_interface="zope.app.interfaces.browser.form.IBrowserWidget"
       for="zope.schema.interfaces.ITuple"
       name="edit"
       factory="zope.app.browser.form.widget.TextAreaWidget" />
 
   <browser:view
-      permission="Zope.Public"
+      permission="zope.Public"
       allowed_interface="zope.app.interfaces.browser.form.IBrowserWidget"
       for="zope.schema.interfaces.IList"
       name="edit"
@@ -72,7 +72,7 @@
 
   <!-- Default simple display view -->
   <browser:view
-      permission="Zope.Public"
+      permission="zope.Public"
       allowed_interface="zope.app.interfaces.browser.form.IBrowserWidget"
       for="zope.schema.interfaces.IField"
       name="display"


=== Zope3/src/zope/app/browser/form/editview.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/browser/form/editview.py:1.1.2.1	Mon Dec 23 14:31:07 2002
+++ Zope3/src/zope/app/browser/form/editview.py	Tue Dec 24 07:50:50 2002
@@ -19,7 +19,6 @@
 from zope.event import publish
 from zope.app.event.objectevent import ObjectModifiedEvent
 from zope.publisher.browser import BrowserView
-from Zope.App.Forms.Views.Browser import Widget
 from zope.app.interfaces.forms import WidgetsError
 from zope.app.form.utility import setUpEditWidgets, getWidgetsData
 from zope.app.form.utility import haveWidgetsData, fieldNames
@@ -200,7 +199,7 @@
     return schema, for_, bases, template, fields
 
 def edit(_context, name, schema, label,
-              permission = 'Zope.Public', layer = "default",
+              permission = 'zope.Public', layer = "default",
               class_ = None, for_ = None,
               template = None, omit=None, fields=None):
 
@@ -220,7 +219,7 @@
         ]
 
 def subedit(_context, name, schema, label,
-              permission = 'Zope.Public', layer = "default",
+              permission = 'zope.Public', layer = "default",
               class_ = None, for_ = None,
               template = None, omit=None, fields=None,
               fulledit=None, fulledit_label=None):


=== Zope3/src/zope/app/browser/form/widget.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/browser/form/widget.py:1.1.2.1	Mon Dec 23 14:31:07 2002
+++ Zope3/src/zope/app/browser/form/widget.py	Tue Dec 24 07:50:50 2002
@@ -101,8 +101,6 @@
         return self._unconvert(data)
     
     def __call__(self):
-        'See Zope.App.Forms.Views.Browser.IBrowserWidget.IBrowserWidget'
-            
         return renderElement(self.getValue('tag'),
                              type = self.getValue('type'),
                              name = self.name,
@@ -111,8 +109,6 @@
                              extra = self.getValue('extra'))
 
     def hidden(self):
-        'See Zope.App.Forms.Views.Browser.IBrowserWidget.IBrowserWidget'
-
         return renderElement(self.getValue('tag'),
                              type = 'hidden',
                              name = self.name,
@@ -123,12 +119,10 @@
 
 
     def render(self, value):
-        'See Zope.App.Forms.Views.Browser.IBrowserWidget.IBrowserWidget'
         self.setData(value)
         return self()
 
     def renderHidden(self, value):
-        'See Zope.App.Forms.Views.Browser.IBrowserWidget.IBrowserWidget'
         self.setData(value)
         return self.hidden()
 
@@ -156,8 +150,6 @@
     extra = ''
 
     def __call__(self):
-        'See Zope.App.Forms.Views.Browser.IBrowserWidget.IBrowserWidget'
-
         data = self._showData()
         
         if data:
@@ -246,8 +238,6 @@
         return '\n\t'.join(result)
 
     def __call__(self):
-        'See Zope.App.Forms.Views.Browser.IBrowserWidget.IBrowserWidget'
-
         if self.__values is not None:
             return self._select()
         
@@ -314,7 +304,6 @@
         return value
     
     def __call__(self):
-        'See Zope.App.Forms.Views.Browser.IBrowserWidget.IBrowserWidget'
         return renderElement("textarea",
                              name = self.name,
                              cssClass = self.getValue('cssClass'),
@@ -340,7 +329,6 @@
     type = 'file'
 
     def __call__(self):
-        'See Zope.App.Forms.Views.Browser.IBrowserWidget.IBrowserWidget'
         displayMaxWidth = self.getValue('displayMaxWidth') or 0
         if displayMaxWidth > 0:
             return renderElement(self.getValue('tag'),
@@ -443,7 +431,6 @@
     size = 5
 
     def __call__(self):
-        'See Zope.App.Forms.Views.Browser.IBrowserWidget.IBrowserWidget'
         renderedItems = self.renderItems(self._showData())
         return renderElement('select',
                               name = self.name,
@@ -468,7 +455,6 @@
     orientation = "vertical"
                                    
     def __call__(self):
-        'See Zope.App.Forms.Views.Browser.IBrowserWidget.IBrowserWidget'
         rendered_items = self.renderItems(self._showData())
         orientation = self.getValue('orientation')
         if orientation == 'horizontal':
@@ -543,7 +529,6 @@
     size = 5
 
     def __call__(self):
-        'See Zope.App.Forms.Views.Browser.IBrowserWidget.IBrowserWidget'
         rendered_items = self.renderItems(self._showData())
         return renderElement('select',
                               name = self.name,
@@ -568,7 +553,6 @@
     orientation = "vertical"
                                    
     def __call__(self):
-        'See Zope.App.Forms.Views.Browser.IBrowserWidget.IBrowserWidget'
         rendered_items = self.renderItems(self._showData())
         orientation = self.getValue('orientation')
         if orientation == 'horizontal':