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

Job history added. Upgrade script neutralized for now !

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storage.py

    r873 r900  
    2121# 
    2222# $Log$ 
     23# Revision 1.11  2003/04/10 21:47:20  jalet 
     24# Job history added. Upgrade script neutralized for now ! 
     25# 
    2326# Revision 1.10  2003/03/29 13:45:27  jalet 
    2427# GPL paragraphs were incorrectly (from memory) copied into the sources. 
     
    7174        return self.message 
    7275    __str__ = __repr__ 
    73      
    74 class BaseStorage :     
    75     """Base class for all storages.""" 
    76     def getMatchingPrinters(self, printerpattern) : 
    77         """Returns the list of all printers tuples (name, pagecounter) which match a certain pattern for the printer name.""" 
    78         pass 
    79              
    80     def addPrinter(self, printername) :         
    81         """Adds a printer to the quota storage.""" 
    82         pass 
    83          
    84     def getPrinterUsers(self, printername) :         
    85         """Returns the list of usernames which uses a given printer.""" 
    86         pass 
    87          
    88     def getPrinterGroups(self, printername) :         
    89         """Returns the list of groups which uses a given printer.""" 
    90         pass 
    91          
    92     def getPrinterPageCounter(self, printername) : 
    93         """Returns the last page counter value for a printer given its name.""" 
    94         pass 
    95          
    96     def updatePrinterPageCounter(self, printername, username, pagecount) : 
    97         """Updates the last page counter information for a printer given its name, last username and pagecount.""" 
    98         pass 
    99          
    100     def addUserPQuota(self, username, printername) : 
    101         """Initializes a user print quota on a printer, adds the printer and the user to the quota storage if needed.""" 
    102         pass 
    103          
    104     def getUPIds(self, username, printername) :     
    105         """Returns a tuple (userid, printerid) given a username and a printername.""" 
    106         pass 
    107          
    108     def getUserPQuota(self, username, printername) : 
    109         """Returns the Print Quota information for a given (username, printername).""" 
    110         pass 
    111          
    112     def setUserPQuota(self, username, printername, softlimit, hardlimit) : 
    113         """Sets soft and hard limits for a user quota on a specific printer given (username, printername).""" 
    114         pass 
    115          
    116     def resetUserPQuota(self, username, printername) :     
    117         """Resets the page counter to zero. Life time page counter is kept unchanged.""" 
    118         pass 
    119          
    120     def setDateLimit(self, username, printername, datelimit) : 
    121         """Sets the limit date for a soft limit to become an hard one given (username, printername).""" 
    122         pass 
    123          
    124     def updateUserPQuota(self, username, printername, pagecount) : 
    125         """Updates the used user Quota information given (username, printername) and a job size in pages.""" 
    126         pass 
    127          
    128     def buyUserPQuota(self, username, printername, pagebought) : 
    129         """Buys pages for a given (username, printername).""" 
    130         pass 
    13176         
    13277def openConnection(config, asadmin=0) :