1. lecstor
  2. sqlalchemy

Commits

Mike Bayer  committed ec7650b

plus add it to the scoping namespace

  • Participants
  • Parent commits 2fd686f
  • Branches default

Comments (0)

Files changed (1)

File lib/sqlalchemy/orm/scoping.py

View file
  • Ignore whitespace
             scope = kwargs.pop('scope', False)
             if scope is not None:
                 if self.registry.has():
-                    raise sa_exc.InvalidRequestError("Scoped session is already present; "
-                                                    "no new arguments may be specified.")
+                    raise sa_exc.InvalidRequestError(
+                            "Scoped session is already present; "
+                            "no new arguments may be specified.")
                 else:
                     sess = self.session_factory(**kwargs)
                     self.registry.set(sess)
         self.session_factory.configure(**kwargs)
 
     def query_property(self, query_cls=None):
-        """return a class property which produces a `Query` object against the
-        class when called.
+        """return a class property which produces a `Query` object 
+        against the class when called.
 
         e.g.::
 
     def get(self):
         return getattr(self.registry(), name)
     return property(get, set)
-for prop in ('bind', 'dirty', 'deleted', 'new', 'identity_map', 'is_active', 'autoflush'):
+for prop in ('bind', 'dirty', 'deleted', 'new', 'identity_map', 
+                'is_active', 'autoflush', 'no_autoflush'):
     setattr(ScopedSession, prop, makeprop(prop))
 
 def clslevel(name):