[z3-checkins] r17856 - z3/Five/branch/castle-marker-utility/utilities/browser

gotcha at codespeak.net gotcha at codespeak.net
Sun Sep 25 16:18:58 CEST 2005


Author: gotcha
Date: Sun Sep 25 16:18:56 2005
New Revision: 17856

Added:
   z3/Five/branch/castle-marker-utility/utilities/browser/configure.zcml
Modified:
   z3/Five/branch/castle-marker-utility/utilities/browser/markerview.py
Log:
add view through zcml

Added: z3/Five/branch/castle-marker-utility/utilities/browser/configure.zcml
==============================================================================
--- (empty file)
+++ z3/Five/branch/castle-marker-utility/utilities/browser/configure.zcml	Sun Sep 25 16:18:56 2005
@@ -0,0 +1,13 @@
+<configure xmlns="http://namespaces.zope.org/zope"
+           xmlns:browser="http://namespaces.zope.org/browser"
+           xmlns:five="http://namespaces.zope.org/five">
+
+  <browser:page
+      for="*"
+      class=".markerview.MarkerView"
+      template="marker_view.pt"
+      name="marker"
+      permission="zope2.ManageProperties"
+      />
+
+</configure>

Modified: z3/Five/branch/castle-marker-utility/utilities/browser/markerview.py
==============================================================================
--- z3/Five/branch/castle-marker-utility/utilities/browser/markerview.py	(original)
+++ z3/Five/branch/castle-marker-utility/utilities/browser/markerview.py	Sun Sep 25 16:18:56 2005
@@ -11,5 +11,10 @@
         self.utility = zapi.getUtility(IMarkerUtility)
 
     def getAvailableInterfaceNames(self):
-        
-    
+        return self.utility.getAvailableInterfaceNames(self.context) 
+
+    def getDirectlyProvidedNames(self):
+        return self.utility.getDirectlyProvidedNames(self.context) 
+
+    def getProvidedNames(self):
+        return self.utility.getProvidedNames(self.context) 


More information about the z3-checkins mailing list