type Message
object --+
|
Message_base --+
|
object --+ |
| |
monitored.Monitored --+
|
Message
The default class for catalog entries.
The interface is inherited from Message_base, but when used through this class it
behaves in a special way: the modifications are monitored, such
that no new attributes can be created by assignment and all assignments
are checked for value types. If you don't need to modify the messages
after creation, consider using the faster MessageUnsafe class.
The loosely defined types in the base class (those with a star) are
resolved into one of Mon*
types: Monlist, Monset, Monpair. They
implement some, but not all, of the functionality of their standard
counterparts.
|
__init__(self,
init={ } )
Initializes the message elements by the values in the dictionary. |
|
|
Inherited from Message_base :
__eq__ ,
__getattr__ ,
__ne__ ,
__setattr__ ,
clear ,
get ,
set ,
set_fmt ,
set_inv ,
set_key ,
state ,
to_lines ,
to_string ,
unfuzzy
Inherited from monitored.Monitored :
assert_spec_getattr ,
assert_spec_getitem ,
assert_spec_init ,
assert_spec_setattr ,
assert_spec_setitem ,
data
|
Inherited from Message_base :
active ,
auto_comment ,
flag ,
fmt ,
format ,
fuzzy ,
inv ,
key ,
key_previous ,
manual_comment ,
msgctxt ,
msgctxt_previous ,
msgid ,
msgid_plural ,
msgid_plural_previous ,
msgid_previous ,
msgstr ,
obsolete ,
refentry ,
refline ,
source ,
translated ,
trn ,
untranslated
|
__init__(self,
init={ } )
(Constructor)
|
|
Initializes the message elements by the values in the dictionary.
The dictionary keys are like the names of attributes in the interface,
and not all must be supplied. Those left out will be initialized to
appropriate null values.
The monitored sequences should be supplied as their ordinary
counterparts (e.g. a list in place of Monlist),
- Parameters:
init (dict) - dictionary of initial values
- Overrides:
Message_base.__init__
|