Commits

bbangert  committed 7d202d1

[svn] Added len function for SQLAlchemyLazy

  • Participants
  • Parent commits baa608b

Comments (0)

Files changed (1)

File webhelpers/pagination/orm.py

         return self(limit=limit, offset=offset).execute()
     
     def __len__(self):
-        pass
+        s = self()
+        return self.fn([func.count(1)], from_obj=[s]).execute()