Changeset 3102 for pykota/trunk/bin
- Timestamp:
- 12/01/06 22:49:40 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pkturnkey
r2877 r3102 165 165 """Creates all printers in PyKota's database.""" 166 166 if printers : 167 needswarning = [p[0] for p in printers if p[1].find("cupspykota") == -1]168 167 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') 170 169 args.write("%s\n" % "\n".join(['"%s"' % p[0] for p in printers])) 171 170 args.close() 172 171 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")175 172 176 173 def createUsers(self, users, printers, dryrun=0) :