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

Type PPD

object --+
         |
        PPD


PPD file

A PPD file.
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
integer conflicts()
Return number of conflicts.
Attribute or None findAttr(name)
Return matching attribute, or None if not found.
Attribute or None findNextAttr(name)
Return next matching attribute, or None if not found.
Option or None findOption(name)
Return named option, or None if not found.
None localize()
Localize PPD 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__(...)
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)

Instance Variable Summary
Attribute list attributes: list of attributes
Constraint list constraints: list of constraints
Group list optionGroups: list of PPD option groups

Method Details

__init__(...)
(Constructor)

x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides:
__builtin__.object.__init__

__new__(T, S, ...)

T.__new__(S, ...) -> a new object with type S, a subtype of T
Returns:
a new object with type S, a subtype of T
Overrides:
__builtin__.object.__new__

conflicts()

Returns:
number of conflicts.
           (type=integer)

findAttr(name)

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

findNextAttr(name)

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

findOption(name)

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

localize()

Localize PPD to the current locale.
Returns:
None

markDefaults()

Set (mark) all options to their default choices.
Returns:
None

markOption(option, choice)

Set an option to a particular choice.
Parameters:
option - option keyword
           (type=string)
choice - option choice
           (type=string)
Returns:
number of conflicts
           (type=integer)

nondefaultsMarked()

Returns true if any non-default option choices are marked.
Returns:
boolean

writeFd(fd)

Write PPD file, with marked choices as defaults, to file descriptor.
Parameters:
fd - open file descriptor
           (type=integer)
Returns:
None

Instance Variable Details

attributes

list of attributes
Type:
Attribute list
Value:
<attribute 'attributes' of 'cups.PPD' objects>                         

constraints

list of constraints
Type:
Constraint list
Value:
<attribute 'constraints' of 'cups.PPD' objects>                        

optionGroups

list of PPD option groups
Type:
Group list
Value:
<attribute 'optionGroups' of 'cups.PPD' objects>                       

Generated by Epydoc 2.1 on Mon Oct 15 07:45:27 2007 http://epydoc.sf.net