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
 
__hash__(self)
hash(x)
source code

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

    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
Properties [hide private]
  fuzzy
  msgid_with_context

Inherited from object: __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.

``linenum``
    integer, the line number of the entry

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__

__hash__(self)
(Hashing function)

source code 

hash(x)

Overrides: object.__hash__
(inherited documentation)

Property Details [hide private]

fuzzy

Get Method:
unreachable.fuzzy(self)

msgid_with_context

Get Method:
unreachable.msgid_with_context(self)