Permalink
Browse files

Add meta.zcml and document inclusion.

  • Loading branch information...
1 parent d78a21d commit 9e6652d618e5ac4215c8ebdccbf47479eb082edc @tseaver tseaver committed Jan 5, 2011
Showing with 21 additions and 0 deletions.
  1. +6 −0 docs/index.rst
  2. +15 −0 pyramid_who/meta.zcml
View
@@ -40,12 +40,18 @@ or via ZCML:
.. code-block:: xml
:linenos:
+ <include
+ package="pyramid_who"
+ file="meta.zcml"
+ />
+
<whov2authenticatonpolicy
config_file="/path/to/who.ini"
identifier_id="auth_tkt"
callback="my_package.users.verify_user"
/>
+
``config_file``
A fully-qualified path to a :mod:`repoze.who` configuration file.
View
@@ -0,0 +1,15 @@
+<configure
+ xmlns="http://namespaces.zope.org/zope"
+ xmlns:meta="http://namespaces.zope.org/meta">
+
+ <meta:directives namespace="http://pylonshq.com/pyramid">
+
+ <meta:directive
+ name="view"
+ schema="pyramid_who.zcml.IRepozeWho2AuthenticationPolicyDirective"
+ handler="pyramid_who.zcml.repozewho2authenticationpolicy"
+ />
+
+ </meta:directives>
+
+</configure>

0 comments on commit 9e6652d

Please sign in to comment.