Changeset 1806 for pykota/trunk/pykota/storages/ldapstorage.py
- Timestamp:
- 10/12/04 10:58:53 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/ldapstorage.py
r1790 r1806 22 22 # 23 23 # $Log$ 24 # Revision 1.84 2004/10/12 08:58:53 jalet 25 # Now warnpykota only warns users who have already printed, to not confuse 26 # users who have just opened their account. 27 # 24 28 # Revision 1.83 2004/10/07 21:14:28 jalet 25 29 # Hopefully final fix for data encoding to and from the database … … 522 526 groupnames = [record[1]["pykotaGroupName"][0] for record in result] 523 527 return groupnames 528 529 def getUserNbJobsFromHistory(self, user) : 530 """Returns the number of jobs the user has in history.""" 531 result = self.doSearch("(&(pykotaUserName=%s)(objectClass=pykotaJob))" % user.Name, None, base=self.info["jobbase"]) 532 return len(result) 524 533 525 534 def getUserFromBackend(self, username) :