]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
made echo param more doc-friendly
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 25 Sep 2006 16:29:51 +0000 (16:29 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 25 Sep 2006 16:29:51 +0000 (16:29 +0000)
lib/sqlalchemy/orm/session.py

index f1983723f34c38f7dbc61afd2c53b092690444ed..566b086c5e37e5c8032b19b3e2857249c2cc7b84 100644 (file)
@@ -79,12 +79,11 @@ class Session(object):
             self.hash_key = hash_key
         _sessions[self.hash_key] = self
 
-    class _echo_uow(object):
-        def __get__(self, obj, owner):
-            return obj.uow.echo
-        def __set__(self, obj, value):
-            obj.uow.echo = value
-    echo_uow = _echo_uow()
+    def _get_echo_uow(self):
+        return self.uow.echo
+    def _set_echo_uow(self, value):
+        self.uow.echo = value
+    echo_uow = property(_get_echo_uow,_set_echo_uow)
     
     def create_transaction(self, **kwargs):
         """returns a new SessionTransaction corresponding to an existing or new transaction.