[Checkins] SVN: grokcore.component/trunk/ Add missing interface declarations. Without these, five.grok doesn't know about the new directives recently added

Martin Aspeli optilude at gmx.net
Thu May 28 08:36:24 EDT 2009


Log message for revision 100509:
  Add missing interface declarations. Without these, five.grok doesn't know about the new directives recently added

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

-=-
Modified: grokcore.component/trunk/CHANGES.txt
===================================================================
--- grokcore.component/trunk/CHANGES.txt	2009-05-28 12:22:56 UTC (rev 100508)
+++ grokcore.component/trunk/CHANGES.txt	2009-05-28 12:36:24 UTC (rev 100509)
@@ -4,7 +4,8 @@
 1.7 (unreleased)
 ----------------
 
-- Nothing changed yet.
+* Add missing provider, global_adapter, implementsOnly, classProvides() to
+  the module interface so that they are included in __all__
 
 
 1.6 (2009-04-10)

Modified: grokcore.component/trunk/src/grokcore/component/interfaces.py
===================================================================
--- grokcore.component/trunk/src/grokcore/component/interfaces.py	2009-05-28 12:22:56 UTC (rev 100508)
+++ grokcore.component/trunk/src/grokcore/component/interfaces.py	2009-05-28 12:36:24 UTC (rev 100509)
@@ -57,6 +57,17 @@
 
     def implements(*interfaces):
         """Declare that a class implements the given interfaces."""
+    
+    def implementsOnly(*interfaces):
+        """Declare that a class implements only the given interfaces.
+        
+        Interfaces implemented by base classes are explicitly not inherited.
+        """
+    
+    def classProvides(*interfaces):
+        """Declare that a class (as opposed to instances of the class)
+        directly provides the given interfaces.
+        """
 
     def adapts(*classes_or_interfaces):
         """Declare that a class adapts objects of the given classes or



More information about the Checkins mailing list