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

Class Package

 object --+    
          |    
LicenseLine --+
              |
             Package

A Package object represents a single PACKAGE line in the license file.

The format of the PACKAGE line is:

PACKAGE package vendor [pkg_version] COMPONENTS=pkg_list [OPTIONS=SUITE] [SUPERSEDE[="p1 p2 ..."] ISSUED=date] SIGN="<...>"

Instance Methods [hide private]
 
__init__(self, line=None, line_num=0)
x.__init__(...) initializes x; see help(type(x)) for signature
 
print_fields(self)
 
short(self)
Return short string representation (no signatures)
 
issued_str(self)
Return the standard string representation of the issued date.
 
supersedes(self, pkg)
Does this PACKAGE line supersede the given line?
 
_elemkey(self)
Return the unique identifier for this line, used for recognizing duplicate lines.
 
is_signed(self)
Does this license line have a signature?
 
signature(self)
Return a string representing the signatures for this license line.
 
unsign(self)
 
_parse_line(self, line)

Inherited from LicenseLine: __str__, is_expired, string

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, line=None, line_num=0)
(Constructor)

 

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

Overrides: object.__init__
(inherited documentation)

print_fields(self)

 
Overrides: LicenseLine.print_fields

short(self)

 

Return short string representation (no signatures)

Overrides: LicenseLine.short

_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.

Overrides: LicenseLine._elemkey
(inherited documentation)

signature(self)

 

Return a string representing the signatures for this license line. This is used for recognizing duplicate lines.

When no signatures are present, the full text of the line is used.

unsign(self)

 
Overrides: LicenseLine.unsign