[Checkins] SVN: grokcore.view/trunk/ Update APIs interfaces to add the new directive path and the new component DirectoryResource.

Sylvain Viollon sylvain at infrae.com
Sat Nov 15 09:50:22 EST 2008


Log message for revision 92976:
  Update APIs interfaces to add the new directive path and the new component DirectoryResource.
  
  

Changed:
  U   grokcore.view/trunk/CHANGES.txt
  U   grokcore.view/trunk/src/grokcore/view/interfaces.py

-=-
Modified: grokcore.view/trunk/CHANGES.txt
===================================================================
--- grokcore.view/trunk/CHANGES.txt	2008-11-15 14:46:44 UTC (rev 92975)
+++ grokcore.view/trunk/CHANGES.txt	2008-11-15 14:50:22 UTC (rev 92976)
@@ -4,7 +4,8 @@
 1.3 (unreleased)
 ----------------
 
-* ...
+* Update APIs interfaces to include the new ``path`` directive and
+  new ``DirectoryResource`` component.
 
 1.2 (2008-10-16)
 ----------------

Modified: grokcore.view/trunk/src/grokcore/view/interfaces.py
===================================================================
--- grokcore.view/trunk/src/grokcore/view/interfaces.py	2008-11-15 14:46:44 UTC (rev 92975)
+++ grokcore.view/trunk/src/grokcore/view/interfaces.py	2008-11-15 14:50:22 UTC (rev 92976)
@@ -19,8 +19,9 @@
 
 class IBaseClasses(Interface):
     View = Attribute("Base class for browser views.")
+    DirectoryResource = Attribute("Base class to create new "
+                                  "directory resource.")
 
-
 class IDirectives(Interface):
 
     def layer(layer):
@@ -29,6 +30,11 @@
         This directive acts as a contraint on the 'request' of
         grok.View. This directive can only be used on class level."""
 
+    def path(path):
+        """Declare which path to use on a DirectoryResource.
+
+        This directive can only be used on class level."""
+
     def skin(skin):
         """Declare this layer as a named skin.
 
@@ -52,8 +58,8 @@
     def url(request, obj, name=None, data=None):
         """Generate the URL to an object with optional name attached.
         An optional argument 'data' can be a dictionary that is converted
-        into a query string appended to the URL.
-        """
+        into a query string appended to the URL."""
+
     def PageTemplate(template):
         """Create a Grok PageTemplate object from ``template`` source
         text.  This can be used for inline PageTemplates."""



More information about the Checkins mailing list