summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
75d4446)
git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@920
e071eeec-0327-468d-9b6a-
08194a12b294
)
except ldap.NO_SUCH_OBJECT:
return 0
)
except ldap.NO_SUCH_OBJECT:
return 0
+
+ number = len(vals)
+
+ # apply limit and offset
+ number = max(0, number - self.low_mark)
+ if self.high_mark is not None:
+ number = min(number, self.high_mark - self.low_mark)
+
+ return number
def get_compiler(self, using=None, connection=None):
return Compiler(self, ldapdb.connection, using)
def get_compiler(self, using=None, connection=None):
return Compiler(self, ldapdb.connection, using)