[Zope3-checkins] CVS: Zope3/src/zope/app/services - zpt.zcml:1.2
Jim Fulton
cvs-admin at zope.org
Fri Nov 21 12:09:51 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv29880/src/zope/app/services
Added Files:
zpt.zcml
Log Message:
Factored configuration into separate file
Moved interface to implementation module
=== Zope3/src/zope/app/services/zpt.zcml 1.1 => 1.2 ===
--- /dev/null Fri Nov 21 12:09:51 2003
+++ Zope3/src/zope/app/services/zpt.zcml Fri Nov 21 12:09:51 2003
@@ -0,0 +1,49 @@
+<configure
+ xmlns='http://namespaces.zope.org/zope'
+ xmlns:event='http://namespaces.zope.org/event'
+ xmlns:fssync='http://namespaces.zope.org/fssync'
+ >
+
+<!-- Page Templates -->
+
+<content class=".zpt.ZPTTemplate">
+ <factory
+ permission="zope.ManageServices"
+ title="ZPT Template"
+ description="Page Template"
+ />
+ <require
+ permission="zope.View"
+ attributes="__call__"
+ />
+ <require
+ permission="zope.ManageServices"
+ interface=".zpt.IZPTTemplate"
+ set_schema=".zpt.IZPTTemplate"
+ />
+ <implements
+ interface="zope.app.interfaces.annotation.IAttributeAnnotatable"
+ />
+</content>
+
+<adapter
+ for=".zpt.IZPTTemplate"
+ provides="zope.app.interfaces.file.IReadFile"
+ factory=".zpt.ReadFile"
+ permission="zope.ManageServices"
+ />
+
+<adapter
+ for=".zpt.IZPTTemplate"
+ provides="zope.app.interfaces.file.IWriteFile"
+ factory=".zpt.WriteFile"
+ permission="zope.ManageServices"
+ />
+
+<!-- Filesystem synchronization support -->
+<fssync:adapter
+ class=".zpt.ZPTTemplate"
+ factory=".zpt.ZPTPageAdapter"
+ />
+
+</configure>
More information about the Zope3-Checkins
mailing list