Changeset 1765 for pykota/trunk

Show
Ignore:
Timestamp:
10/03/04 21:57:57 (20 years ago)
Author:
jalet
Message:

Dump of payments should work with LDAP backend now.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storages/ldapstorage.py

    r1764 r1765  
    2222# 
    2323# $Log$ 
     24# Revision 1.80  2004/10/03 19:57:57  jalet 
     25# Dump of payments should work with LDAP backend now. 
     26# 
    2427# Revision 1.79  2004/10/03 19:52:59  jalet 
    2528# More work done on LDAP and dumpykota 
     
    13221325    def extractPayments(self) : 
    13231326        """Extracts all payment records.""" 
    1324         pass 
     1327        entries = [u for u in [self.getUser(name) for name in self.getAllUsersNames()] if u.Exists] 
     1328        if entries : 
     1329            result = [ ("pykotaUserName", "date", "amount") ] 
     1330            for entry in entries : 
     1331                for (date, amount) in entry.Payments : 
     1332                    result.append((entry.Name, date, amount)) 
     1333            return result         
    13251334         
    13261335    def extractUpquotas(self) :