[Checkins] SVN: z3c.form/trunk/src/z3c/form/ Fix whitespace and file header.

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Sep 9 10:36:36 EDT 2008


Log message for revision 91002:
  Fix whitespace and file header.
  

Changed:
  U   z3c.form/trunk/src/z3c/form/interfaces.py
  U   z3c.form/trunk/src/z3c/form/viewpagetemplatefile.py

-=-
Modified: z3c.form/trunk/src/z3c/form/interfaces.py
===================================================================
--- z3c.form/trunk/src/z3c/form/interfaces.py	2008-09-09 14:20:20 UTC (rev 91001)
+++ z3c.form/trunk/src/z3c/form/interfaces.py	2008-09-09 14:36:36 UTC (rev 91002)
@@ -401,16 +401,16 @@
 
 class ISequenceWidget(IWidget):
     """Term based sequence widget base.
-    
+
     The sequence widget is used for select items from a sequence. Don't get
     confused, this widget does support to choose one or more values from a
-    sequence. The word sequence is not used for the schema field, it's used 
+    sequence. The word sequence is not used for the schema field, it's used
     for the values where this widget can choose from.
 
     This widget base class is used for build single or sequence values based
     on a sequence which is in most use case a collection. e.g.
     IList of IChoice for sequence values or IChoice for single values.
-    
+
     See also the MultiWidget for build sequence values based on none collection
     based values. e.g. IList of ITextLine
     """
@@ -434,15 +434,15 @@
 
 class IMultiWidget(IWidget):
     """None Term based sequence widget base.
-    
+
     The multi widget is used for ITuple or IList if no other widget is defined.
-    
+
     Some IList or ITuple are using another specialized widget if they can
     choose from a collection. e.g. a IList of IChoice. The base class of such
-    widget is the ISequenceWidget. 
-    
-    This widget can handle none collection based sequences and offers add or 
-    remove values to or from the sequence. Each sequence value get rendered by 
+    widget is the ISequenceWidget.
+
+    This widget can handle none collection based sequences and offers add or
+    remove values to or from the sequence. Each sequence value get rendered by
     it's own relevant widget. e.g. IList of ITextLine or ITuple of IInt
     """
 
@@ -889,8 +889,8 @@
 
     def createAndAdd(data):
         """Call create and add.
-        
-        This method can be used for keep all attributes internal during create 
+
+        This method can be used for keep all attributes internal during create
         and add calls. On sucess we return the new created and added object.
         If something fails, we return None. The default handleAdd method will
         only set the _finishedAdd marker on sucess.

Modified: z3c.form/trunk/src/z3c/form/viewpagetemplatefile.py
===================================================================
--- z3c.form/trunk/src/z3c/form/viewpagetemplatefile.py	2008-09-09 14:20:20 UTC (rev 91001)
+++ z3c.form/trunk/src/z3c/form/viewpagetemplatefile.py	2008-09-09 14:36:36 UTC (rev 91002)
@@ -1,3 +1,21 @@
+##############################################################################
+#
+# Copyright (c) 2008 Zope Foundation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Form and Widget Framework Interfaces
+
+$Id: interfaces.py 90925 2008-09-08 06:30:06Z hermann $
+"""
+__docformat__ = "reStructuredText"
 import config
 
 if config.PREFER_Z3C_PT:
@@ -4,11 +22,11 @@
     from z3c.pt.pagetemplate import ViewPageTemplateFile
 
     def bind_template(pt, view):
-        return pt.bind(view)    
+        return pt.bind(view)
 else:
-    from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile    
-    from zope.app.pagetemplate.viewpagetemplatefile import BoundPageTemplate as \
-         bind_template
-    
+    from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
+    from zope.app.pagetemplate.viewpagetemplatefile import BoundPageTemplate
+    bind_template = BoundPageTemplate
+
 class ViewPageTemplateFile(ViewPageTemplateFile):
     pass



More information about the Checkins mailing list