]> git.llucax.com Git - software/sercom-old.git/commitdiff
Bugfix. (SQLObject.selectBy no tiene un parametro limit)
authorLeandro Lucarella <llucax@gmail.com>
Thu, 24 Mar 2005 20:02:19 +0000 (20:02 +0000)
committerLeandro Lucarella <llucax@gmail.com>
Thu, 24 Mar 2005 20:02:19 +0000 (20:02 +0000)
src/sercom/sqlo.py

index aba430aab921c4a03ca0958dd04cb30b6c9f27e9..c81e066eed114cd7837716fdd0842c4974811707 100644 (file)
@@ -16,7 +16,7 @@ class BaseSQLObject(SQLObject):
     @classmethod
     def by(cls, **kw):
         try:
-            return cls.selectBy(limit=1, **kw)[0]
+            return cls.selectBy(**kw)[0]
         except IndexError:
             raise SQLObjectNotFound, "The object %s with columns %s does not exist" % (cls.__name__, kw)