[Zope-Checkins] CVS: Zope3/doc/zcml/namespaces.zope.org/zope - content.stx:1.1.2.2

Steve Alexander steve@cat-box.net
Mon, 10 Jun 2002 12:22:06 -0400


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

Modified Files:
      Tag: Zope-3x-branch
	content.stx 
Log Message:
documentation for content directive and subdirectives.


=== Zope3/doc/zcml/namespaces.zope.org/zope/content.stx 1.1.2.1 => 1.1.2.2 ===
+
+Subdirectives
+
+  implements
+
+  require
+  
+  allow
+  
+  zmi:factory
+  
+
+Examples
+
+  An empty content directive::
+  
+    <content class=".Contact."/>
+    
+  A content directive that contains security assertions::
+  
+    <content class=".Contact.">
+      <allow interface=".IContact.IViewContact" />
+      <require permission="Zope.ManageContent" interface=".IContact." />
+    </content>
+    
+  A content directive that makes an interface implementation assertion::
+  
+    <content class=".Contact.">
+      <implements interface=".IContact." />
+    </content>
+    
+  A rather full content directive::
+  
+    <content class=".Contact.">
+      <implements interface=".IContact." />
+      <zmi:factory
+          permission="ZopeProducts.Contact.ManageContacts"
+          title="Personal Contact Information" />
+
+      <security:require
+          permission="Zope.View"
+          interface=".IContact.IContactInfo." />
+
+      <security:require
+          permission="ZopeProducts.Contact.ManageContacts"
+          attributes="update"/>
+    </content>