Changeset 1020

Show
Ignore:
Timestamp:
06/10/03 12:45:32 (21 years ago)
Author:
jalet
Message:

Not implemented methods now raise an exception when called.

Files:
1 modified

Legend:

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

    r1018 r1020  
    2121# 
    2222# $Log$ 
     23# Revision 1.4  2003/06/10 10:45:32  jalet 
     24# Not implemented methods now raise an exception when called. 
     25# 
    2326# Revision 1.3  2003/06/06 20:49:15  jalet 
    2427# Very latest schema. UNTESTED. 
     
    101104    def setPrinterPrices(self, printerid, perpage, perjob) : 
    102105        """Sets prices per job and per page for a given printer.""" 
    103         pass 
     106        raise PyKotaStorageError, "Not implemented !" 
    104107     
    105108    def getUserId(self, username) : 
     
    118121    def getJobHistoryId(self, jobid, userid, printerid) :         
    119122        """Returns the history line's id given a (jobid, userid, printerid).""" 
    120         pass 
     123        raise PyKotaStorageError, "Not implemented !" 
    121124             
    122125    def getPrinterUsers(self, printerid) :         
     
    151154    def getUserGroupsNames(self, userid) :         
    152155        """Returns the list of groups' names the user is a member of.""" 
    153         pass 
     156        raise PyKotaStorageError, "Not implemented !" 
    154157         
    155158    def addPrinter(self, printername) :         
    156159        """Adds a printer to the quota storage, returns its id.""" 
    157         pass 
     160        raise PyKotaStorageError, "Not implemented !" 
    158161         
    159162    def addUser(self, username) :         
    160163        """Adds a user to the quota storage, returns its id.""" 
    161         pass 
     164        raise PyKotaStorageError, "Not implemented !" 
    162165         
    163166    def addGroup(self, groupname) :         
    164167        """Adds a group to the quota storage, returns its id.""" 
    165         pass 
     168        raise PyKotaStorageError, "Not implemented !" 
    166169         
    167170    def addUserPQuota(self, username, printerid) : 
    168171        """Initializes a user print quota on a printer, adds the user to the quota storage if needed.""" 
    169         pass 
     172        raise PyKotaStorageError, "Not implemented !" 
    170173         
    171174    def addGroupPQuota(self, groupname, printerid) : 
    172175        """Initializes a group print quota on a printer, adds the group to the quota storage if needed.""" 
    173         pass 
     176        raise PyKotaStorageError, "Not implemented !" 
    174177         
    175178    def increaseUserBalance(self, userid, amount) :     
    176179        """Increases (or decreases) an user's account balance by a given amount.""" 
    177         pass 
     180        raise PyKotaStorageError, "Not implemented !" 
    178181         
    179182    def getUserBalance(self, userquotaid) :     
     
    236239    def setUserBalance(self, userid, balance) :     
    237240        """Sets the account balance for a given user to a fixed value.""" 
    238         pass 
     241        raise PyKotaStorageError, "Not implemented !" 
    239242         
    240243    def limitUserBy(self, userid, limitby) :     
    241244        """Limits a given user based either on print quota or on account balance.""" 
    242         pass 
     245        raise PyKotaStorageError, "Not implemented !" 
    243246         
    244247    def limitGroupBy(self, groupid, limitby) :     
    245248        """Limits a given group based either on print quota or on sum of its users' account balances.""" 
    246         pass 
     249        raise PyKotaStorageError, "Not implemented !" 
    247250         
    248251    def setUserPQuota(self, userid, printerid, softlimit, hardlimit) : 
    249252        """Sets soft and hard limits for a user quota on a specific printer given (userid, printerid).""" 
    250         pass 
     253        raise PyKotaStorageError, "Not implemented !" 
    251254         
    252255    def setGroupPQuota(self, groupid, printerid, softlimit, hardlimit) : 
    253256        """Sets soft and hard limits for a group quota on a specific printer given (groupid, printerid).""" 
    254         pass 
     257        raise PyKotaStorageError, "Not implemented !" 
    255258         
    256259    def resetUserPQuota(self, userid, printerid) :     
    257260        """Resets the page counter to zero for a user on a printer. Life time page counter is kept unchanged.""" 
    258         pass 
     261        raise PyKotaStorageError, "Not implemented !" 
    259262         
    260263    def resetGroupPQuota(self, groupid, printerid) :     
    261264        """Resets the page counter to zero for a group on a printer. Life time page counter is kept unchanged.""" 
    262         pass 
     265        raise PyKotaStorageError, "Not implemented !" 
    263266         
    264267    def updateUserPQuota(self, userid, printerid, pagecount) : 
    265268        """Updates the used user Quota information given (userid, printerid) and a job size in pages.""" 
    266         pass 
     269        raise PyKotaStorageError, "Not implemented !" 
    267270         
    268271    def getUserPQuota(self, userquotaid, printerid) : 
     
    311314    def setUserDateLimit(self, userid, printerid, datelimit) : 
    312315        """Sets the limit date for a soft limit to become an hard one given (userid, printerid).""" 
    313         pass 
     316        raise PyKotaStorageError, "Not implemented !" 
    314317         
    315318    def setGroupDateLimit(self, groupid, printerid, datelimit) : 
    316319        """Sets the limit date for a soft limit to become an hard one given (groupid, printerid).""" 
    317         pass 
     320        raise PyKotaStorageError, "Not implemented !" 
    318321         
    319322    def addJobToHistory(self, jobid, userid, printerid, pagecounter, action) : 
    320323        """Adds a job to the history: (jobid, userid, printerid, last page counter taken from requester).""" 
    321         pass 
     324        raise PyKotaStorageError, "Not implemented !" 
    322325     
    323326    def updateJobSizeInHistory(self, historyid, jobsize) : 
    324327        """Updates a job size in the history given the history line's id.""" 
    325         pass 
     328        raise PyKotaStorageError, "Not implemented !" 
    326329     
    327330    def getPrinterPageCounter(self, printerid) : 
     
    334337    def addUserToGroup(self, userid, groupid) :     
    335338        """Adds an user to a group.""" 
    336         pass 
     339        raise PyKotaStorageError, "Not implemented !" 
    337340         
    338341    def deleteUser(self, userid) :     
    339342        """Completely deletes an user from the Quota Storage.""" 
    340         pass 
     343        raise PyKotaStorageError, "Not implemented !" 
    341344         
    342345    def deleteGroup(self, groupid) :     
    343346        """Completely deletes an user from the Quota Storage.""" 
    344         pass 
     347        raise PyKotaStorageError, "Not implemented !" 
    345348         
    346349    def computePrinterJobPrice(self, printerid, jobsize) :