Commits

Anonymous committed 7d202d1

[svn] Added len function for SQLAlchemyLazy

Comments (0)

Files changed (1)

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()