Feature objects represent FEATURE or INCREMENT lines in the license
file.
|
|
__init__(self,
line=None,
line_num=0)
x.__init__(...) initializes x; see help(type(x)) for signature |
|
|
|
|
_elemkey(self)
Return the unique identifier for this line, used for recognizing
duplicate lines. |
|
|
|
|
short(self)
Return short string representation (no signatures) |
|
|
|
|
|
|
|
matches(self,
feat)
Does the given feature match this one? This is used for assigning
RSA signatures to licenses. |
|
|
|
|
alt_matches(self,
feat)
Does the given feature match this one? This is used for assigning
RSA signatures to licenses. |
|
|
|
|
tokens_str(self)
Return the standard string representation of the token count. |
|
|
|
|
expiration_str(self)
Return the standard string representation of the expiration date. |
|
|
|
|
issued_str(self)
Return the standard string representation of the issued date. |
|
|
|
|
start_str(self)
Return the standard string representation of the start date. |
|
|
|
|
is_nodelocked(self)
Returns true if this license can be used on any host. |
|
|
|
|
is_counted(self)
Returns true if only a fixed number of tokens are provided. |
|
|
|
|
is_permanent(self)
Returns true if this license has no expiration date or if it appears
to have been issued as a 10-year license. |
|
|
|
|
is_signed(self)
Does this license line have a signature? |
|
|
|
|
signature(self)
Return a string representing the signatures for this license line. |
|
|
|
|
|
|
|
supersedes(self,
feat)
Does this FEATURE/INCREMENT line supersede the given line? |
|
|
|
|
sort_index(self)
Get the "sort" field for this line, as an integer. |
|
|
|
|
add_signature(self,
signature)
Add the given vendor_info signature to this line. |
|
|
|
|
set_sort_index(self,
sort_index)
Set the "sort" field for this line to the specified value. |
|
|
|
|
_parse_line(self,
line)
Initialize this object using the information from the given FEATURE
or INCREMENT line. |
|
|
|
Inherited from LicenseLine:
__str__,
is_expired,
string
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__subclasshook__
|