Show
Ignore:
Timestamp:
12/21/04 15:45:31 (19 years ago)
Author:
jalet
Message:

Prepared dumpykota to accept the new --filter command line option. Some
additionnal work needs to be done in the backends though.

Files:
1 modified

Legend:

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

    r1969 r1990  
    2222# 
    2323# $Log$ 
     24# Revision 1.90  2004/12/21 14:45:31  jalet 
     25# Prepared dumpykota to accept the new --filter command line option. Some 
     26# additionnal work needs to be done in the backends though. 
     27# 
    2428# Revision 1.89  2004/12/02 22:27:11  jalet 
    2529# Integrated and extended Stefan Wold's patch to store print quota entries 
     
    13961400        self.doDelete(printer.ident)     
    13971401         
    1398     def extractPrinters(self) : 
     1402    def extractPrinters(self, extractonly={}) : 
    13991403        """Extracts all printer records.""" 
    14001404        entries = [p for p in [self.getPrinter(name) for name in self.getAllPrintersNames()] if p.Exists] 
     
    14051409            return result  
    14061410         
    1407     def extractUsers(self) : 
     1411    def extractUsers(self, extractonly={}) : 
    14081412        """Extracts all user records.""" 
    14091413        entries = [u for u in [self.getUser(name) for name in self.getAllUsersNames()] if u.Exists] 
     
    14141418            return result  
    14151419         
    1416     def extractGroups(self) : 
     1420    def extractGroups(self, extractonly={}) : 
    14171421        """Extracts all group records.""" 
    14181422        entries = [g for g in [self.getGroup(name) for name in self.getAllGroupsNames()] if g.Exists] 
     
    14231427            return result  
    14241428         
    1425     def extractPayments(self) : 
     1429    def extractPayments(self, extractonly={}) : 
    14261430        """Extracts all payment records.""" 
    14271431        entries = [u for u in [self.getUser(name) for name in self.getAllUsersNames()] if u.Exists] 
     
    14331437            return result         
    14341438         
    1435     def extractUpquotas(self) : 
     1439    def extractUpquotas(self, extractonly={}) : 
    14361440        """Extracts all userpquota records.""" 
    14371441        entries = [p for p in [self.getPrinter(name) for name in self.getAllPrintersNames()] if p.Exists] 
     
    14431447            return result 
    14441448         
    1445     def extractGpquotas(self) : 
     1449    def extractGpquotas(self, extractonly={}) : 
    14461450        """Extracts all grouppquota records.""" 
    14471451        entries = [p for p in [self.getPrinter(name) for name in self.getAllPrintersNames()] if p.Exists] 
     
    14531457            return result 
    14541458         
    1455     def extractUmembers(self) : 
     1459    def extractUmembers(self, extractonly={}) : 
    14561460        """Extracts all user groups members.""" 
    14571461        entries = [g for g in [self.getGroup(name) for name in self.getAllGroupsNames()] if g.Exists] 
     
    14631467            return result         
    14641468                 
    1465     def extractPmembers(self) : 
     1469    def extractPmembers(self, extractonly={}) : 
    14661470        """Extracts all printer groups members.""" 
    14671471        entries = [p for p in [self.getPrinter(name) for name in self.getAllPrintersNames()] if p.Exists] 
     
    14731477            return result         
    14741478         
    1475     def extractHistory(self) : 
     1479    def extractHistory(self, extractonly={}) : 
    14761480        """Extracts all jobhistory records.""" 
    14771481        entries = self.retrieveHistory(limit=None)