Package horizons :: Package ext :: Module polib :: Class _BaseEntry
[hide private]
[frames] | no frames]

Class _BaseEntry

source code

object --+
         |
        _BaseEntry
Known Subclasses:

Base class for :class:`~polib.POEntry` and :class:`~polib.MOEntry` classes. This class should **not** be instanciated directly.

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
Constructor, accepts the following keyword arguments:
source code
 
__unicode__(self, wrapwidth=78)
Returns the unicode representation of the entry.
source code
 
__str__(self)
Returns the string representation of the entry.
source code
 
__eq__(self, other) source code
 
_str_field(self, fieldname, delflag, plural_index, field, wrapwidth=78) source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 

Constructor, accepts the following keyword arguments:

``msgid``
    string, the entry msgid.

``msgstr``
    string, the entry msgstr.

``msgid_plural``
    string, the entry msgid_plural.

``msgstr_plural``
    list, the entry msgstr_plural lines.

``msgctxt``
    string, the entry context (msgctxt).

``obsolete``
    bool, whether the entry is "obsolete" or not.

``encoding``
    string, the encoding to use, defaults to ``default_encoding``
    global variable (optional).

Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 

Returns the string representation of the entry.

Overrides: object.__str__