[Zope3-checkins] CVS: Zope3/src/zope/app/apidoc/classmodule -
configure.zcml:1.3
Stephan Richter
srichter at cosmos.phy.tufts.edu
Mon Mar 29 21:00:27 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/apidoc/classmodule
In directory cvs.zope.org:/tmp/cvs-serv12061/src/zope/app/apidoc/classmodule
Modified Files:
configure.zcml
Log Message:
Add security assertion and view registration for functions.
Register views for interfaces instead of classes.
=== Zope3/src/zope/app/apidoc/classmodule/configure.zcml 1.2 => 1.3 ===
--- Zope3/src/zope/app/apidoc/classmodule/configure.zcml:1.2 Sun Mar 28 18:39:56 2004
+++ Zope3/src/zope/app/apidoc/classmodule/configure.zcml Mon Mar 29 21:00:25 2004
@@ -10,6 +10,10 @@
<allow interface=".IClassDocumentation" />
</class>
+ <class class=".Function">
+ <allow interface=".IFunctionDocumentation" />
+ </class>
+
<class class=".ClassModule">
<allow interface="zope.app.apidoc.interfaces.IDocumentationModule" />
<allow interface=".IModuleDocumentation" />
@@ -29,17 +33,24 @@
template="menu.pt" />
<browser:page
- for=".Class"
+ for=".IModuleDocumentation"
+ permission="zope.View"
+ class=".browser.ModuleDetails"
+ name="index.html"
+ template="module_index.pt" />
+
+ <browser:page
+ for=".IClassDocumentation"
permission="zope.View"
class=".browser.ClassDetails"
name="index.html"
template="class_index.pt" />
<browser:page
- for=".Module"
+ for=".IFunctionDocumentation"
permission="zope.View"
- class=".browser.ModuleDetails"
+ class=".browser.FunctionDetails"
name="index.html"
- template="module_index.pt" />
+ template="function_index.pt" />
</configure>
More information about the Zope3-Checkins
mailing list