Home | Trees | Index | Help |
---|
Module cups :: Class Connection |
|
object
--+
|
Connection
cups.setServer
and cups.setUser
; otherwise the defaults will
be used. When a Connection object is instantiated it results in a call
to the libcups function httpConnectEncrypt().
Method Summary | |
---|---|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
None |
Cause printer to accept jobs. |
None |
Add or adjust a print queue. |
None |
Set a network default option. |
None |
Add a printer to a class. |
dict |
Get server settings. |
None |
Set server settings. |
None |
|
None |
Cancel a subscription. |
integer |
Create a subscription. |
None |
Delete a class. |
None |
Delete a printer. |
None |
Remove a printer from a class. |
None |
Removes a network default option. |
None |
Disable printer. |
None |
Enable printer. |
dict |
Return a dict, indexed by name, of objects representing classes. |
string or None |
Get the system default printer. |
dict |
Return a dict representing available destinations. |
dict |
Return a dict, indexed by device URI, of dicts representing devices, indexed by attribute. |
dict |
Fetches the job document and stores it in a temporary file. |
None |
Fetch a CUPS server resource to a local file. |
dict |
Fetch a list of jobs. |
list |
Get notifications for subscribed events. |
string |
Fetch a printer's PPD. |
dict |
Return a dict, indexed by PPD name, of dicts representing PPDs, indexed by attribute. |
dict |
Fetch the attributes for a printer, specified either by name or by uri but not both. |
dict |
Return a dict, indexed by name, of dicts representing queues, indexed by attribute. |
string |
Fetches the named PPD and stores it in a temporary file. |
integer list |
Get subscriptions. |
job ID |
Print a test page. |
None |
This is for uploading new configuration files for the CUPS server. |
Cause printer to reject jobs. | |
None |
Renew a subscription. |
None |
Restart a job. |
None |
Set the system default printer. |
None |
Specifies when a job should be printed. |
None |
Set the device URI for a printer. |
None |
Set the printer's error policy. |
None |
Set the human-readable information about a printer. |
None |
Specifies job sheets for a printer. |
None |
Set the human-readable printer location |
None |
Set the printer's operation policy. |
None |
Set whether a printer is shared with other people. |
None |
Set the list of users allowed to use a printer. |
None |
Set the list of users denied the use of a printer. |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Method Details |
---|
__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
|
acceptJobs(name)Cause printer to accept jobs.
|
addPrinter(name)Add or adjust a print queue. Several parameters can select which PPD to use (filename, ppdname, and ppd) but only one may be given.
|
addPrinterOptionDefault(name, option, value)Set a network default option. Jobs submitted to the named queue will have the job option added if it is not already present in the job. This works with CUPS servers of at least version 1.2.
|
addPrinterToClass(name, class)Add a printer to a class. If the class does not yet exist, it is created.
|
adminGetServerSettings()Get server settings.
|
adminSetServerSettings(settings)Set server settings.
|
cancelJob(jobid)
|
cancelSubscription(id)Cancel a subscription.
|
createSubscription(uri)Create a subscription.
|
deleteClass(class)Delete a class.
|
deletePrinter(name)Delete a printer.
|
deletePrinterFromClass(name, class)Remove a printer from a class. If the class would be left empty, it is removed.
|
deletePrinterOptionDefault(name, option)Removes a network default option. SeeaddPrinterOptionDefault .
|
disablePrinter(name)Disable printer. This prevents the printer from processing its job queue.
|
enablePrinter(name)Enable printer. This allows the printer to process its job queue.
|
getClasses()
|
getDefault()Get the system default printer.
|
getDests()
|
getDevices()
|
getDocument(printer_uri, job_id, document_number)Fetches the job document and stores it in a temporary file.
|
getFile(resource, filename)Fetch a CUPS server resource to a local file. This is for obtaining CUPS server configuration files and log files.
|
getJobs(which_jobs='not-completed', my_jobs=False)Fetch a list of jobs.
|
getNotifications(subscription_ids)Get notifications for subscribed events.
|
getPPD(name)Fetch a printer's PPD.
|
getPPDs()
|
getPrinterAttributes()Fetch the attributes for a printer, specified either by name or by uri but not both.
|
getPrinters()
|
getServerPPD(ppd_name)Fetches the named PPD and stores it in a temporary file.
|
getSubscriptions(uri)Get subscriptions.
|
printTestPage(name)Print a test page.
|
putFile(resource, filename)This is for uploading new configuration files for the CUPS server. Note:adminSetServerSettings is a way of
adjusting server settings without needing to parse the configuration
file.
|
rejectJobs(name)Cause printer to reject jobs.
|
renewSubscription(id)Renew a subscription.
|
restartJob(jobid)Restart a job.
|
setDefault(name)Set the system default printer. Note that this can be over-ridden on a per-user basis using the lpoptions command.
|
setJobHoldUntil(jobid, job_hold_until)Specifies when a job should be printed.
|
setPrinterDevice(name, device_uri)Set the device URI for a printer.
|
setPrinterErrorPolicy(name, policy)Set the printer's error policy.
|
setPrinterInfo(name, info)Set the human-readable information about a printer.
|
setPrinterJobSheets(name, start, end)Specifies job sheets for a printer.
|
setPrinterLocation(name, location)Set the human-readable printer location
|
setPrinterOpPolicy(name, policy)Set the printer's operation policy.
|
setPrinterShared(name, shared)Set whether a printer is shared with other people. This works with CUPS servers of at least version 1.2, by setting the printer-is-shared printer attribute.
|
setPrinterUsersAllowed(name, allowed)Set the list of users allowed to use a printer. This works with CUPS server of at least version 1.2, by setting the requesting-user-name-allowed printer attribute.
|
setPrinterUsersDenied(name, denied)Set the list of users denied the use of a printer. This works with CUPS servers of at least version 1.2, by setting the requesting-user-name-denied printer attribute.
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sat Feb 2 06:23:37 2008 | http://epydoc.sf.net |