[Zope3-checkins] CVS: Zope3/src/zope/app/schema - fields.zcml:1.2
Sidnei da Silva
sidnei at x3ng.com.br
Tue Aug 5 11:25:38 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/schema
In directory cvs.zope.org:/tmp/cvs-serv14539/src/zope/app/schema
Modified Files:
fields.zcml
Log Message:
Reasonably big batch of changes. Added methods to query factories by interface. Added tests for them. Registered all fields from zope.schema as factories. Added basic tests for that. Made the contentdirective use a dottedname instead of a class as the id when an id is not provided. Cleanspace Whitening here and there.
=== Zope3/src/zope/app/schema/fields.zcml 1.1 => 1.2 ===
--- Zope3/src/zope/app/schema/fields.zcml:1.1 Mon Aug 4 19:38:35 2003
+++ Zope3/src/zope/app/schema/fields.zcml Tue Aug 5 10:25:03 2003
@@ -3,7 +3,6 @@
<content class="zope.schema.Field">
<factory
- id="Field"
permission="zope.ManageContent"
title="Basic Field"
description="Basic Field" />
@@ -28,10 +27,97 @@
</content>
+ <content class="zope.schema.Container">
+
+ <factory
+ permission="zope.ManageContent"
+ title="Container Field"
+ description="Container Field" />
+
+ <require like_class="zope.schema.Field" />
+
+ </content>
+
+ <content class="zope.schema.Iterable">
+
+ <factory
+ permission="zope.ManageContent"
+ title="Iterable Field"
+ description="Iterable Field" />
+
+ <require like_class="zope.schema.Field" />
+
+ </content>
+
+ <content class="zope.schema.Orderable">
+
+ <factory
+ permission="zope.ManageContent"
+ title="Orderable Field"
+ description="Orderable Field" />
+
+ <require like_class="zope.schema.Field" />
+
+ </content>
+
+ <content class="zope.schema.MinMaxLen">
+
+ <factory
+ permission="zope.ManageContent"
+ title="MinMaxLen Field"
+ description="MinMaxLen Field" />
+
+ <require like_class="zope.schema.Field" />
+
+ </content>
+
+ <content class="zope.schema.Enumerated">
+
+ <factory
+ permission="zope.ManageContent"
+ title="Enumerated Field"
+ description="Enumerated Field" />
+
+ <require like_class="zope.schema.Field" />
+
+ </content>
+
+ <content class="zope.schema.Sequence">
+
+ <factory
+ permission="zope.ManageContent"
+ title="Sequence Field"
+ description="Sequence Field" />
+
+ <require like_class="zope.schema.Field" />
+
+ </content>
+
+ <content class="zope.schema.Bytes">
+
+ <factory
+ permission="zope.ManageContent"
+ title="Bytes Field"
+ description="Bytes Field" />
+
+ <require like_class="zope.schema.Field" />
+
+ </content>
+
+ <content class="zope.schema.BytesLine">
+
+ <factory
+ permission="zope.ManageContent"
+ title="BytesLine Field"
+ description="BytesLine Field" />
+
+ <require like_class="zope.schema.Field" />
+
+ </content>
+
<content class="zope.schema.Text">
<factory
- id="Text"
permission="zope.ManageContent"
title="Text Field"
description="Text Field" />
@@ -43,10 +129,185 @@
<content class="zope.schema.TextLine">
<factory
- id="TextLine"
permission="zope.ManageContent"
title="Text Line Field"
description="Text Line Field" />
+
+ <require like_class="zope.schema.Field" />
+
+ </content>
+
+ <content class="zope.schema.Bool">
+
+ <factory
+ permission="zope.ManageContent"
+ title="Boolean Field"
+ description="Boolean Field" />
+
+ <require like_class="zope.schema.Field" />
+
+ </content>
+
+ <content class="zope.schema.Int">
+
+ <factory
+ permission="zope.ManageContent"
+ title="Integer Field"
+ description="Integer Field" />
+
+ <require like_class="zope.schema.Field" />
+
+ </content>
+
+ <content class="zope.schema.Float">
+
+ <factory
+ permission="zope.ManageContent"
+ title="Float Field"
+ description="Float Field" />
+
+ <require like_class="zope.schema.Field" />
+
+ </content>
+
+ <content class="zope.schema.Tuple">
+
+ <factory
+ permission="zope.ManageContent"
+ title="Tuple Field"
+ description="Tuple Field" />
+
+ <require like_class="zope.schema.Field" />
+
+ </content>
+
+ <content class="zope.schema.List">
+
+ <factory
+ permission="zope.ManageContent"
+ title="List Field"
+ description="List Field" />
+
+ <require like_class="zope.schema.Field" />
+
+ </content>
+
+ <content class="zope.schema.Password">
+
+ <factory
+ permission="zope.ManageContent"
+ title="Password Field"
+ description="Password Field" />
+
+ <require like_class="zope.schema.Field" />
+
+ </content>
+
+ <content class="zope.schema.Dict">
+
+ <factory
+ permission="zope.ManageContent"
+ title="Dict Field"
+ description="Dict Field" />
+
+ <require like_class="zope.schema.Field" />
+
+ </content>
+
+ <content class="zope.schema.Datetime">
+
+ <factory
+ permission="zope.ManageContent"
+ title="Datetime Field"
+ description="Datetime Field" />
+
+ <require like_class="zope.schema.Field" />
+
+ </content>
+
+ <content class="zope.schema.SourceText">
+
+ <factory
+ permission="zope.ManageContent"
+ title="SourceText Field"
+ description="SourceText Field" />
+
+ <require like_class="zope.schema.Field" />
+
+ </content>
+
+ <content class="zope.schema.Object">
+
+ <factory
+ permission="zope.ManageContent"
+ title="Object Field"
+ description="Object Field" />
+
+ <require like_class="zope.schema.Field" />
+
+ </content>
+
+ <content class="zope.schema.URI">
+
+ <factory
+ permission="zope.ManageContent"
+ title="URI Field"
+ description="URI Field" />
+
+ <require like_class="zope.schema.Field" />
+
+ </content>
+
+ <content class="zope.schema.Id">
+
+ <factory
+ permission="zope.ManageContent"
+ title="Id Field"
+ description="Id Field" />
+
+ <require like_class="zope.schema.Field" />
+
+ </content>
+
+ <content class="zope.schema.EnumeratedTextLine">
+
+ <factory
+ permission="zope.ManageContent"
+ title="EnumeratedTextLine Field"
+ description="EnumeratedTextLine Field" />
+
+ <require like_class="zope.schema.Field" />
+
+ </content>
+
+ <content class="zope.schema.EnumeratedInt">
+
+ <factory
+ permission="zope.ManageContent"
+ title="EnumeratedInt Field"
+ description="EnumeratedInt Field" />
+
+ <require like_class="zope.schema.Field" />
+
+ </content>
+
+ <content class="zope.schema.EnumeratedFloat">
+
+ <factory
+ permission="zope.ManageContent"
+ title="EnumeratedFloat Field"
+ description="EnumeratedFloat Field" />
+
+ <require like_class="zope.schema.Field" />
+
+ </content>
+
+ <content class="zope.schema.InterfaceField">
+
+ <factory
+ permission="zope.ManageContent"
+ title="Interface Field"
+ description="Interface Field" />
<require like_class="zope.schema.Field" />
More information about the Zope3-Checkins
mailing list