[Checkins] SVN: five.grok/trunk/ Update five.localsitemanager. Fix a missing interface on local utilities.

Sylvain Viollon sylvain at infrae.com
Mon Nov 16 04:31:07 EST 2009


Log message for revision 105687:
  Update five.localsitemanager. Fix a missing interface on local utilities.
  Update README and HISTORY in order to release.
  
  

Changed:
  U   five.grok/trunk/README.txt
  U   five.grok/trunk/buildout.cfg
  U   five.grok/trunk/docs/HISTORY.txt
  U   five.grok/trunk/src/five/grok/components.py
  U   five.grok/trunk/src/five/grok/ftests/site/local_site.py

-=-
Modified: five.grok/trunk/README.txt
===================================================================
--- five.grok/trunk/README.txt	2009-11-16 05:28:01 UTC (rev 105686)
+++ five.grok/trunk/README.txt	2009-11-16 09:31:06 UTC (rev 105687)
@@ -67,7 +67,7 @@
   grokcore.site = 1.1
   grokcore.view = 1.12.2
   grokcore.viewlet = 1.3
-  five.localsitemanager = 2.0.1
+  five.localsitemanager = 2.0.2
   martian = 0.11.1
 
 Zope 2.12 is required. If you wish to use a previous version of Zope

Modified: five.grok/trunk/buildout.cfg
===================================================================
--- five.grok/trunk/buildout.cfg	2009-11-16 05:28:01 UTC (rev 105686)
+++ five.grok/trunk/buildout.cfg	2009-11-16 09:31:06 UTC (rev 105687)
@@ -16,7 +16,7 @@
 grokcore.site = 1.1
 grokcore.view = 1.12.2
 grokcore.viewlet = 1.3
-five.localsitemanager = 2.0.1
+five.localsitemanager = 2.0.2
 martian = 0.11.1
 Zope2 = 2.12.1
 

Modified: five.grok/trunk/docs/HISTORY.txt
===================================================================
--- five.grok/trunk/docs/HISTORY.txt	2009-11-16 05:28:01 UTC (rev 105686)
+++ five.grok/trunk/docs/HISTORY.txt	2009-11-16 09:31:06 UTC (rev 105687)
@@ -4,15 +4,19 @@
 1.1 (unreleased)
 ----------------
 
-- Update to martian 0.11.1.
-  [vincentfretin]
+- Update code and tests to work with Zope 2.12. People using Zope 2.10
+  and 2.11 should keep using five.grok 1.0.
+  [thefunny42 and optilude]
 
-- Update to grokcore.annotation 1.1 and grokcore.site 1.1.
+- Update to martian 0.11.1, `grokcore.annotation`_ 1.1 and
+  `grokcore.site`_ 1.1, `grokcore.view`_ to 1.12.2.
   [vincentfretin]
 
-- Pin grokcore.view to 1.12.2.
-  [vincentfretin]
+- Local utility implements IAttributeAnnotatable, IContext like in
+  `grokcore.site`_.
+  [thefunny42]
 
+
 1.0 (2009-09-17)
 ----------------
 
@@ -24,7 +28,6 @@
 
 - Reverted the CodeView base class, see grokcore.view changelog for
   more details.
-
   ``CodeView`` is still available as a backwards compatibility alias
   for ``View``. Please update all references to ``CodeView`` to
   ``View``.

Modified: five.grok/trunk/src/five/grok/components.py
===================================================================
--- five.grok/trunk/src/five/grok/components.py	2009-11-16 05:28:01 UTC (rev 105686)
+++ five.grok/trunk/src/five/grok/components.py	2009-11-16 09:31:06 UTC (rev 105687)
@@ -70,7 +70,7 @@
 
 
 class LocalUtility(SimpleItem):
-    pass
+    interface.implements(IAttributeAnnotatable, IContext)
 
 
 class View(grokcore.view.View):
@@ -82,6 +82,7 @@
             # Set parent so that we have an acquisition chain
             self.static.__parent__ = context
 
+
 class ViewAwareZopePageTemplate(ZopePageTemplate):
 
     def pt_getEngine(self):
@@ -169,6 +170,7 @@
         resource.__name__ = self.__name # We need to add name
         return resource
 
+
 # forms from formlib
 
 class GrokForm(BaseGrokForm):

Modified: five.grok/trunk/src/five/grok/ftests/site/local_site.py
===================================================================
--- five.grok/trunk/src/five/grok/ftests/site/local_site.py	2009-11-16 05:28:01 UTC (rev 105686)
+++ five.grok/trunk/src/five/grok/ftests/site/local_site.py	2009-11-16 09:31:06 UTC (rev 105687)
@@ -21,6 +21,14 @@
   >>> verifyObject(IEnergyManager, manager)
   True
 
+  >>> from grokcore.component.interfaces import IContext
+  >>> IContext.providedBy(manager)
+  True
+
+  >>> from zope.annotation.interfaces import IAttributeAnnotatable
+  >>> IAttributeAnnotatable.providedBy(manager)
+  True
+
 """
 
 from zope.interface import Interface
@@ -53,3 +61,5 @@
 
     grok.local_utility(EnergyManager, IEnergyManager)
 
+
+



More information about the checkins mailing list