Module cups :: Class PPD
[hide private]
[frames] | no frames]

Class PPD

object --+
         |
        PPD

PPD file

A PPD file.

Instance Methods [hide private]
 
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
a new object with type S, a subtype of T
__new__(T, S, ...)
integer
conflicts()
Returns: number of conflicts.
Attribute or None
findAttr(name)
Returns: matching attribute, or None if not found.
Attribute or None
findNextAttr(name)
Returns: next matching attribute, or None if not found.
Option or None
findOption(name)
Returns: named option, or None if not found.
None
localize()
Localize PPD to the current locale.
string or None
localizeIPPReason(reason, scheme)
Localize IPP reason to the current locale.
string or None
localizeMarkerName(name)
Localize marker name to the current locale.
None
markDefaults()
Set (mark) all options to their default choices.
integer
markOption(option, choice)
Set an option to a particular choice.
boolean
nondefaultsMarked()
Returns true if any non-default option choices are marked.
None
writeFd(fd)
Write PPD file, with marked choices as defaults, to file descriptor.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
Attribute list attributes
list of attributes
Constraint list constraints
list of constraints
Group list optionGroups
list of PPD option groups
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

conflicts()

 
Returns: integer
number of conflicts.

findAttr(name)

 
Parameters:
  • name (string) - attribute name
  • spec (string) - specifier string (optional)
Returns: Attribute or None
matching attribute, or None if not found.

findNextAttr(name)

 
Parameters:
  • name (string) - attribute name
  • spec (string) - specifier string (optional)
Returns: Attribute or None
next matching attribute, or None if not found.

findOption(name)

 
Parameters:
  • name (string) - option keyword
Returns: Option or None
named option, or None if not found.

markOption(option, choice)

 

Set an option to a particular choice.

Parameters:
  • option (string) - option keyword
  • choice (string) - option choice
Returns: integer
number of conflicts

writeFd(fd)

 

Write PPD file, with marked choices as defaults, to file descriptor.

Parameters:
  • fd (integer) - open file descriptor
Returns: None