Show
Ignore:
Timestamp:
04/16/07 18:52:23 (17 years ago)
Author:
jerome
Message:

Added --orderby command line switch to dumpykota.
Doesn't work yet with the LDAP backend, since sorting will have
to be done by PyKota's code instead of relying on the database
backend itself to do the dirty work.

Files:
1 modified

Legend:

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

    r3142 r3165  
    15741574        self.doDelete(code.ident) 
    15751575         
    1576     def extractPrinters(self, extractonly={}) : 
     1576    def extractPrinters(self, extractonly={}, ordering=[]) : 
    15771577        """Extracts all printer records.""" 
    15781578        pname = extractonly.get("printername") 
     
    15881588            return result  
    15891589         
    1590     def extractUsers(self, extractonly={}) : 
     1590    def extractUsers(self, extractonly={}, ordering=[]) : 
    15911591        """Extracts all user records.""" 
    15921592        uname = extractonly.get("username") 
     
    15981598            return result  
    15991599         
    1600     def extractBillingcodes(self, extractonly={}) : 
     1600    def extractBillingcodes(self, extractonly={}, ordering=[]) : 
    16011601        """Extracts all billing codes records.""" 
    16021602        billingcode = extractonly.get("billingcode") 
     
    16081608            return result  
    16091609         
    1610     def extractGroups(self, extractonly={}) : 
     1610    def extractGroups(self, extractonly={}, ordering=[]) : 
    16111611        """Extracts all group records.""" 
    16121612        gname = extractonly.get("groupname") 
     
    16181618            return result  
    16191619         
    1620     def extractPayments(self, extractonly={}) : 
     1620    def extractPayments(self, extractonly={}, ordering=[]) : 
    16211621        """Extracts all payment records.""" 
    16221622        startdate = extractonly.get("start") 
     
    16361636            return result         
    16371637         
    1638     def extractUpquotas(self, extractonly={}) : 
     1638    def extractUpquotas(self, extractonly={}, ordering=[]) : 
    16391639        """Extracts all userpquota records.""" 
    16401640        pname = extractonly.get("printername") 
     
    16481648            return result 
    16491649         
    1650     def extractGpquotas(self, extractonly={}) : 
     1650    def extractGpquotas(self, extractonly={}, ordering=[]) : 
    16511651        """Extracts all grouppquota records.""" 
    16521652        pname = extractonly.get("printername") 
     
    16601660            return result 
    16611661         
    1662     def extractUmembers(self, extractonly={}) : 
     1662    def extractUmembers(self, extractonly={}, ordering=[]) : 
    16631663        """Extracts all user groups members.""" 
    16641664        gname = extractonly.get("groupname") 
     
    16731673            return result         
    16741674                 
    1675     def extractPmembers(self, extractonly={}) : 
     1675    def extractPmembers(self, extractonly={}, ordering=[]) : 
    16761676        """Extracts all printer groups members.""" 
    16771677        pname = extractonly.get("printername") 
     
    16861686            return result         
    16871687         
    1688     def extractHistory(self, extractonly={}) : 
     1688    def extractHistory(self, extractonly={}, ordering=[]) : 
    16891689        """Extracts all jobhistory records.""" 
    16901690        uname = extractonly.get("username")