[Zope3-checkins] CVS: Zope3/src/zope/app/schema - fieldforms.zcml:1.1.2.2 fields.zcml:1.2.2.1

Sidnei da Silva sidnei at x3ng.com.br
Tue Aug 12 11:31:58 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/schema
In directory cvs.zope.org:/tmp/cvs-serv2140/src/zope/app/schema

Modified Files:
      Tag: dreamcatcher-ttwschema-branch
	fieldforms.zcml fields.zcml 
Log Message:
Made fields editable, traversable and introspectable

=== Zope3/src/zope/app/schema/fieldforms.zcml 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/schema/fieldforms.zcml:1.1.2.1	Tue Aug 12 09:19:21 2003
+++ Zope3/src/zope/app/schema/fieldforms.zcml	Tue Aug 12 10:31:21 2003
@@ -15,6 +15,18 @@
               default min_length max_length allowed_values"
     />
 
+  <browser:editform
+      label="Edit Text Field"
+      name="edit.html"
+      menu="zmi_views"
+      title="Edit"
+      for="zope.schema.interfaces.IText"
+      schema="zope.schema.interfaces.IText"
+      permission="zope.ManageContent"
+      fields="title description required readonly
+              default min_length max_length allowed_values"
+    />
+
   <browser:addform
       label="Add TextLine Field"
       name="TextLine Field"
@@ -29,6 +41,18 @@
               default min_length max_length allowed_values"
     />
 
+  <browser:editform
+      label="Edit Text Line Field"
+      name="edit.html"
+      menu="zmi_views"
+      title="Edit"
+      for="zope.schema.interfaces.ITextLine"
+      schema="zope.schema.interfaces.ITextLine"
+      permission="zope.ManageContent"
+      fields="title description required readonly
+              default min_length max_length allowed_values"
+    />
+
   <browser:addform
       label="Add Boolean Field"
       name="Boolean Field"
@@ -43,6 +67,18 @@
               default"
     />
 
+  <browser:editform
+      label="Edit Boolean Field"
+      name="edit.html"
+      menu="zmi_views"
+      title="Edit"
+      for="zope.schema.interfaces.IBool"
+      schema="zope.schema.interfaces.IBool"
+      permission="zope.ManageContent"
+      fields="title description required readonly
+              default"
+    />
+
   <browser:addform
       label="Add Integer Field"
       name="Integer Field"
@@ -57,6 +93,18 @@
               default max min allowed_values"
     />
 
+  <browser:editform
+      label="Edit Integer Field"
+      name="edit.html"
+      menu="zmi_views"
+      title="Edit"
+      for="zope.schema.interfaces.IInt"
+      schema="zope.schema.interfaces.IInt"
+      permission="zope.ManageContent"
+      fields="title description required readonly
+              default max min allowed_values"
+    />
+
   <browser:addform
       label="Add Float Field"
       name="Float Field"
@@ -71,6 +119,18 @@
               default max min allowed_values"
     />
 
+  <browser:editform
+      label="Edit Float Field"
+      name="edit.html"
+      menu="zmi_views"
+      title="Edit"
+      for="zope.schema.interfaces.IFloat"
+      schema="zope.schema.interfaces.IFloat"
+      permission="zope.ManageContent"
+      fields="title description required readonly
+              default max min allowed_values"
+    />
+
   <browser:addform
       label="Add Datetime Field"
       name="Datetime Field"
@@ -79,6 +139,18 @@
       description="A Datetime Field"
       content_factory="zope.schema.Datetime"
       for="zope.app.interfaces.utilities.ISchemaAdding"
+      schema="zope.schema.interfaces.IDatetime"
+      permission="zope.ManageContent"
+      fields="title description required readonly
+              default max min allowed_values"
+    />
+
+  <browser:editform
+      label="Edit Datetime Field"
+      name="edit.html"
+      menu="zmi_views"
+      title="Edit"
+      for="zope.schema.interfaces.IDatetime"
       schema="zope.schema.interfaces.IDatetime"
       permission="zope.ManageContent"
       fields="title description required readonly


=== Zope3/src/zope/app/schema/fields.zcml 1.2 => 1.2.2.1 ===
--- Zope3/src/zope/app/schema/fields.zcml:1.2	Tue Aug  5 10:25:03 2003
+++ Zope3/src/zope/app/schema/fields.zcml	Tue Aug 12 10:31:21 2003
@@ -7,6 +7,8 @@
 	title="Basic Field"
 	description="Basic Field" />
 
+    <implements interface="zope.interface.interfaces.IAttribute" />
+
     <!--
     <require
 	permission="zope.View"
@@ -19,10 +21,13 @@
 	/>
     -->
 
+    <allow attributes="__name__" />
+
     <!-- XXX put the whole interface under one permission for now -->
     <require
 	permission="zope.ManageContent"
 	interface="zope.schema.interfaces.IField"
+	set_schema="zope.schema.interfaces.IField"
 	/>
 
   </content>
@@ -67,7 +72,11 @@
 	title="MinMaxLen Field"
 	description="MinMaxLen Field" />
 
-    <require like_class="zope.schema.Field" />
+    <require
+	permission="zope.ManageContent"
+	interface="zope.schema.interfaces.IMinMaxLen"
+	set_schema="zope.schema.interfaces.IMinMaxLen"
+	/>
 
   </content>
 
@@ -78,7 +87,11 @@
 	title="Enumerated Field"
 	description="Enumerated Field" />
 
-    <require like_class="zope.schema.Field" />
+    <require
+	permission="zope.ManageContent"
+	interface="zope.schema.interfaces.IEnumerated"
+	set_schema="zope.schema.interfaces.IEnumerated"
+	/>
 
   </content>
 
@@ -122,6 +135,10 @@
 	title="Text Field"
 	description="Text Field" />
 
+    <implements interface="zope.schema.interfaces.IFromUnicode" />
+
+    <require like_class="zope.schema.Enumerated" />
+    <require like_class="zope.schema.MinMaxLen" />
     <require like_class="zope.schema.Field" />
 
   </content>




More information about the Zope3-Checkins mailing list