[Zope3-checkins] CVS: Zope3/src/zope/app/schema - fields.zcml:1.2.2.2

Sidnei da Silva sidnei at x3ng.com.br
Tue Aug 12 14:39:28 EDT 2003


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

Modified Files:
      Tag: dreamcatcher-ttwschema-branch
	fields.zcml 
Log Message:
A bit more progress on setting field's schema to the right types. More fixes on ZCML registration/security assertions of basic fields types.

=== Zope3/src/zope/app/schema/fields.zcml 1.2.2.1 => 1.2.2.2 ===
--- Zope3/src/zope/app/schema/fields.zcml:1.2.2.1	Tue Aug 12 10:31:21 2003
+++ Zope3/src/zope/app/schema/fields.zcml	Tue Aug 12 13:38:54 2003
@@ -61,7 +61,11 @@
 	title="Orderable Field"
 	description="Orderable Field" />
 
-    <require like_class="zope.schema.Field" />
+    <require
+	permission="zope.ManageContent"
+	interface="zope.schema.interfaces.IMinMax"
+	set_schema="zope.schema.interfaces.IMinMax"
+	/>
 
   </content>
 
@@ -113,6 +117,8 @@
 	title="Bytes Field"
 	description="Bytes Field" />
 
+    <require like_class="zope.schema.Enumerated" />
+    <require like_class="zope.schema.MinMaxLen" />
     <require like_class="zope.schema.Field" />
 
   </content>
@@ -124,6 +130,8 @@
 	title="BytesLine Field"
 	description="BytesLine Field" />
 
+    <require like_class="zope.schema.Enumerated" />
+    <require like_class="zope.schema.MinMaxLen" />
     <require like_class="zope.schema.Field" />
 
   </content>
@@ -150,6 +158,8 @@
 	title="Text Line Field"
 	description="Text Line Field" />
 
+    <require like_class="zope.schema.Enumerated" />
+    <require like_class="zope.schema.MinMaxLen" />
     <require like_class="zope.schema.Field" />
 
   </content>
@@ -172,6 +182,8 @@
 	title="Integer Field"
 	description="Integer Field" />
 
+    <require like_class="zope.schema.Enumerated" />
+    <require like_class="zope.schema.Orderable" />
     <require like_class="zope.schema.Field" />
 
   </content>
@@ -183,6 +195,8 @@
 	title="Float Field"
 	description="Float Field" />
 
+    <require like_class="zope.schema.Enumerated" />
+    <require like_class="zope.schema.Orderable" />
     <require like_class="zope.schema.Field" />
 
   </content>
@@ -216,6 +230,8 @@
 	title="Password Field"
 	description="Password Field" />
 
+    <require like_class="zope.schema.Enumerated" />
+    <require like_class="zope.schema.MinMaxLen" />
     <require like_class="zope.schema.Field" />
 
   </content>
@@ -227,6 +243,7 @@
 	title="Dict Field"
 	description="Dict Field" />
 
+    <require like_class="zope.schema.MinMaxLen" />
     <require like_class="zope.schema.Field" />
 
   </content>
@@ -238,6 +255,8 @@
 	title="Datetime Field"
 	description="Datetime Field" />
 
+    <require like_class="zope.schema.Enumerated" />
+    <require like_class="zope.schema.Orderable" />
     <require like_class="zope.schema.Field" />
 
   </content>
@@ -249,6 +268,8 @@
 	title="SourceText Field"
 	description="SourceText Field" />
 
+    <require like_class="zope.schema.Enumerated" />
+    <require like_class="zope.schema.MinMaxLen" />
     <require like_class="zope.schema.Field" />
 
   </content>
@@ -260,7 +281,9 @@
 	title="Object Field"
 	description="Object Field" />
 
-    <require like_class="zope.schema.Field" />
+    <require 
+       permission="zope.ManageContent" 
+       interface="zope.schema.interfaces.IObject" />
 
   </content>
 
@@ -271,6 +294,8 @@
 	title="URI Field"
 	description="URI Field" />
 
+    <require like_class="zope.schema.Enumerated" />
+    <require like_class="zope.schema.MinMaxLen" />
     <require like_class="zope.schema.Field" />
 
   </content>
@@ -282,6 +307,8 @@
 	title="Id Field"
 	description="Id Field" />
 
+    <require like_class="zope.schema.Enumerated" />
+    <require like_class="zope.schema.MinMaxLen" />
     <require like_class="zope.schema.Field" />
 
   </content>
@@ -293,6 +320,8 @@
 	title="EnumeratedTextLine Field"
 	description="EnumeratedTextLine Field" />
 
+    <require like_class="zope.schema.Enumerated" />
+    <require like_class="zope.schema.MinMaxLen" />
     <require like_class="zope.schema.Field" />
 
   </content>
@@ -304,6 +333,8 @@
 	title="EnumeratedInt Field"
 	description="EnumeratedInt Field" />
 
+    <require like_class="zope.schema.Enumerated" />
+    <require like_class="zope.schema.MinMaxLen" />
     <require like_class="zope.schema.Field" />
 
   </content>
@@ -315,6 +346,8 @@
 	title="EnumeratedFloat Field"
 	description="EnumeratedFloat Field" />
 
+    <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