[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/demo/widget/help/ Correction of reStructured Text

Egon Frerich e.frerich at nord-com.net
Sun May 15 13:07:30 EDT 2005


Log message for revision 30359:
  Correction of reStructured Text

Changed:
  U   Zope3/trunk/src/zope/app/demo/widget/help/boolwidget.txt
  U   Zope3/trunk/src/zope/app/demo/widget/help/intwidget.txt
  U   Zope3/trunk/src/zope/app/demo/widget/help/textareawidget.txt
  U   Zope3/trunk/src/zope/app/demo/widget/help/textwidget.txt

-=-
Modified: Zope3/trunk/src/zope/app/demo/widget/help/boolwidget.txt
===================================================================
--- Zope3/trunk/src/zope/app/demo/widget/help/boolwidget.txt	2005-05-15 17:03:13 UTC (rev 30358)
+++ Zope3/trunk/src/zope/app/demo/widget/help/boolwidget.txt	2005-05-15 17:07:30 UTC (rev 30359)
@@ -5,60 +5,60 @@
 Interface
 ---------
 
-Add a interfaces with Bool fields::
+Add interfaces with Bool fields::
 
-class IReadDemoBoolWidget(Interface):
-    """Widget read interface."""
+    class IReadDemoBoolWidget(Interface):
+        """Widget read interface."""
+    
+        readonly = Bool(
+            title = _(u"readonly"),
+            description=_(u"zope.schema.Int field with readonly = True."),
+            required=False,
+            readonly=True,
+            default=42)
+    
+    
+    class IWriteDemoBoolWidget(Interface):
+        """Widget write interface."""
+    
+        standard = Bool(
+            title = _(u"standard"),
+            description=_(u"""zope.schema.Bool field with only title and description."""),
+            )
+    
+        required = Bool(
+            title = _(u"required"),
+            description=_(u"zope.schema.Bool field with required = True."),
+            required=True)
+    
+        constraint = Bool(
+            title = _(u"constraint"),
+            description=_(u"""zope.schema.Bool field with constraint """
+                """lambda x: x == True."""),
+            constraint=lambda x: x == True)
+    
+        default = Bool(
+            title = _(u"default"),
+            description=_(u"""zope.schema.Bool field with """
+                """default = True."""),
+            default=True)
+    
+    
+    class IDemoBoolWidget(IDemoWidget, IReadDemoBoolWidget, IWriteDemoBoolWidget):
+        """Widget interface inherits read and write interfaces."""
 
-    readonly = Bool(
-        title = _(u"readonly"),
-        description=_(u"zope.schema.Int field with readonly = True."),
-        required=False,
-        readonly=True,
-        default=42)
-
-
-class IWriteDemoBoolWidget(Interface):
-    """Widget write interface."""
-
-    standard = Bool(
-        title = _(u"standard"),
-        description=_(u"""zope.schema.Bool field with only title and description."""),
-        )
-
-    required = Bool(
-        title = _(u"required"),
-        description=_(u"zope.schema.Bool field with required = True."),
-        required=True)
-
-    constraint = Bool(
-        title = _(u"constraint"),
-        description=_(u"""zope.schema.Bool field with constraint """
-            """lambda x: x == True."""),
-        constraint=lambda x: x == True)
-
-    default = Bool(
-        title = _(u"default"),
-        description=_(u"""zope.schema.Bool field with """
-            """default = True."""),
-        default=True)
-
-
-class IDemoBoolWidget(IDemoWidget, IReadDemoBoolWidget, IWriteDemoBoolWidget):
-    """Widget interface inherites read and write interfaces."""
-
 Define a class::
 
-class DemoBoolWidget(DemoWidget):
-    """Demo TextWidget implementation."""
-
-    implements(IDemoBoolWidget)
+    class DemoBoolWidget(DemoWidget):
+        """Demo TextWidget implementation."""
     
-    standard = FieldProperty(IDemoBoolWidget['standard'])
-    required = FieldProperty(IDemoBoolWidget['required'])
-    readonly = FieldProperty(IDemoBoolWidget['readonly'])
-    constraint = FieldProperty(IDemoBoolWidget['constraint'])
-    default = FieldProperty(IDemoBoolWidget['default'])
+        implements(IDemoBoolWidget)
+        
+        standard = FieldProperty(IDemoBoolWidget['standard'])
+        required = FieldProperty(IDemoBoolWidget['required'])
+        readonly = FieldProperty(IDemoBoolWidget['readonly'])
+        constraint = FieldProperty(IDemoBoolWidget['constraint'])
+        default = FieldProperty(IDemoBoolWidget['default'])
 
 Register the class::
 

Modified: Zope3/trunk/src/zope/app/demo/widget/help/intwidget.txt
===================================================================
--- Zope3/trunk/src/zope/app/demo/widget/help/intwidget.txt	2005-05-15 17:03:13 UTC (rev 30358)
+++ Zope3/trunk/src/zope/app/demo/widget/help/intwidget.txt	2005-05-15 17:07:30 UTC (rev 30359)
@@ -5,79 +5,79 @@
 Interface
 ---------
 
-Add a interfaces with Int fields::
+Add interfaces with Int fields::
 
-class IReadDemoIntWidget(Interface):
-    """Widget read interface."""
+    class IReadDemoIntWidget(Interface):
+        """Widget read interface."""
+    
+        readonly = Int(
+            title = _(u"readonly"),
+            description=_(u"zope.schema.Int field with readonly = True."),
+            required=False,
+            readonly=True,
+            default=42)
+    
+    
+    class IWriteDemoIntWidget(Interface):
+        """Widget write interface."""
+    
+        standard = Int(
+            title = _(u"standard"),
+            description=_(u"""zope.schema.Int field with only title and description."""),
+            )
+    
+        required = Int(
+            title = _(u"required"),
+            description=_(u"zope.schema.Int field with required = True."),
+            required=True)
+    
+        constraint = Int(
+            title = _(u"constraint"),
+            description=_(u"""zope.schema.Int field with constraint """
+                """lambda x: x == 42."""),
+            constraint=lambda x: x == 42)
+    
+        default = Int(
+            title = _(u"default"),
+            description=_(u"""zope.schema.Int field with """
+                """default = u'default'."""),
+            default=42)
+    
+        min = Int(
+            title = _(u"min"),
+            description=_(u"zope.schema.Int field with min = 5."),
+            min=5)
+    
+        max = Int(
+            title = _(u"max"),
+            description=_(u"zope.schema.Int field with max = 10"),
+            max=10)
+    
+        min_max = Int(
+            title = _(u"min_max"),
+            description=_(u"""zope.schema.Int field with min = 5 and max = 10"""),
+            min=5,
+            max=10)
+    
+    
+    class IDemoIntWidget(IDemoWidget, IReadDemoIntWidget, IWriteDemoIntWidget):
+        """Widget interface inherits read and write interfaces."""
 
-    readonly = Int(
-        title = _(u"readonly"),
-        description=_(u"zope.schema.Int field with readonly = True."),
-        required=False,
-        readonly=True,
-        default=42)
-
-
-class IWriteDemoIntWidget(Interface):
-    """Widget write interface."""
-
-    standard = Int(
-        title = _(u"standard"),
-        description=_(u"""zope.schema.Int field with only title and description."""),
-        )
-
-    required = Int(
-        title = _(u"required"),
-        description=_(u"zope.schema.Int field with required = True."),
-        required=True)
-
-    constraint = Int(
-        title = _(u"constraint"),
-        description=_(u"""zope.schema.Int field with constraint """
-            """lambda x: x == 42."""),
-        constraint=lambda x: x == 42)
-
-    default = Int(
-        title = _(u"default"),
-        description=_(u"""zope.schema.Int field with """
-            """default = u'default'."""),
-        default=42)
-
-    min = Int(
-        title = _(u"min"),
-        description=_(u"zope.schema.Int field with min = 5."),
-        min=5)
-
-    max = Int(
-        title = _(u"max"),
-        description=_(u"zope.schema.Int field with max = 10"),
-        max=10)
-
-    min_max = Int(
-        title = _(u"min_max"),
-        description=_(u"""zope.schema.Int field with min = 5 and max = 10"""),
-        min=5,
-        max=10)
-
-
-class IDemoIntWidget(IDemoWidget, IReadDemoIntWidget, IWriteDemoIntWidget):
-    """Widget interface inherites read and write interfaces."""
-
 Define a class::
 
-class DemoIntWidget(DemoWidget):
-    """Demo TextWidget implementation."""
-
-    implements(IDemoIntWidget)
+    class DemoIntWidget(DemoWidget):
+        """Demo TextWidget implementation."""
     
-    standard = FieldProperty(IDemoIntWidget['standard'])
-    required = FieldProperty(IDemoIntWidget['required'])
-    readonly = FieldProperty(IDemoIntWidget['readonly'])
-    constraint = FieldProperty(IDemoIntWidget['constraint'])
-    default = FieldProperty(IDemoIntWidget['default'])
-    min = FieldProperty(IDemoIntWidget['min'])
-    max = FieldProperty(IDemoIntWidget['max'])
-    min_max = FieldProperty(IDemoIntWidget['min_max'])
+        implements(IDemoIntWidget)
+        
+        standard = FieldProperty(IDemoIntWidget['standard'])
+        required = FieldProperty(IDemoIntWidget['required'])
+        readonly = FieldProperty(IDemoIntWidget['readonly'])
+        constraint = FieldProperty(IDemoIntWidget['constraint'])
+        default = FieldProperty(IDemoIntWidget['default'])
+        min = FieldProperty(IDemoIntWidget['min'])
+        max = FieldProperty(IDemoIntWidget['max'])
+        min_max = FieldProperty(IDemoIntWidget['min_max'])
 
 Register the class::
 

Modified: Zope3/trunk/src/zope/app/demo/widget/help/textareawidget.txt
===================================================================
--- Zope3/trunk/src/zope/app/demo/widget/help/textareawidget.txt	2005-05-15 17:03:13 UTC (rev 30358)
+++ Zope3/trunk/src/zope/app/demo/widget/help/textareawidget.txt	2005-05-15 17:07:30 UTC (rev 30359)
@@ -5,80 +5,80 @@
 Interface
 ---------
 
-Add a interfaces with Text fields::
+Add interfaces with Text fields::
 
-class IReadDemoTextAreaWidget(Interface):
-    """Widget read interface."""
+    class IReadDemoTextAreaWidget(Interface):
+        """Widget read interface."""
+    
+        readonly = Text(
+            title = _(u"readonly"),
+            description=_(u"zope.schema.Text field with readonly = True."),
+            required=False,
+            readonly=True,
+            default=u'readonly')
+    
+    class IWriteDemoTextAreaWidget(Interface):
+        """Widget write interface."""
+    
+        standard = Text(
+            title = _(u"standard"),
+            description=_(u"""zope.schema.Text field with only title and description."""),
+            )
+    
+        required = Text(
+            title = _(u"required"),
+            description=_(u"zope.schema.Text field with required = True."),
+            required=True)
+    
+        constraint = Text(
+            title = _(u"constraint"),
+            description=_(u"""zope.schema.Text field with """
+                """constraint = lambda x: x == u'constraint'."""),
+            constraint=lambda x: x == u'constraint')
+    
+        default = Text(
+            title = _(u"default"),
+            description=_(u"""zope.schema.Text field with """
+                """default = u'default'."""),
+            default=u'default')
+    
+        min_length = Text(
+            title = _(u"min_length"),
+            description=_(u"zope.schema.Text field with min_length = 5."),
+            min_length=5)
+    
+        max_length = Text(
+            title = _(u"max_length"),
+            description=_(u"zope.schema.Text field with max_length = 10"),
+            max_length=10)
+    
+        min_max = Text(
+            title = _(u"min_max"),
+            description=_(u"""zope.schema.Text field with min_lenght = 5 """
+                """and max_length = 10"""),
+            min_length=5,
+            max_length=10)
+    
+    
+    class IDemoTextAreaWidget(IDemoWidget, IReadDemoTextAreaWidget, 
+        IWriteDemoTextAreaWidget):
+        """Widget interface inherits read and write interfaces."""
 
-    readonly = Text(
-        title = _(u"readonly"),
-        description=_(u"zope.schema.Text field with readonly = True."),
-        required=False,
-        readonly=True,
-        default=u'readonly')
-
-class IWriteDemoTextAreaWidget(Interface):
-    """Widget write interface."""
-
-    standard = Text(
-        title = _(u"standard"),
-        description=_(u"""zope.schema.Text field with only title and description."""),
-        )
-
-    required = Text(
-        title = _(u"required"),
-        description=_(u"zope.schema.Text field with required = True."),
-        required=True)
-
-    constraint = Text(
-        title = _(u"constraint"),
-        description=_(u"""zope.schema.Text field with """
-            """constraint = lambda x: x == u'constraint'."""),
-        constraint=lambda x: x == u'constraint')
-
-    default = Text(
-        title = _(u"default"),
-        description=_(u"""zope.schema.Text field with """
-            """default = u'default'."""),
-        default=u'default')
-
-    min_length = Text(
-        title = _(u"min_length"),
-        description=_(u"zope.schema.Text field with min_length = 5."),
-        min_length=5)
-
-    max_length = Text(
-        title = _(u"max_length"),
-        description=_(u"zope.schema.Text field with max_length = 10"),
-        max_length=10)
-
-    min_max = Text(
-        title = _(u"min_max"),
-        description=_(u"""zope.schema.Text field with min_lenght = 5 """
-            """and max_length = 10"""),
-        min_length=5,
-        max_length=10)
-
-
-class IDemoTextAreaWidget(IDemoWidget, IReadDemoTextAreaWidget, 
-    IWriteDemoTextAreaWidget):
-    """Widget interface inherites read and write interfaces."""
-
 Define a class::
 
-class DemoTextAreaWidget(DemoWidget):
-    """Demo TextAreaWidget implementation."""
-
-    implements(IDemoTextAreaWidget)
+    class DemoTextAreaWidget(DemoWidget):
+        """Demo TextAreaWidget implementation."""
     
-    standard = FieldProperty(IDemoTextAreaWidget['standard'])
-    required = FieldProperty(IDemoTextAreaWidget['required'])
-    readonly = FieldProperty(IDemoTextAreaWidget['readonly'])
-    constraint = FieldProperty(IDemoTextAreaWidget['constraint'])
-    default = FieldProperty(IDemoTextAreaWidget['default'])
-    min_length = FieldProperty(IDemoTextAreaWidget['min_length'])
-    max_length = FieldProperty(IDemoTextAreaWidget['max_length'])
-    min_max = FieldProperty(IDemoTextAreaWidget['min_max'])
+        implements(IDemoTextAreaWidget)
+        
+        standard = FieldProperty(IDemoTextAreaWidget['standard'])
+        required = FieldProperty(IDemoTextAreaWidget['required'])
+        readonly = FieldProperty(IDemoTextAreaWidget['readonly'])
+        constraint = FieldProperty(IDemoTextAreaWidget['constraint'])
+        default = FieldProperty(IDemoTextAreaWidget['default'])
+        min_length = FieldProperty(IDemoTextAreaWidget['min_length'])
+        max_length = FieldProperty(IDemoTextAreaWidget['max_length'])
+        min_max = FieldProperty(IDemoTextAreaWidget['min_max'])
 
 Register the class::
 

Modified: Zope3/trunk/src/zope/app/demo/widget/help/textwidget.txt
===================================================================
--- Zope3/trunk/src/zope/app/demo/widget/help/textwidget.txt	2005-05-15 17:03:13 UTC (rev 30358)
+++ Zope3/trunk/src/zope/app/demo/widget/help/textwidget.txt	2005-05-15 17:07:30 UTC (rev 30359)
@@ -5,80 +5,80 @@
 Interface
 ---------
 
-Add a interfaces with TextLine fields::
+Add interfaces with TextLine fields::
 
-class IReadDemoTextWidget(Interface):
-    """Widget read interface."""
+    class IReadDemoTextWidget(Interface):
+        """Widget read interface."""
+    
+        readonly = TextLine(
+            title = _(u"readonly"),
+            description=_(u"zope.schema.TextLine field with readonly = True."),
+            required=False,
+            readonly=True,
+            default=u'readonly')
+    
+    
+    class IWriteDemoTextWidget(Interface):
+        """Widget write interface."""
+    
+        standard = TextLine(
+            title = _(u"standard"),
+            description=_(u"""zope.schema.TextLine field with only title and description."""),
+            )
+    
+        required = TextLine(
+            title = _(u"required"),
+            description=_(u"zope.schema.TextLine field with required = True."),
+            required=True)
+    
+        constraint = TextLine(
+            title = _(u"constraint"),
+            description=_(u"""zope.schema.TextLine field with """
+                """constraint = lambda x: x == u'constraint'."""),
+            constraint=lambda x: x == u'constraint')
+    
+        default = TextLine(
+            title = _(u"default"),
+            description=_(u"""zope.schema.TextLine field with """
+                """default = u'default'."""),
+            default=u'default')
+    
+        min_length = TextLine(
+            title = _(u"min_length"),
+            description=_(u"zope.schema.TextLine field with min_length = 5."),
+            min_length=5)
+    
+        max_length = TextLine(
+            title = _(u"max_length"),
+            description=_(u"zope.schema.TextLine field with max_length = 10"),
+            max_length=10)
+    
+        min_max = TextLine(
+            title = _(u"min_max"),
+            description=_(u"""zope.schema.TextLine field with min_lenght = 5 """
+                """and max_length = 10"""),
+            min_length=5,
+            max_length=10)
+    
+    
+    class IDemoTextWidget(IDemoWidget, IReadDemoTextWidget, IWriteDemoTextWidget):
+        """Widget interface inherits read and write interfaces."""
 
-    readonly = TextLine(
-        title = _(u"readonly"),
-        description=_(u"zope.schema.TextLine field with readonly = True."),
-        required=False,
-        readonly=True,
-        default=u'readonly')
-
-
-class IWriteDemoTextWidget(Interface):
-    """Widget write interface."""
-
-    standard = TextLine(
-        title = _(u"standard"),
-        description=_(u"""zope.schema.TextLine field with only title and description."""),
-        )
-
-    required = TextLine(
-        title = _(u"required"),
-        description=_(u"zope.schema.TextLine field with required = True."),
-        required=True)
-
-    constraint = TextLine(
-        title = _(u"constraint"),
-        description=_(u"""zope.schema.TextLine field with """
-            """constraint = lambda x: x == u'constraint'."""),
-        constraint=lambda x: x == u'constraint')
-
-    default = TextLine(
-        title = _(u"default"),
-        description=_(u"""zope.schema.TextLine field with """
-            """default = u'default'."""),
-        default=u'default')
-
-    min_length = TextLine(
-        title = _(u"min_length"),
-        description=_(u"zope.schema.TextLine field with min_length = 5."),
-        min_length=5)
-
-    max_length = TextLine(
-        title = _(u"max_length"),
-        description=_(u"zope.schema.TextLine field with max_length = 10"),
-        max_length=10)
-
-    min_max = TextLine(
-        title = _(u"min_max"),
-        description=_(u"""zope.schema.TextLine field with min_lenght = 5 """
-            """and max_length = 10"""),
-        min_length=5,
-        max_length=10)
-
-
-class IDemoTextWidget(IDemoWidget, IReadDemoTextWidget, IWriteDemoTextWidget):
-    """Widget interface inherites read and write interfaces."""
-
 Define a class::
 
-  class DemoTextWidget(DemoWidget):
-      """Demo TextWidget implementation."""
-  
-      implements(IDemoTextWidget)
-  
-      standard = FieldProperty(IDemoTextWidget['standard'])
-      required = FieldProperty(IDemoTextWidget['required'])
-      readonly = FieldProperty(IDemoTextWidget['readonly'])
-      constraint = FieldProperty(IDemoTextWidget['constraint'])
-      default = FieldProperty(IDemoTextWidget['default'])
-      min_length = FieldProperty(IDemoTextWidget['min_length'])
-      max_length = FieldProperty(IDemoTextWidget['max_length'])
-      min_max = FieldProperty(IDemoTextWidget['min_max'])
+      class DemoTextWidget(DemoWidget):
+          """Demo TextWidget implementation."""
+      
+          implements(IDemoTextWidget)
+      
+          standard = FieldProperty(IDemoTextWidget['standard'])
+          required = FieldProperty(IDemoTextWidget['required'])
+          readonly = FieldProperty(IDemoTextWidget['readonly'])
+          constraint = FieldProperty(IDemoTextWidget['constraint'])
+          default = FieldProperty(IDemoTextWidget['default'])
+          min_length = FieldProperty(IDemoTextWidget['min_length'])
+          max_length = FieldProperty(IDemoTextWidget['max_length'])
+          min_max = FieldProperty(IDemoTextWidget['min_max'])
 
 Register the class::
 



More information about the Zope3-Checkins mailing list