Package prlsdkapi :: Class PrlConstsProvider
[hide private]
[frames] | no frames]

Class PrlConstsProvider

object --+
         |
        PrlConstsProvider

Provide acces to constants group

Instance Methods [hide private]
 
__init__(self, source, consts_prefix='', cmp_func=None, doc=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
__getattr__(self, name)
 
__getitem__(self, name)
 
get(self, name)
Returns constant value by name
 
get_name(self, value, no_err_if_notexists=True)
Returns constant name by value
 
__repr__(self)
repr(x)
 
get_list(self)
Returns list of constants name

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Variables [hide private]
  slots = ('consts_dict', 'prefix', 'sort_func')
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, source, consts_prefix='', cmp_func=None, doc=None)
(Constructor)

 

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

Overrides: object.__init__
(inherited documentation)

get(self, name)

 

Returns constant value by name

Parameters:
  • name - Constant name, it could be without prexif
Returns:
Constant value, depends on constant type.

get_name(self, value, no_err_if_notexists=True)

 

Returns constant name by value

Parameters:
  • value - Constant value
  • no_err_if_notexists - Shows if error should be raise for non exixting value
Returns:
string

__repr__(self)
(Representation operator)

 

repr(x)

Overrides: object.__repr__
(inherited documentation)