| Method Summary |
| |
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature |
| |
__new__(T,
S,
...)
T.__new__(S, ...) -> a new object with type S, a subtype of T |
| None |
acceptJobs(name)
Cause printer to accept jobs. |
| None |
addPrinter(name)
Add or adjust a print queue. |
| None |
addPrinterOptionDefault(name,
option,
value)
Set a network default option. |
| None |
addPrinterToClass(name,
class)
Add a printer to a class. |
| dict |
adminGetServerSettings()
Get server settings. |
| None |
adminSetServerSettings(settings)
Set server settings. |
| None |
authenticateJob(jobid,
auth_info)
|
| None |
cancelAllJobs(uri,
my_jobs,
purge_jobs)
|
| None |
cancelJob(jobid)
|
| None |
cancelSubscription(id)
Cancel a subscription. |
| integer |
createSubscription(uri)
Create a subscription. |
| None |
deleteClass(class)
Delete a class. |
| None |
deletePrinter(name)
Delete a printer. |
| None |
deletePrinterFromClass(name,
class)
Remove a printer from a class. |
| None |
deletePrinterOptionDefault(name,
option)
Removes a network default option. |
| None |
disablePrinter(name)
Disable printer. |
| None |
enablePrinter(name)
Enable printer. |
| dict |
getClasses()
Return a dict, indexed by name, of objects representing classes. |
| string or None |
getDefault()
Get the system default printer. |
| dict |
getDests()
Return a dict representing available destinations. |
| dict |
getDevices()
Return a dict, indexed by device URI, of dicts representing devices, indexed
by attribute. |
| dict |
getDocument(printer_uri,
job_id,
document_number)
Fetches the job document and stores it in a temporary file. |
| None |
getFile(resource,
filename,
fd,
file)
Fetch a CUPS server resource to a local file. |
| None |
getJobAttributes(jobid)
Fetch job attributes. |
| dict |
getJobs(which_jobs,
my_jobs)
Fetch a list of jobs. |
| list |
getNotifications(subscription_ids)
Get notifications for subscribed events. |
| string |
getPPD(name)
Fetch a printer's PPD. |
| dict |
getPPDs()
Return a dict, indexed by PPD name, of dicts representing PPDs, indexed by
attribute. |
| dict |
getPrinterAttributes()
Fetch the attributes for a printer, specified either by name or by uri
but not both. |
| dict |
getPrinters()
Return a dict, indexed by name, of dicts representing queues, indexed by
attribute. |
| string |
getServerPPD(ppd_name)
Fetches the named PPD and stores it in a temporary file. |
| integer list |
getSubscriptions(uri)
Get subscriptions. |
| job ID |
printTestPage(name)
Print a test page. |
| None |
putFile(resource,
filename)
This is for uploading new configuration files for the CUPS server. |
| |
rejectJobs(name)
Cause printer to reject jobs. |
| None |
renewSubscription(id)
Renew a subscription. |
| None |
restartJob(jobid)
Restart a job. |
| None |
setDefault(name)
Set the system default printer. |
| None |
setJobHoldUntil(jobid,
job_hold_until)
Specifies when a job should be printed. |
| None |
setPrinterDevice(name,
device_uri)
Set the device URI for a printer. |
| None |
setPrinterErrorPolicy(name,
policy)
Set the printer's error policy. |
| None |
setPrinterInfo(name,
info)
Set the human-readable information about a printer. |
| None |
setPrinterJobSheets(name,
start,
end)
Specifies job sheets for a printer. |
| None |
setPrinterLocation(name,
location)
Set the human-readable printer location |
| None |
setPrinterOpPolicy(name,
policy)
Set the printer's operation policy. |
| None |
setPrinterShared(name,
shared)
Set whether a printer is shared with other people. |
| None |
setPrinterUsersAllowed(name,
allowed)
Set the list of users allowed to use a printer. |
| None |
setPrinterUsersDenied(name,
denied)
Set the list of users denied the use of a printer. |
| Inherited from object |
| |
__delattr__(...)
x.__delattr__('name') <==> del x.name |
| |
__getattribute__(...)
x.__getattribute__('name') <==> x.name |
| |
__hash__(x)
x.__hash__() <==> hash(x) |
| |
__reduce__(...)
helper for pickle |
| |
__reduce_ex__(...)
helper for pickle |
| |
__repr__(x)
x.__repr__() <==> repr(x) |
| |
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value |
| |
__str__(x)
x.__str__() <==> str(x) |