Show
Ignore:
Timestamp:
02/04/04 14:24:41 (20 years ago)
Author:
jalet
Message:

pkprinters can now remove printers from printers groups.

Files:
1 modified

Legend:

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

    r1330 r1332  
    2222# 
    2323# $Log$ 
     24# Revision 1.36  2004/02/04 13:24:41  jalet 
     25# pkprinters can now remove printers from printers groups. 
     26# 
    2427# Revision 1.35  2004/02/04 11:17:00  jalet 
    2528# pkprinters command line tool added. 
     
    353356            self.doModify("INSERT INTO printergroupsmembers (groupid, printerid) VALUES (%s, %s)" % (self.doQuote(pgroup.ident), self.doQuote(printer.ident))) 
    354357         
     358    def removePrinterFromGroup(self, pgroup, printer) : 
     359        """Removes a printer from a printer group.""" 
     360        self.doModify("DELETE FROM printergroupsmembers WHERE groupid=%s AND printerid=%s" % (self.doQuote(pgroup.ident), self.doQuote(printer.ident))) 
     361         
    355362    def retrieveHistory(self, user=None, printer=None, datelimit=None, limit=100) :     
    356363        """Retrieves all print jobs for user on printer (or all) before date, limited to first 100 results."""