Package pology :: Module ascript :: Class AscPoint

Class AscPoint

object --+
         |
        AscPoint

Representation of an ascription point.

Instance Methods
 
__init__(self, apoint=None)
Create an empty ascription point or a shallow copy of another.

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

Class Variables
  ATYPE_MOD = 'modified'
  ATYPE_REV = 'reviewed'
Instance Variables
datetime.datetime date
the date when the ascription was made
bool fuzz
whether the original message was fuzzy
MessageUnsafe msg
a stripped version of the original PO message as it appeared when the ascription was made, containing only extraction-invariant parts
bool obs
whether the original message was obsolete
int pos
the position of this ascription point within the ascription history (increasing from 1, 1 is the latest by date)
MessageUnsafe rmsg
the message in the ascription catalog from which msg was parsed
int slen
the length of the separator in ascription message (rmsg)
string tag
the review tag (from the set defined in ascription config)
string type
the ascription type (one of ATYPE_ constants)
string user
the user to whom the ascription was made
Properties

Inherited from object: __class__

Method Details

__init__(self, apoint=None)
(Constructor)

 

Create an empty ascription point or a shallow copy of another.

Parameters:
  • apoint (AscPoint) - an ascription point
Overrides: object.__init__