[Checkins] SVN: zc.blist/trunk/s removed unused code and the dependency on rwproperty

Thomas Lotze tl at gocept.com
Wed Mar 11 13:08:01 EDT 2009


Log message for revision 97907:
  removed unused code and the dependency on rwproperty

Changed:
  U   zc.blist/trunk/setup.py
  U   zc.blist/trunk/src/zc/blist/CHANGES.txt
  U   zc.blist/trunk/src/zc/blist/__init__.py

-=-
Modified: zc.blist/trunk/setup.py
===================================================================
--- zc.blist/trunk/setup.py	2009-03-11 16:33:31 UTC (rev 97906)
+++ zc.blist/trunk/setup.py	2009-03-11 17:08:01 UTC (rev 97907)
@@ -87,7 +87,6 @@
     license='ZPL',
     install_requires=[
         'ZODB3 >= 3.7',
-        'rwproperty',
         'setuptools',
         'zope.testing',
         ],

Modified: zc.blist/trunk/src/zc/blist/CHANGES.txt
===================================================================
--- zc.blist/trunk/src/zc/blist/CHANGES.txt	2009-03-11 16:33:31 UTC (rev 97906)
+++ zc.blist/trunk/src/zc/blist/CHANGES.txt	2009-03-11 17:08:01 UTC (rev 97907)
@@ -4,7 +4,9 @@
 - fixed: internal data structures were not stored correctly in the ZODB, so
   BLists loaded from a fresh DB connection would break.
 
+- removed unused code and the dependency on rwproperty
 
+
 1.0b1 (2008-10-06)
 ==================
 

Modified: zc.blist/trunk/src/zc/blist/__init__.py
===================================================================
--- zc.blist/trunk/src/zc/blist/__init__.py	2009-03-11 16:33:31 UTC (rev 97906)
+++ zc.blist/trunk/src/zc/blist/__init__.py	2009-03-11 17:08:01 UTC (rev 97907)
@@ -18,10 +18,9 @@
 import ZODB.POSException
 import persistent
 import persistent.list
-import BTrees.OOBTree
-import BTrees.Length
-import rwproperty
+import BTrees
 
+
 def method(f):
     def wrapper(self, *args, **kwargs):
         if self.shared:
@@ -29,16 +28,6 @@
         return f(self, *args, **kwargs)
     return wrapper
 
-class setproperty(rwproperty.rwproperty):
-
-    @staticmethod
-    def createProperty(func):
-        return property(None, method(func))
-
-    @staticmethod
-    def enhanceProperty(oldprop, func):
-        return property(oldprop.fget, method(func), oldprop.fdel)
-
 def supercall(name):
     sys._getframe(1).f_locals[name] = method(
         lambda self, *args, **kwargs: getattr(
@@ -68,9 +57,6 @@
     def __init__(self, *collections):
         self._collections = collections
 
-    def __iter__(self):
-        return iter(self._collections)
-
     def add(self, collection):
         if collection not in self:
             self._collections += (collection,)



More information about the Checkins mailing list