[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/registration - __init__.py:1.5.2.1

Sidnei da Silva sidnei at x3ng.com.br
Wed Aug 13 11:01:04 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/browser/services/registration
In directory cvs.zope.org:/tmp/cvs-serv604/src/zope/app/browser/services/registration

Modified Files:
      Tag: dreamcatcher-ttwschema-branch
	__init__.py 
Log Message:
I hope an empty list means that allowed_values is not to be used, thus render a field instead of a select. A few whitespace cleaning.

=== Zope3/src/zope/app/browser/services/registration/__init__.py 1.5 => 1.5.2.1 ===
--- Zope3/src/zope/app/browser/services/registration/__init__.py:1.5	Thu Aug  7 20:14:36 2003
+++ Zope3/src/zope/app/browser/services/registration/__init__.py	Wed Aug 13 10:00:29 2003
@@ -139,7 +139,7 @@
                         self.context.activate(info['registration'])
                         message = _("Updated")
                         break
-                            
+
         return message
 
     def update(self):
@@ -187,7 +187,7 @@
 
     def _getDefault(self):
         return UnregisteredStatus
-        
+
     def __call__(self):
         rendered_items = self.renderItems(self._showData())
         return "  ".join(rendered_items)
@@ -209,7 +209,7 @@
         "See zope.app.interfaces.browser.form.IBrowserWidget"
         # Render as a link to the component
         field = self.context
-        context = field.context 
+        context = field.context
         if IComponentRegistration.isImplementedBy(context):
             # It's a registration object. Just get the corresponding attr
             path = getattr(context, field.__name__)
@@ -235,7 +235,7 @@
     def getData(self):
         "See zope.app.interfaces.form.IWidget"
         field = self.context
-        context = field.context 
+        context = field.context
         if IComponentRegistration.isImplementedBy(context):
             # It's a registration object. Just get the corresponding attr
             # XXX this code has no unittests !!!
@@ -260,7 +260,7 @@
     for non IAdding object. We need this here because registration
     add forms are views of the component being configured.
     """
-    
+
     def add(self, registration):
         """Add a registration
 
@@ -272,7 +272,7 @@
         """
 
         component = self.context
-        
+
         # Get the registration manager for this folder
         folder = getWrapperContainer(component)
         configure = folder.getRegistrationManager()




More information about the Zope3-Checkins mailing list