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__(...)
x.__delattr__('name') <==> del x.name
 
__format__(...)
default object formatter
 
__getattribute__(...)
x.__getattribute__('name') <==> x.name
 
__hash__(x)
hash(x)
a new object with type S, a subtype of T
__new__(T, S, ...)
 
__reduce__(...)
helper for pickle
 
__reduce_ex__(...)
helper for pickle
 
__repr__(x)
repr(x)
 
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
int
__sizeof__()
size of object in memory, in bytes
 
__subclasshook__(...)
Abstract classes can override this to customize issubclass().
Properties [hide private]
    Inherited from object
  __class__
the object's 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__