Author: bree
Date: Sat Apr 15 09:55:58 2006
New Revision: 2852

Modified:
   azax/branches/plugin/commands.py
   azax/branches/plugin/interfaces.py
Log:
Add interfaces for command elements

Modified: azax/branches/plugin/commands.py
==============================================================================
--- azax/branches/plugin/commands.py    (original)
+++ azax/branches/plugin/commands.py    Sat Apr 15 09:55:58 2006
@@ -27,7 +27,7 @@
 
 from zope.interface import implements
 from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
-from interfaces import IAzaxCommands
+from interfaces import IAzaxCommands, IAzaxCommand, IAzaxParam
 from plugins import Command
 from unicode_quirks import force_unicode
 import re, htmlentitydefs
@@ -36,6 +36,7 @@
     implements(IAzaxCommands)
     
 class AzaxParam:
+    implements(IAzaxParam)
     
     def __init__(self, name, content=''):
         self.name = name
@@ -49,6 +50,7 @@
         return self.content
         
 class AzaxCommand:
+    implements(IAzaxCommand)
     
     def __init__(self, name, selector):
         Command.checkRegistered(name)

Modified: azax/branches/plugin/interfaces.py
==============================================================================
--- azax/branches/plugin/interfaces.py  (original)
+++ azax/branches/plugin/interfaces.py  Sat Apr 15 09:55:58 2006
@@ -23,3 +23,9 @@
 
 class IAzaxCommands(Interface):
     'Azax commands'
+
+class IAzaxCommand(Interface):
+    'An Azax command'
+
+class IAzaxParam(Interface):
+    'An Azax parameter'
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to