[Zope3-checkins] CVS: Zope3/src/zope/app/schema - fields.zcml:1.1 configure.zcml:1.4

Sidnei da Silva sidnei at x3ng.com.br
Mon Aug 4 20:38:40 EDT 2003


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

Modified Files:
	configure.zcml 
Added Files:
	fields.zcml 
Log Message:
Started registering fields with the factory service. Needs to add all the fields, taking care add security declarations for the additional methods/attributes. I'll be finishing this, including tests at home tonight.

=== Added File Zope3/src/zope/app/schema/fields.zcml ===
<configure xmlns="http://namespaces.zope.org/zope">

  <content class="zope.schema.Field">

    <factory
	id="Field"
	permission="zope.ManageContent"
	title="Basic Field"
	description="Basic Field" />

    <!--
    <require
	permission="zope.View"
	interface="zope.schema.interfaces.IField"
	/>

    <require
	permission="zope.ManageContent"
	attributes="bind set"
	/>
    -->

    <!-- XXX put the whole interface under one permission for now -->
    <require
	permission="zope.ManageContent"
	interface="zope.schema.interfaces.IField"
	/>

  </content>

  <content class="zope.schema.Text">

    <factory
	id="Text"
	permission="zope.ManageContent"
	title="Text Field"
	description="Text Field" />

    <require like_class="zope.schema.Field" />

  </content>

  <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>

</configure>

=== Zope3/src/zope/app/schema/configure.zcml 1.3 => 1.4 ===
--- Zope3/src/zope/app/schema/configure.zcml:1.3	Fri Aug  1 17:48:34 2003
+++ Zope3/src/zope/app/schema/configure.zcml	Mon Aug  4 19:38:35 2003
@@ -1,12 +1,14 @@
 <configure xmlns="http://namespaces.zope.org/zope">
 
-  <serviceType 
+  <serviceType
       id="Vocabularies"
       interface="zope.schema.interfaces.IVocabularyRegistry" />
-  
-  <service 
+
+  <service
       serviceType="Vocabularies"
       permission="zope.Public"
       component="zope.app.schema.vocabulary.vocabularyService" />
+
+  <include file="fields.zcml" />
 
 </configure>




More information about the Zope3-Checkins mailing list