Package schrodinger :: Package application :: Package licensing :: Module flexlm :: Class LicenseLine
[hide private]
[frames] | no frames]

Class LicenseLine

object --+
         |
        LicenseLine
Known Subclasses:

A LicenseLine object represents a single line of a FLEXlm license file. This is the base class for the Server, Vendor, Feature, and Package classes.

Instance Methods [hide private]
 
__init__(self, tag='', line=None, line_num=0)
x.__init__(...) initializes x; see help(type(x)) for signature
 
__str__(self)
str(x)
 
string(self)
 
short(self)
 
unsign(self)
 
print_fields(self)
 
_elemkey(self)
Return the unique identifier for this line, used for recognizing duplicate lines.
 
is_expired(self, testdate=None)
Test whether the license line has expired.

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, tag='', line=None, line_num=0)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)

_elemkey(self)

 

Return the unique identifier for this line, used for recognizing duplicate lines.

Different identifiers are used for different types of lines: for SERVER lines, the hostid is used; for VENDOR lines, the vendor name is used; for FEATURE, INCREMENT, and PACKAGE lines, the signature is used.

is_expired(self, testdate=None)

 

Test whether the license line has expired.

License lines without an expration date always return False. If a testdate is supplied, it is compared to the expiration date, otherwise the current date is used.