[Checkins] SVN: mongopersist/trunk/ Make sure Mongo Containers implement IContainer. Get ready for release.

Stephan Richter srichter at gmail.com
Thu Dec 22 14:07:19 UTC 2011


Log message for revision 123854:
  Make sure Mongo Containers implement IContainer. Get ready for release.

Changed:
  U   mongopersist/trunk/CHANGES.txt
  U   mongopersist/trunk/setup.py
  U   mongopersist/trunk/src/mongopersist/zope/container.py

-=-
Modified: mongopersist/trunk/CHANGES.txt
===================================================================
--- mongopersist/trunk/CHANGES.txt	2011-12-21 11:45:10 UTC (rev 123853)
+++ mongopersist/trunk/CHANGES.txt	2011-12-22 14:07:18 UTC (rev 123854)
@@ -2,10 +2,11 @@
 CHANGES
 =======
 
-0.5.1 (unreleased)
+0.5.1 (2011-12-22)
 ------------------
 
-- ...
+- Bug: The ``MongoContainer`` class did not implement the ``IContainer``
+  interface.
 
 0.5.0 (2011-11-04)
 ------------------

Modified: mongopersist/trunk/setup.py
===================================================================
--- mongopersist/trunk/setup.py	2011-12-21 11:45:10 UTC (rev 123853)
+++ mongopersist/trunk/setup.py	2011-12-22 14:07:18 UTC (rev 123854)
@@ -9,7 +9,7 @@
 
 setup (
     name='mongopersist',
-    version='0.5.1dev',
+    version='0.5.1',
     author = "Stephan Richter",
     author_email = "stephan.richter at gmail.com",
     description = "Mongo Persistence Backend",

Modified: mongopersist/trunk/src/mongopersist/zope/container.py
===================================================================
--- mongopersist/trunk/src/mongopersist/zope/container.py	2011-12-21 11:45:10 UTC (rev 123853)
+++ mongopersist/trunk/src/mongopersist/zope/container.py	2011-12-22 14:07:18 UTC (rev 123854)
@@ -18,6 +18,7 @@
 import zope.component
 from rwproperty import getproperty, setproperty
 from zope.container import contained, sample
+from zope.container.interfaces import IContainer
 
 from mongopersist import interfaces, serialize
 
@@ -82,9 +83,11 @@
         super(SimpleMongoContainer, self).__delitem__(key)
         self._p_changed = True
 
+
 class MongoContainer(contained.Contained,
                      persistent.Persistent,
                      UserDict.DictMixin):
+    zope.interface.implements(IContainer)
     _m_database = None
     _m_collection = None
     _m_mapping_key = 'key'



More information about the checkins mailing list