Changeset 3102

Show
Ignore:
Timestamp:
12/01/06 22:49:40 (17 years ago)
Author:
jerome
Message:

Now pkturnkey ensures print queues are rerouted through PyKota.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pkturnkey

    r2877 r3102  
    165165        """Creates all printers in PyKota's database.""" 
    166166        if printers : 
    167             needswarning = [p[0] for p in printers if p[1].find("cupspykota") == -1] 
    168167            args = open("/tmp/pkprinters.args", "w") 
    169             args.write('--add\n--skipexisting\n--description\n"printer created from pkturnkey"\n') 
     168            args.write('--add\n--cups\n--skipexisting\n--description\n"printer created from pkturnkey"\n') 
    170169            args.write("%s\n" % "\n".join(['"%s"' % p[0] for p in printers])) 
    171170            args.close() 
    172171            self.runCommand("pkprinters --arguments /tmp/pkprinters.args", dryrun) 
    173             for p in needswarning : 
    174                 self.printInfo(_("Printer %s is not managed by PyKota yet. Please modify printers.conf and restart CUPS.") % p, "warn") 
    175172         
    176173    def createUsers(self, users, printers, dryrun=0) :