[Checkins] SVN: grok/trunk/src/grok/interfaces.py Bring interfaces up to date with recent additions

Philipp von Weitershausen philikon at philikon.de
Mon May 28 12:52:41 EDT 2007


Log message for revision 75982:
  Bring interfaces up to date with recent additions
  

Changed:
  U   grok/trunk/src/grok/interfaces.py

-=-
Modified: grok/trunk/src/grok/interfaces.py
===================================================================
--- grok/trunk/src/grok/interfaces.py	2007-05-28 11:11:39 UTC (rev 75981)
+++ grok/trunk/src/grok/interfaces.py	2007-05-28 16:52:41 UTC (rev 75982)
@@ -41,6 +41,7 @@
     AddForm = interface.Attribute("Base class for add forms.")
     EditForm = interface.Attribute("Base class for edit forms.")
     DisplayForm = interface.Attribute("Base class for display forms.")
+    Indexes = interface.Attribute("Base class for catalog index definitions.")
 
 
 class IGrokErrors(interface.Interface):
@@ -133,7 +134,13 @@
         grok.require can be used as a class-level directive or as a
         method decorator."""
 
+    def site(class_or_interface):
+        """Specifies the site that an indexes definition is for.
 
+        It can only be used inside grok.Indexes subclasses.
+        """
+
+
 class IGrokDecorators(interface.Interface):
 
     def subscribe(*classes_or_interfaces):
@@ -267,7 +274,13 @@
         filled in from the request (in that case they *must* be
         present in the request)."""
 
+    def application_url(name=None):
+        """Return the URL of the closest application object in the
+        hierarchy or the URL of a named object (``name`` parameter)
+        relative to the closest application object.
+        """
 
+
 class IGrokForm(IGrokView):
     """Grok form API, inspired by zope.formlib's IFormBaseCustomization.
 



More information about the Checkins mailing list