[Zope3-checkins] CVS: Zope3/doc/zcml/namespaces.zope.org/zope - content.stx:1.4

R. David Murray bitz@bitdance.com
Fri, 30 Aug 2002 18:39:19 -0400


Update of /cvs-repository/Zope3/doc/zcml/namespaces.zope.org/zope
In directory cvs.zope.org:/tmp/cvs-serv30160

Modified Files:
	content.stx 
Log Message:
Bring content.stx into line with current App/ContentDirective/meta.zcml.


=== Zope3/doc/zcml/namespaces.zope.org/zope/content.stx 1.3 => 1.4 ===
--- Zope3/doc/zcml/namespaces.zope.org/zope/content.stx:1.3	Tue Jun 18 04:20:52 2002
+++ Zope3/doc/zcml/namespaces.zope.org/zope/content.stx	Fri Aug 30 18:39:17 2002
@@ -7,31 +7,27 @@
 Subdirectives
 
   implements
-  
+ 
     Declare that this class (as given in the content directive) implements
     the given interface.
-  
+
     * interface, resolvable name of an interface
 
-  security:require
-  
+  require
+
     Say that names specified by attributes or the names in an interface require
     the given permission for access.
-  
+ 
     * permission, a permission id
-    
+
     * attributes, optional, space-separate list of attribute names
     
     * interface, optional, the resolvable name of an interface
+
+    * like_class, optional, a class on which the security requirements for
+        this class will be based
     
-  security:mimic
-  
-    Say that the security requirements for this class are to be based on
-    the given class
-  
-    * class, the resolvable name of a class
-  
-  security:allow
+  allow
   
     Use only one of the following attributes to declare what part
     of this class is publicly viewable (that is, requires the Zope.Public
@@ -41,7 +37,7 @@
     
     * interface, the resolvable name of an interface
   
-  zmi:factory
+  factory
   
     * permission, optional but usually desired, the permission id for using
       this factory
@@ -56,15 +52,6 @@
     * description, optional, longer narrative description of what this 
       factory does.
       
-    * for_container, optional, space-separated resolvable names of interfaces.
-      This factory is willing to be used only in the context of a container
-      that implements any of these interfaces.
-      
-    * creation_markers, optional, this attribute will be changed to work
-      differently soon. See the PreCreationRehash proposal.
-
-      http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/PreCreationRehash
-  
 
 Examples
 
@@ -89,15 +76,13 @@
   
     <content class=".Contact.">
       <implements interface=".IContact." />
-      <zmi:factory
+      <factory
           permission="ZopeProducts.Contact.ManageContacts"
           title="Personal Contact Information" />
-
-      <security:require
+      <require
           permission="Zope.View"
           interface=".IContact.IContactInfo." />
-
-      <security:require
+      <require
           permission="ZopeProducts.Contact.ManageContacts"
           attributes="update"/>
     </content>