[Zope3-checkins] CVS: Zope3/doc/zcml/namespaces.zope.org/zope - attribute.stx:1.1 class.stx:1.1 defaultSkin.stx:1.1 description.stx:1.1 directive.stx:1.1 directives.stx:1.1 interface.stx:1.1 layer.stx:1.1 module.stx:1.1 modulealias.stx:1.1 subdirective.stx:1.1 traversalNamespace.stx:1.1 unauthenticatedPrincipal.stx:1.1 vocabulary.stx:1.1 adapter.stx:1.4 allow.stx:1.3 content.stx:1.6 defaultView.stx:1.3 factory.stx:1.3 hook.stx:1.3 permission.stx:1.3 principal.stx:1.3 require.stx:1.3 resource.stx:1.3 securityPolicy.stx:1.5 service.stx:1.3 serviceType.stx:1.3 skin.stx:1.3 utility.stx:1.5 view.stx:1.3

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Jan 22 18:57:20 EST 2004


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

Modified Files:
	adapter.stx allow.stx content.stx defaultView.stx factory.stx 
	hook.stx permission.stx principal.stx require.stx resource.stx 
	securityPolicy.stx service.stx serviceType.stx skin.stx 
	utility.stx view.stx 
Added Files:
	attribute.stx class.stx defaultSkin.stx description.stx 
	directive.stx directives.stx interface.stx layer.stx 
	module.stx modulealias.stx subdirective.stx 
	traversalNamespace.stx unauthenticatedPrincipal.stx 
	vocabulary.stx 
Log Message:
Update ZCML directives documentation.


=== Added File Zope3/doc/zcml/namespaces.zope.org/zope/attribute.stx ===
attribute

  

  Attributes

    name -- TextLine (required)

      Directive name

      The name of the directive being defined

    description -- Text (required)

      Directive discription

      This should document how the directive is used.

    required -- Bool (required)

      Required

      Is the attribute required?



=== Added File Zope3/doc/zcml/namespaces.zope.org/zope/class.stx ===
class

  File zope/app/component/meta.zcml, lines 79 - 105.

  Make statements about a class

  Attributes

    class -- GlobalObject (required)

      Class

      


  Subdirectives

    implements

      File zope/app/component/meta.zcml, lines 85 - 88.

      Declare that the class given by the content directive's class attribute
      a given interface

      Attributes

        interface -- Tokens (required)

          One or more interfaces

          



    require

      File zope/app/component/meta.zcml, lines 90 - 93.

      Indicate that the a specified list of names or the names in a given
      require a given permission for access.

      Attributes

        permission -- Id (optional, default=None)

          Permission

          Specifies the permission by id that will be required to access or
          the attributes and methods specified.

        attributes -- Tokens (optional, default=None)

          Attributes and methods

          This is a list of attributes and methods that can be accessed.

        set_attributes -- Tokens (optional, default=None)

          Attributes that can be set

          This is a list of attributes that can be modified/mutated.

        interface -- Tokens (optional, default=None)

          Interfaces

          The listed interfaces' methods and attributes can be accessed.

        set_schema -- Tokens (optional, default=None)

          The attributes specified by the schema can be set

          The listed schemas' properties can be modified/mutated.

        like_class -- GlobalObject (optional, default=None)

          Configure like this class

          This argument says that this content class should be configured in
          same way the specified class' security is. If this argument is
          no other argument can be used.



    allow

      File zope/app/component/meta.zcml, lines 95 - 98.

      Declare a part of the class to be publicly viewable (that is, requires
      zope.Public permission). Only one of the following two attributes may
      used.

      Attributes

        attributes -- Tokens (optional, default=None)

          Attributes

          

        interface -- Tokens (optional, default=None)

          Interface

          



    factory

      File zope/app/component/meta.zcml, lines 100 - 103.

      Specify the factory used to create this content object

      Attributes

        id -- TextLine (optional, default=None)

          ID

          the identifier for this factory in the ZMI factory identification
          If not given, defaults to the literal string given as the content
          'class' attribute.

        permission -- Id (optional, default=None)

          Permission

          permission id required to use this factory. Although optional, this
          should normally be specified.

        title -- MessageID (optional, default=None)

          Title

          text suitable for use in the 'add content' menu of a management
          

        description -- MessageID (optional, default=None)

          Description

          Longer narrative description of what this factory does



=== Added File Zope3/doc/zcml/namespaces.zope.org/zope/defaultSkin.stx ===
defaultSkin

  File zope/app/component/meta.zcml, lines 55 - 59.

  Register a skin

  Attributes

    name -- TextLine (required)

      Default skin name

      Default skin name



=== Added File Zope3/doc/zcml/namespaces.zope.org/zope/description.stx ===
description

  

  Attributes



=== Added File Zope3/doc/zcml/namespaces.zope.org/zope/directive.stx ===
directive

  Information common to all directive definitions have

  Attributes

    name -- TextLine (required)

      Directive name

      The name of the directive being defined

    description -- Text (required)

      Directive discription

      This should document how the directive is used.

    attributes -- Bytes (required)

      Attribute names

      This is a space-speratated list of attribute names. This is used to
      a mimimal specification the attributes used.

    handler -- GlobalObject (required)

      Directive handler

      The dotted name of the directive handler



=== Added File Zope3/doc/zcml/namespaces.zope.org/zope/directives.stx ===
directives

  Schema for the ``directives`` directive

  Attributes

    namespace -- URI (required)

      Namespace

      The namespace that directives' names will be defined in



=== Added File Zope3/doc/zcml/namespaces.zope.org/zope/interface.stx ===
interface

  File zope/app/component/meta.zcml, lines 7 - 11.

  Define an interface

  Attributes

    interface -- GlobalObject (required)

      Interface

      

    type -- GlobalObject (optional, default=None)

      Interface type

      



=== Added File Zope3/doc/zcml/namespaces.zope.org/zope/layer.stx ===
layer

  File zope/app/component/meta.zcml, lines 61 - 65.

  Register a layer

  Attributes

    name -- TextLine (required)

      Layer name

      Layer name



=== Added File Zope3/doc/zcml/namespaces.zope.org/zope/module.stx ===
module

  File zope/app/security/meta.zcml, lines 14 - 21.

  

  Attributes

    module -- GlobalObject (required)

      Module

      



=== Added File Zope3/doc/zcml/namespaces.zope.org/zope/modulealias.stx ===
modulealias

  File zope/modulealias/meta.zcml, lines 5 - 9.

  Define a new module alias

  Attributes

    module -- PythonIdentifier (required)

      

      

    alias -- PythonIdentifier (required)

      

      



=== Added File Zope3/doc/zcml/namespaces.zope.org/zope/subdirective.stx ===
subdirective

  Information common to all directive definitions have

  Attributes

    name -- TextLine (required)

      Directive name

      The name of the directive being defined

    description -- Text (required)

      Directive discription

      This should document how the directive is used.

    attributes -- Bytes (required)

      Attribute names

      This is a space-speratated list of attribute names. This is used to
      a mimimal specification the attributes used.



=== Added File Zope3/doc/zcml/namespaces.zope.org/zope/traversalNamespace.stx ===
traversalNamespace

  File zope/app/traversing/meta.zcml, lines 5 - 9.

  Register a new traversal namespace.

  Attributes

    name -- PythonIdentifier (required)

      Name

      The name under which the namespace will be accessible.

    handler -- GlobalObject (required)

      Handler

      Specifies the handler component for this namespace.



=== Added File Zope3/doc/zcml/namespaces.zope.org/zope/unauthenticatedPrincipal.stx ===
unauthenticatedPrincipal

  File zope/app/security/registries/meta.zcml, lines 17 - 21.

  Define a new unauthenticated principal.

  Attributes

    id -- Id (required)

      Id

      Id as which this object will be known and used.

    title -- TextLine (required)

      Title

      Provides a title for the object.

    description -- TextLine (optional, default=None)

      Title

      Provides a description for the object.



=== Added File Zope3/doc/zcml/namespaces.zope.org/zope/vocabulary.stx ===
vocabulary

  File zope/app/schema/meta.zcml, lines 5 - 9.

  Define a named vocabulary.

  This associates a vocabulary name in the global vocabulary service with a
  Each name may only be defined once.

  Additional keyword arguments may be passed to the factory by adding
  attributes beyond those listed here. This can be useful when using
  which implement various kinds of filtering.

  Example::

  <vocabulary name="garys-favorite-path-references"
  />

  Attributes

    name -- TextLine (required)

      Name

      Provides a title for the source type.", The name of the vocabulary;
      can be used as the value for the "vocabulary" argument to the
      and VocabularyMultiField constructors to cause this vocabulary to be
      

    factory -- GlobalObject (required)

      Factory

      Factory that returns an instance of the named vocabulary when called
      the context object as the only argument. This should be a dotted-name
      refers to a Python object.



=== Zope3/doc/zcml/namespaces.zope.org/zope/adapter.stx 1.3 => 1.4 ===
--- Zope3/doc/zcml/namespaces.zope.org/zope/adapter.stx:1.3	Sun Sep  1 15:26:46 2002
+++ Zope3/doc/zcml/namespaces.zope.org/zope/adapter.stx	Thu Jan 22 18:57:17 2004
@@ -1,20 +1,41 @@
-The adapter directive.
+adapter
 
-See lib/python/Zope/App/ComponentArchitecture/component-meta.zcml
+  File zope/app/component/meta.zcml, lines 13 - 17.
 
-Attributes
+  Register an adapter
+
+  Attributes
+
+    factory -- Tokens (required)
+
+      Adapter factory/factories
+
+      A list of factories (usually just one) that create the adapter
+      
+
+    provides -- GlobalObject (required)
+
+      Interface the component provides
+
+      This attribute specifes the interface the adapter instance must
+      
+
+    for -- GlobalObject (required)
+
+      Interface the component is used for
+
+      This is the interface from which is being adapted.
+
+    permission -- Id (optional, default=None)
+
+      Permission
+
+      This adapter is only available, if the principal has this permission.
+
+    name -- TextLine (optional, default=None)
+
+      Name
+
+      Adapters can have names. This attribute allows you to specify the name
+      this adapter.
 
-  * factory, a callable, or list of callables, that creates the adapted object.
-    An adapter factory is passed one argument, the object to be adapted.
-  
-  * provides, the interface this adapter adapts to
-  
-  * for, optional, the interface this adapter adapts from.
-  
-  * permission, optional, the permission required to use this adapter
-  
-  If the 'for' attribute is not present, the adapter can adapt from any
-  component.
-  
-  
-  


=== Zope3/doc/zcml/namespaces.zope.org/zope/allow.stx 1.2 => 1.3 ===
--- Zope3/doc/zcml/namespaces.zope.org/zope/allow.stx:1.2	Mon Jun 10 19:27:38 2002
+++ Zope3/doc/zcml/namespaces.zope.org/zope/allow.stx	Thu Jan 22 18:57:17 2004
@@ -1 +1,22 @@
-The allow subdirective of the content directive.
+allow
+
+  File zope/app/security/meta.zcml, lines 23 - 34.
+
+  
+
+  Attributes
+
+    attributes -- Tokens (optional, default=None)
+
+      Attributes
+
+      The attributes to provide access to.
+
+    interface -- Tokens (optional, default=None)
+
+      Interface
+
+      Interfaces whos names to provide access to. Access will be provided to
+      of the names defined by the interface(s). Multiple interfaces can be
+      
+


=== Zope3/doc/zcml/namespaces.zope.org/zope/content.stx 1.5 => 1.6 ===
--- Zope3/doc/zcml/namespaces.zope.org/zope/content.stx:1.5	Mon Dec 15 05:14:19 2003
+++ Zope3/doc/zcml/namespaces.zope.org/zope/content.stx	Thu Jan 22 18:57:17 2004
@@ -1,88 +1,144 @@
-The content directive.
+content
 
-Attributes
+  File zope/app/component/meta.zcml, lines 107 - 133.
 
-  * class, resolvable name of a class
+  Make statements about a class
 
-Subdirectives
+  Attributes
+
+    class -- GlobalObject (required)
+
+      Class
 
-  implements
- 
-    Declare that this class (as given in the content directive) implements
-    the given interface.
-
-    * interface, resolvable name of an interface
-
-  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
-    
-  allow
-  
-    Use only one of the following attributes to declare what part
-    of this class is publicly viewable (that is, requires the zope.Public
-    permission).
-  
-    * attributes, space-separated list of attribute names 
-    
-    * interface, the resolvable name of an interface
-  
-  factory
-  
-    * permission, optional but usually desired, the permission id for using
-      this factory
-    
-    * title, the text given in the "add content" menu of the management
-      interface
-    
-    * id, optional, the identifier for this factory in the ZMI factory
-      identification scheme. If not given, defaults to the literal string
-      given as the content directive's "class" attribute.
-       
-    * description, optional, longer narrative description of what this 
-      factory does.
       
 
-Examples
 
-  An empty content directive::
-  
-    <content class=".Contact."/>
-    
-  A content directive that contains security assertions::
-  
-    <content class=".contact.Contact">
-      <allow interface=".interfaces.IContactInfo" />
-      <require permission="zope.ManageContent" interface=".interfaces.IContact" />
-    </content>
-    
-  A content directive that makes an interface implementation assertion::
-  
-    <content class=".contact.Contact">
-      <implements interface=".interfaces.IContact" />
-    </content>
-    
-  A rather full content directive::
-  
-    <content class=".contact.Contact">
-      <implements interface=".interfaces.IContact" />
-      <factory
-          permission="contact.ManageContacts"
-          title="Personal Contact Information" />
-      <require
-          permission="zope.View"
-          interface=".interfaces.IContactInfo." />
-      <require
-          permission="contact.ManageContacts"
-          attributes="update"/>
-    </content>
+  Subdirectives
+
+    implements
+
+      File zope/app/component/meta.zcml, lines 113 - 116.
+
+      Declare that the class given by the content directive's class attribute
+      a given interface
+
+      Attributes
+
+        interface -- Tokens (required)
+
+          One or more interfaces
+
+          
+
+
+
+    require
+
+      File zope/app/component/meta.zcml, lines 118 - 121.
+
+      Indicate that the a specified list of names or the names in a given
+      require a given permission for access.
+
+      Attributes
+
+        permission -- Id (optional, default=None)
+
+          Permission
+
+          Specifies the permission by id that will be required to access or
+          the attributes and methods specified.
+
+        attributes -- Tokens (optional, default=None)
+
+          Attributes and methods
+
+          This is a list of attributes and methods that can be accessed.
+
+        set_attributes -- Tokens (optional, default=None)
+
+          Attributes that can be set
+
+          This is a list of attributes that can be modified/mutated.
+
+        interface -- Tokens (optional, default=None)
+
+          Interfaces
+
+          The listed interfaces' methods and attributes can be accessed.
+
+        set_schema -- Tokens (optional, default=None)
+
+          The attributes specified by the schema can be set
+
+          The listed schemas' properties can be modified/mutated.
+
+        like_class -- GlobalObject (optional, default=None)
+
+          Configure like this class
+
+          This argument says that this content class should be configured in
+          same way the specified class' security is. If this argument is
+          no other argument can be used.
+
+
+
+    allow
+
+      File zope/app/component/meta.zcml, lines 123 - 126.
+
+      Declare a part of the class to be publicly viewable (that is, requires
+      zope.Public permission). Only one of the following two attributes may
+      used.
+
+      Attributes
+
+        attributes -- Tokens (optional, default=None)
+
+          Attributes
+
+          
+
+        interface -- Tokens (optional, default=None)
+
+          Interface
+
+          
+
+
+
+    factory
+
+      File zope/app/component/meta.zcml, lines 128 - 131.
+
+      Specify the factory used to create this content object
+
+      Attributes
+
+        id -- TextLine (optional, default=None)
+
+          ID
+
+          the identifier for this factory in the ZMI factory identification
+          If not given, defaults to the literal string given as the content
+          'class' attribute.
+
+        permission -- Id (optional, default=None)
+
+          Permission
+
+          permission id required to use this factory. Although optional, this
+          should normally be specified.
+
+        title -- MessageID (optional, default=None)
+
+          Title
+
+          text suitable for use in the 'add content' menu of a management
+          
+
+        description -- MessageID (optional, default=None)
+
+          Description
+
+          Longer narrative description of what this factory does
+


=== Zope3/doc/zcml/namespaces.zope.org/zope/defaultView.stx 1.2 => 1.3 ===
--- Zope3/doc/zcml/namespaces.zope.org/zope/defaultView.stx:1.2	Mon Jun 10 19:27:38 2002
+++ Zope3/doc/zcml/namespaces.zope.org/zope/defaultView.stx	Thu Jan 22 18:57:17 2004
@@ -1,15 +1,79 @@
-The defaultView directive.
+defaultView
 
-Assuming the MinimalDefaultViewDirectives proposal is accepted, the following
-will hold.
+  File zope/app/component/meta.zcml, lines 37 - 41.
 
-Attributes
+  Register a view for a component
 
-  * for, a component
-  
-  * name, the name of the view that is to be the default
+  Attributes
 
+    for -- GlobalObject (optional, default=None)
 
-References
+      The interface this view applies to.
+
+      The view will be for all objects that implement this interface. If this
+      not supplied, the view applies to all objects (XXX this ought to
+      
+
+    permission -- Id (optional, default=None)
+
+      Permission
+
+      The permission needed to use the view.
+
+    class -- GlobalObject (optional, default=None)
+
+      Class
+
+      A class that provides attributes used by the view.
+
+    layer -- TextLine (optional, default=None)
+
+      The layer the view is in.
+
+      A skin is composed of layers. It is common to put skin specific views
+      a layer named after the skin. If the 'layer' attribute is not supplied,
+      defaults to 'default'.
+
+    allowed_interface -- Tokens (optional, default=None)
+
+      Interface that is also allowed if user has permission.
+
+      By default, 'permission' only applies to viewing the view and any
+      sub views. By specifying this attribute, you can make the permission
+      apply to everything described in the supplied interface.
+
+      Multiple interfaces can be provided, separated by whitespace.
+
+    allowed_attributes -- Tokens (optional, default=None)
+
+      View attributes that are also allowed if user has permission.
+
+      By default, 'permission' only applies to viewing the view and any
+      sub views. By specifying 'allowed_attributes', you can make the
+      also apply to the extra attributes on the view object.
+
+    name -- TextLine (required)
+
+      The name of the resource.
+
+      The name shows up in URLs/paths. For example 'foo'.
+
+    provides -- GlobalObject (optional, default=<InterfaceClass zope.interface.Interface at 4031b1ec>)
+
+      The interface this component provides.
+
+      A view can provide an interface. This would be used for views that
+      other views.
+
+    type -- GlobalObject (required)
+
+      Request type
+
+      
+
+    factory -- Tokens (optional, default=None)
+
+      Factory
+
+      
 
-  http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/MinimalDefaultViewDirectives


=== Zope3/doc/zcml/namespaces.zope.org/zope/factory.stx 1.2 => 1.3 ===
--- Zope3/doc/zcml/namespaces.zope.org/zope/factory.stx:1.2	Mon Jun 10 19:27:38 2002
+++ Zope3/doc/zcml/namespaces.zope.org/zope/factory.stx	Thu Jan 22 18:57:17 2004
@@ -1,10 +1,26 @@
-The factory directive.
+factory
 
-See lib/python/Zope/App/ComponentArchitecture/component-meta.zcml
+  File zope/app/component/meta.zcml, lines 25 - 29.
 
-Attributes
+  Define a factory
+
+  Attributes
+
+    component -- GlobalObject (required)
+
+      Component to be used
+
+      
+
+    id -- TextLine (optional, default=None)
+
+      ID
+
+      
+
+    permission -- Id (optional, default=None)
+
+      Permission
+
+      
 
-  * component
-  
-  * id, optional
-  


=== Zope3/doc/zcml/namespaces.zope.org/zope/hook.stx 1.2 => 1.3 ===
--- Zope3/doc/zcml/namespaces.zope.org/zope/hook.stx:1.2	Mon Jun 10 19:27:38 2002
+++ Zope3/doc/zcml/namespaces.zope.org/zope/hook.stx	Thu Jan 22 18:57:17 2004
@@ -1,3 +1,26 @@
-The hook directive.
+hook
+
+  File zope/configuration/meta.zcml, lines 5 - 6.
+
+  schema generated from attributes
+
+  Attributes
+
+    name -- Text (optional, default=None)
+
+      name
+
+      
+
+    implementation -- Text (optional, default=None)
+
+      implementation
+
+      
+
+    module -- Text (optional, default=None)
+
+      module
+
+      
 
-See lib/python/Zope/Configuration/configuration-meta.zcml


=== Zope3/doc/zcml/namespaces.zope.org/zope/permission.stx 1.2 => 1.3 ===
--- Zope3/doc/zcml/namespaces.zope.org/zope/permission.stx:1.2	Mon Jun 10 19:27:38 2002
+++ Zope3/doc/zcml/namespaces.zope.org/zope/permission.stx	Thu Jan 22 18:57:17 2004
@@ -1 +1,26 @@
-The permission directive
+permission
+
+  File zope/app/security/registries/meta.zcml, lines 5 - 9.
+
+  Define a new permission.
+
+  Attributes
+
+    id -- Id (required)
+
+      Id
+
+      Id as which this object will be known and used.
+
+    title -- MessageID (required)
+
+      Title
+
+      Provides a title for the object.
+
+    description -- MessageID (optional, default=None)
+
+      Description
+
+      Provides a description for the object.
+


=== Zope3/doc/zcml/namespaces.zope.org/zope/principal.stx 1.2 => 1.3 ===
--- Zope3/doc/zcml/namespaces.zope.org/zope/principal.stx:1.2	Mon Jun 10 19:27:38 2002
+++ Zope3/doc/zcml/namespaces.zope.org/zope/principal.stx	Thu Jan 22 18:57:17 2004
@@ -1,2 +1,38 @@
-The principal directive
-     
+principal
+
+  File zope/app/security/registries/meta.zcml, lines 11 - 15.
+
+  Define a new principal.
+
+  Attributes
+
+    id -- Id (required)
+
+      Id
+
+      Id as which this object will be known and used.
+
+    title -- TextLine (required)
+
+      Title
+
+      Provides a title for the object.
+
+    description -- TextLine (optional, default=None)
+
+      Title
+
+      Provides a description for the object.
+
+    login -- TextLine (required)
+
+      Username/Login
+
+      Specifies the Principal's Username/Login.
+
+    password -- TextLine (required)
+
+      Password
+
+      Specifies the Principal's Password.
+


=== Zope3/doc/zcml/namespaces.zope.org/zope/require.stx 1.2 => 1.3 ===
--- Zope3/doc/zcml/namespaces.zope.org/zope/require.stx:1.2	Mon Jun 10 19:27:38 2002
+++ Zope3/doc/zcml/namespaces.zope.org/zope/require.stx	Thu Jan 22 18:57:17 2004
@@ -1 +1,14 @@
-The require subdirective of the content directive.
+require
+
+  File zope/app/security/meta.zcml, lines 36 - 48.
+
+  
+
+  Attributes
+
+    permission -- Id (required)
+
+      Permission ID
+
+      The id of the permission to require.
+


=== Zope3/doc/zcml/namespaces.zope.org/zope/resource.stx 1.2 => 1.3 ===
--- Zope3/doc/zcml/namespaces.zope.org/zope/resource.stx:1.2	Mon Jun 10 19:27:38 2002
+++ Zope3/doc/zcml/namespaces.zope.org/zope/resource.stx	Thu Jan 22 18:57:17 2004
@@ -1 +1,63 @@
-The resource directive.
+resource
+
+  File zope/app/component/meta.zcml, lines 43 - 47.
+
+  Register a resource
+
+  Attributes
+
+    component -- GlobalObject (optional, default=None)
+
+      Component to be used
+
+      
+
+    permission -- Id (optional, default=None)
+
+      Permission
+
+      
+
+    factory -- GlobalObject (optional, default=None)
+
+      Factory
+
+      
+
+    name -- TextLine (required)
+
+      The name of the resource.
+
+      The name shows up in URLs/paths. For example 'foo'.
+
+    provides -- GlobalObject (optional, default=<InterfaceClass zope.interface.Interface at 4031b1ec>)
+
+      The interface this component provides.
+
+      A view can provide an interface. This would be used for views that
+      other views.
+
+    type -- GlobalObject (required)
+
+      Request type
+
+      
+
+    layer -- TextLine (optional, default=None)
+
+      The layer the resource is in.
+
+      
+
+    allowed_interface -- Tokens (optional, default=None)
+
+      Interface that is also allowed if user has permission.
+
+      
+
+    allowed_attributes -- Tokens (optional, default=None)
+
+      View attributes that are also allowed if user has permission.
+
+      
+


=== Zope3/doc/zcml/namespaces.zope.org/zope/securityPolicy.stx 1.4 => 1.5 ===
--- Zope3/doc/zcml/namespaces.zope.org/zope/securityPolicy.stx:1.4	Sun Sep  1 15:32:47 2002
+++ Zope3/doc/zcml/namespaces.zope.org/zope/securityPolicy.stx	Thu Jan 22 18:57:17 2004
@@ -1,24 +1,14 @@
-The securityPolicy directive
+securityPolicy
 
-Overview
+  File zope/app/security/meta.zcml, lines 7 - 12.
+
+  Defines the security policy that will be used for Zope.
+
+  Attributes
+
+    component -- GlobalObject (required)
+
+      Component
+
+      Pointer to the object that will handle the security.
 
-  Sets the security policy that Zope will use.
-  
-  XXX: Explain what this means.
-  
-Attributes
-
-  The securityPolicy directive takes these attributes
-  
-    * component, the component that implements the security policy
-    
-    * factory, a callable that returns a security policy
-    
-    
-  The security policy component should implement the interface
-  "Zope.Security.ISecurityPolicy."
-  
-  
-  
-  
-  


=== Zope3/doc/zcml/namespaces.zope.org/zope/service.stx 1.2 => 1.3 ===
--- Zope3/doc/zcml/namespaces.zope.org/zope/service.stx:1.2	Mon Jun 10 19:27:38 2002
+++ Zope3/doc/zcml/namespaces.zope.org/zope/service.stx	Thu Jan 22 18:57:17 2004
@@ -1 +1,32 @@
-The service directive.
+service
+
+  File zope/app/component/meta.zcml, lines 73 - 77.
+
+  Register a service
+
+  Attributes
+
+    component -- GlobalObject (optional, default=None)
+
+      Component to be used
+
+      
+
+    permission -- Id (optional, default=None)
+
+      Permission
+
+      
+
+    factory -- GlobalObject (optional, default=None)
+
+      Factory
+
+      
+
+    serviceType -- TextLine (required)
+
+      ID of service type
+
+      
+


=== Zope3/doc/zcml/namespaces.zope.org/zope/serviceType.stx 1.2 => 1.3 ===
--- Zope3/doc/zcml/namespaces.zope.org/zope/serviceType.stx:1.2	Mon Jun 10 19:27:38 2002
+++ Zope3/doc/zcml/namespaces.zope.org/zope/serviceType.stx	Thu Jan 22 18:57:17 2004
@@ -1 +1,20 @@
-The serviceType directive.
+serviceType
+
+  File zope/app/component/meta.zcml, lines 67 - 71.
+
+  
+
+  Attributes
+
+    id -- TextLine (required)
+
+      ID of the service type
+
+      
+
+    interface -- GlobalObject (required)
+
+      Interface of the service type
+
+      
+


=== Zope3/doc/zcml/namespaces.zope.org/zope/skin.stx 1.2 => 1.3 ===
--- Zope3/doc/zcml/namespaces.zope.org/zope/skin.stx:1.2	Mon Jun 10 19:27:38 2002
+++ Zope3/doc/zcml/namespaces.zope.org/zope/skin.stx	Thu Jan 22 18:57:17 2004
@@ -1 +1,20 @@
-The skin directive.
+skin
+
+  File zope/app/component/meta.zcml, lines 49 - 53.
+
+  Register a skin
+
+  Attributes
+
+    name -- TextLine (required)
+
+      Skin name
+
+      Skin name
+
+    layers -- Tokens (required)
+
+      The layers it consists of.
+
+      
+


=== Zope3/doc/zcml/namespaces.zope.org/zope/utility.stx 1.4 => 1.5 ===
--- Zope3/doc/zcml/namespaces.zope.org/zope/utility.stx:1.4	Sun Sep  1 15:42:22 2002
+++ Zope3/doc/zcml/namespaces.zope.org/zope/utility.stx	Thu Jan 22 18:57:17 2004
@@ -1,17 +1,38 @@
-The utility directive.
+utility
 
-See lib/python/Zope/App/ComponentArchitecture/component-meta.zcml
+  File zope/app/component/meta.zcml, lines 19 - 23.
 
-Attributes
+  Register a utility
+
+  Attributes
+
+    component -- GlobalObject (optional, default=None)
+
+      Component to be used
+
+      
+
+    permission -- Id (optional, default=None)
+
+      Permission
+
+      
+
+    factory -- GlobalObject (optional, default=None)
+
+      Factory
+
+      
+
+    provides -- GlobalObject (required)
+
+      Interface the component provides
+
+      
+
+    name -- TextLine (optional, default=None)
+
+      Name
+
+      
 
-  * factory, a callable that provides a component.  It will be
-    called with no arguments.
-  
-  * component, a name that can be resolved to an object
-  
-  * provides, the interface this utility provides
-  
-  * permission, optional, the permission id required to use this utility
-  
-  
-  Either component or factory must be given, not both.


=== Zope3/doc/zcml/namespaces.zope.org/zope/view.stx 1.2 => 1.3 ===
--- Zope3/doc/zcml/namespaces.zope.org/zope/view.stx:1.2	Mon Jun 10 19:27:39 2002
+++ Zope3/doc/zcml/namespaces.zope.org/zope/view.stx	Thu Jan 22 18:57:17 2004
@@ -1 +1,79 @@
-The view directive.
+view
+
+  File zope/app/component/meta.zcml, lines 31 - 35.
+
+  Register a view for a component
+
+  Attributes
+
+    for -- GlobalObject (optional, default=None)
+
+      The interface this view applies to.
+
+      The view will be for all objects that implement this interface. If this
+      not supplied, the view applies to all objects (XXX this ought to
+      
+
+    permission -- Id (optional, default=None)
+
+      Permission
+
+      The permission needed to use the view.
+
+    class -- GlobalObject (optional, default=None)
+
+      Class
+
+      A class that provides attributes used by the view.
+
+    layer -- TextLine (optional, default=None)
+
+      The layer the view is in.
+
+      A skin is composed of layers. It is common to put skin specific views
+      a layer named after the skin. If the 'layer' attribute is not supplied,
+      defaults to 'default'.
+
+    allowed_interface -- Tokens (optional, default=None)
+
+      Interface that is also allowed if user has permission.
+
+      By default, 'permission' only applies to viewing the view and any
+      sub views. By specifying this attribute, you can make the permission
+      apply to everything described in the supplied interface.
+
+      Multiple interfaces can be provided, separated by whitespace.
+
+    allowed_attributes -- Tokens (optional, default=None)
+
+      View attributes that are also allowed if user has permission.
+
+      By default, 'permission' only applies to viewing the view and any
+      sub views. By specifying 'allowed_attributes', you can make the
+      also apply to the extra attributes on the view object.
+
+    name -- TextLine (required)
+
+      The name of the resource.
+
+      The name shows up in URLs/paths. For example 'foo'.
+
+    provides -- GlobalObject (optional, default=<InterfaceClass zope.interface.Interface at 4031b1ec>)
+
+      The interface this component provides.
+
+      A view can provide an interface. This would be used for views that
+      other views.
+
+    type -- GlobalObject (required)
+
+      Request type
+
+      
+
+    factory -- Tokens (optional, default=None)
+
+      Factory
+
+      
+




More information about the Zope3-Checkins mailing list