[Zope3-checkins] CVS: Products3/bugtracker - configure.zcml:1.6
Stephan Richter
srichter@cosmos.phy.tufts.edu
Mon, 28 Jul 2003 20:05:45 -0400
Update of /cvs-repository/Products3/bugtracker
In directory cvs.zope.org:/tmp/cvs-serv14836
Modified Files:
configure.zcml
Log Message:
registered XMLRPC views
=== Products3/bugtracker/configure.zcml 1.5 => 1.6 ===
--- Products3/bugtracker/configure.zcml:1.5 Mon Jul 28 13:13:41 2003
+++ Products3/bugtracker/configure.zcml Mon Jul 28 20:05:39 2003
@@ -1,5 +1,6 @@
<zopeConfigure
xmlns="http://namespaces.zope.org/zope"
+ xmlns:xmlrpc="http://namespaces.zope.org/xmlrpc"
xmlns:event="http://namespaces.zope.org/event"
xmlns:mail="http://namespaces.zope.org/mail"
xmlns:translate="http://namespaces.zope.org/gts">
@@ -285,6 +286,31 @@
set_schema=".interfaces.IComment" />
</content>
+
+ <!-- XML-RPC presentation -->
+ <xmlrpc:view
+ name="methods"
+ for=".interfaces.IBugTracker"
+ permission="bugtracker.ViewBug"
+ allowed_methods="getBugNames addBug deleteBug"
+ factory=".xmlrpc.BugTrackerMethods" />
+
+ <xmlrpc:view
+ name="methods"
+ for=".interfaces.IBug"
+ permission="bugtracker.ViewBug"
+ allowed_methods="getProperties setProperties
+ getCommentNames addComment deleteComment
+ getAttachmentNames addAttachment deleteAttachment
+ "
+ factory=".xmlrpc.BugMethods" />
+
+ <xmlrpc:view
+ name="methods"
+ for=".interfaces.IComment"
+ permission="bugtracker.ViewBug"
+ allowed_methods="getBody setBody"
+ factory=".xmlrpc.CommentMethods" />
<!-- Register Mailer and Mail Service -->