[Checkins] SVN: zc.async/trunk/s internal release (after another mini-non-svn-release, so that is why it jumps from a2 to a4)

Gary Poster gary at zope.com
Thu Jun 26 10:49:12 EDT 2008


Log message for revision 87803:
  internal release (after another mini-non-svn-release, so that is why it jumps from a2 to a4)

Changed:
  U   zc.async/trunk/setup.py
  U   zc.async/trunk/src/zc/async/ftesting.py
  U   zc.async/trunk/src/zc/async/ftesting.txt

-=-
Modified: zc.async/trunk/setup.py
===================================================================
--- zc.async/trunk/setup.py	2008-06-26 14:21:09 UTC (rev 87802)
+++ zc.async/trunk/setup.py	2008-06-26 14:49:11 UTC (rev 87803)
@@ -71,7 +71,7 @@
 
 setup(
     name='zc.async',
-    version='1.3a2',
+    version='1.3a4',
     packages=find_packages('src'),
     package_dir={'':'src'},
     zip_safe=False,

Modified: zc.async/trunk/src/zc/async/ftesting.py
===================================================================
--- zc.async/trunk/src/zc/async/ftesting.py	2008-06-26 14:21:09 UTC (rev 87802)
+++ zc.async/trunk/src/zc/async/ftesting.py	2008-06-26 14:49:11 UTC (rev 87803)
@@ -17,7 +17,7 @@
     """Set up zc.async, as is needed for Zope 3 functional tests.
     """
     if connection is None:
-        connection = sys._getframe(1).f_locals['getRootObject']()._p_jar
+        connection = sys._getframe(1).f_globals['getRootFolder']()._p_jar
     db = connection.db()
     zope.component.provideHandler(agent_installer)
     event = zc.async.interfaces.DatabaseOpened(db)

Modified: zc.async/trunk/src/zc/async/ftesting.txt
===================================================================
--- zc.async/trunk/src/zc/async/ftesting.txt	2008-06-26 14:21:09 UTC (rev 87802)
+++ zc.async/trunk/src/zc/async/ftesting.txt	2008-06-26 14:49:11 UTC (rev 87803)
@@ -53,7 +53,7 @@
 database connection.
 
 So, here's some set up.  We create a database and make our stub
-``getRootObject`` function.
+``getRootFolder`` function in the globals.
 
     >>> import transaction
     >>> import BTrees
@@ -66,9 +66,10 @@
     >>> root = conn.root()
     >>> PseudoZopeRoot = root['Application'] = BTrees.family32.OO.BTree()
     >>> transaction.commit()
-    >>> def getRootObject():
+    >>> def _getRootObject():
     ...     return PseudoZopeRoot
     ...
+    >>> globals()['getRootFolder'] = _getRootObject
 
 Notice we are using a real FileStorage, and not a DemoStorage, as is usually
 used in ftests. The fact that DemoStorage does not have MVCC can sometimes lead
@@ -141,3 +142,4 @@
     >>> storage.cleanup()
 
     >>> del storage # we just do this to not confuse our own tearDown code.
+    >>> del globals()['getRootFolder'] # clean up globals



More information about the Checkins mailing list