[Checkins] SVN: zc.relationship/trunk/src/zc/relationship/ temporarily revert revision 72392 to make a Zope 3.3-compatible branch

Gary Poster gary at zope.com
Tue Feb 6 13:55:33 EST 2007


Log message for revision 72402:
  temporarily revert revision 72392 to make a Zope 3.3-compatible branch

Changed:
  U   zc.relationship/trunk/src/zc/relationship/README.txt
  U   zc.relationship/trunk/src/zc/relationship/index.py

-=-
Modified: zc.relationship/trunk/src/zc/relationship/README.txt
===================================================================
--- zc.relationship/trunk/src/zc/relationship/README.txt	2007-02-06 18:28:05 UTC (rev 72401)
+++ zc.relationship/trunk/src/zc/relationship/README.txt	2007-02-06 18:55:32 UTC (rev 72402)
@@ -504,7 +504,7 @@
 
     >>> res = ix.findRelationshipTokenSet(q({'subjects': people['Fred']}))
     >>> res # doctest: +ELLIPSIS
-    <BTrees.IFBTree.IFTreeSet object at ...>
+    <BTrees._IFBTree.IFTreeSet object at ...>
     >>> [intids.getObject(t) for t in res]
     [<(<Person 'Fred'>,) has the role of (<Role 'Project Manager'>,)>]
 
@@ -519,7 +519,7 @@
 
     >>> res = ix.findValueTokenSet(list(res)[0], 'subjects')
     >>> res # doctest: +ELLIPSIS
-    <BTrees.IFBTree.IFTreeSet object at ...>
+    <BTrees._IFBTree.IFTreeSet object at ...>
     >>> [load(t, ix, {}) for t in res]
     [<Person 'Fred'>]
 
@@ -553,7 +553,7 @@
     ...     q({'reltype': 'has the role of'})})
     ... doctest: +ELLIPSIS
     >>> res # doctest: +ELLIPSIS
-    <BTrees.IFBTree.IFTreeSet object at ...>
+    <BTrees._IFBTree.IFTreeSet object at ...>
     >>> [intids.getObject(t) for t in res]
     [<(<Person 'Fred'>,) has the role of (<Role 'Project Manager'>,)>]
 

Modified: zc.relationship/trunk/src/zc/relationship/index.py
===================================================================
--- zc.relationship/trunk/src/zc/relationship/index.py	2007-02-06 18:28:05 UTC (rev 72401)
+++ zc.relationship/trunk/src/zc/relationship/index.py	2007-02-06 18:55:32 UTC (rev 72402)
@@ -1,5 +1,4 @@
 import re
-import types
 
 import persistent
 import persistent.interfaces
@@ -83,13 +82,10 @@
     res = {'multiunion': None}
     for nm in dir(module):
         if not nm.startswith('_') and not nm.endswith('Iterator'):
-            value = getattr(module, nm)
-            if isinstance(value, types.ModuleType):
-                continue
             if re.match('[A-Z][A-Z]', nm):
-                res[nm[2:]] = value
+                res[nm[2:]] = getattr(module, nm)
             else:
-                res[nm] = value
+                res[nm] = getattr(module, nm)
     return res
 
 class Index(persistent.Persistent, zope.app.container.contained.Contained):



More information about the Checkins mailing list