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

Class POEntry

source code

object --+    
         |    
_BaseEntry --+
             |
            POEntry

Represents a po file entry.

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
 
__cmp__(self, other)
Called by comparison operations if rich comparison is not defined.
source code
 
__gt__(self, other) source code
 
__lt__(self, other) source code
 
__ge__(self, other) source code
 
__le__(self, other) source code
 
__eq__(self, other) source code
 
__ne__(self, other) source code
 
translated(self)
Returns ``True`` if the entry has been translated or ``False`` otherwise.
source code
 
merge(self, other)
Merge the current entry with the given pot entry.
source code
    Inherited from _BaseEntry
 
__str__(self)
Returns the string representation of the entry.
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:

``comment``
    string, the entry comment.

``tcomment``
    string, the entry translator comment.

``occurrences``
    list, the entry occurrences.

``flags``
    list, the entry flags.

``previous_msgctxt``
    string, the entry previous context.

``previous_msgid``
    string, the entry previous msgid.

``previous_msgid_plural``
    string, the entry previous msgid_plural.

Overrides: object.__init__

__unicode__(self, wrapwidth=78)

source code 

Returns the unicode representation of the entry.

Overrides: _BaseEntry.__unicode__

__eq__(self, other)
(Equality operator)

source code 
Overrides: _BaseEntry.__eq__