summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/hybrid.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-01-18 17:13:36 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2011-01-18 17:13:36 -0500
commit4a357af1aec3c96811663e0d3fb493707e52d70e (patch)
treeb86e8dfb776dcf061d13bc07ea7d0de512452b45 /lib/sqlalchemy/ext/hybrid.py
parentb3dd50a8dac9f7660b7f497f444e6175fdf85713 (diff)
downloadsqlalchemy-4a357af1aec3c96811663e0d3fb493707e52d70e.tar.gz
- Session.connection(), Session.execute() accept 'bind',
to allow execute/connection operations to participate in the open transaction of an engine explicitly. [ticket:1996] - fix up the docs for connection, execute, which were awful. - correct usage strings in hybrid
Diffstat (limited to 'lib/sqlalchemy/ext/hybrid.py')
-rw-r--r--lib/sqlalchemy/ext/hybrid.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/ext/hybrid.py b/lib/sqlalchemy/ext/hybrid.py
index 5c747400d..56abdabd8 100644
--- a/lib/sqlalchemy/ext/hybrid.py
+++ b/lib/sqlalchemy/ext/hybrid.py
@@ -310,7 +310,7 @@ class hybrid_method(object):
def value(self, x, y):
return self._value + x + y
- @hybrid_property.expression
+ @value.expression
def value(self, x, y):
return func.some_function(self._value, x, y)
@@ -348,7 +348,7 @@ class hybrid_property(object):
def value(self):
return self._value
- @hybrid_property.setter
+ @value.setter
def value(self, value):
self._value = value