Commits

Anonymous committed a600040

Import sqlalchemy.orm alongside sqlalchemy to avoid errors on some workstations.

  • Participants
  • Parent commits 05c803d

Comments (0)

Files changed (2)

    none of these are available.
  - Don't allow extra positional args in constructor. The implementation does
    nothing with them, so it shouldn't allow them.
+ - Import ``sqlalchemy.orm`` as well as ``sqlalchemy``. User Sybiam reports an
+   error otherwise.
 
 * webhelpers.pylonslib.flash:
 

File webhelpers/paginate.py

 # import SQLAlchemy if available
 try:
     import sqlalchemy
+    import sqlalchemy.orm   # Some users report errors if this is not imported.
 except:
     sqlalchemy_available = False
 else: