import orb


class SingleTransaction(object):
    """
    This context will automatically close connections to a given set of databases.
    If no databases are provided, then all databases in the system will be used.
    """
    def __init__(self, *databases):
        self._databases = databases or orb.system.databases()

    def __exit__(self, exc_type, error, traceback):
        for db in self._databases:
            db.disconnect()

@@ -318,16 +318,85 @@
 ases()%0A%0A
+    def __enter__(self):%0A        # nothing needed here%0A        pass%0A%0A
     def 

needing an __enter__ method