|
__init__(self,
text='
' )
x.__init__(...) initializes x; see help(type(x)) for signature |
|
|
|
|
|
write(self,
outfile,
dryrun=False,
backup=True)
Write the license file to a file named 'outfile' |
|
|
|
log_deleted_lines(self,
newlic)
Report in the logfile any lines that exist in this license, but not
in newlic. |
|
|
|
canonical_filename(self)
Return the filename for this license file, according to the our
conventions for naming licenses in license directories. |
|
|
|
license_class(self)
Returns the name of the license-file class for this file, based on
the contents of the license file. |
|
|
|
license_description(self)
Returns a user-friendly description of the license-file class for
this file, based on the contents of the license file. |
|
|
|
is_permanent_nodelocked(self)
Returns true if the license file contains uncounted, node-locked,
permanent licenses, and no short-term uncounted, node-locked
licenses. |
|
|
|
is_permanent_counted(self)
Returns true if the license file contains permanent counted licenses,
and no short-term counted licenses. |
|
|
|
is_permanent_library(self)
Returns true if the license file contains a permanent token library,
and no short-term token library. |
|
|
|
is_library(self)
Returns true if the license file contains a token library. |
|
|
|
is_counted(self)
Returns true if this license file includes any counted licenses,
which requires a license server. |
|
|
|
is_stub(self)
Returns true if this license file is a stub license, that merely
opints to a server but doesn't include FEATURE/INCREMENT lines. |
|
|
|
is_open(self)
Returns true if this license file can be installed and used on any
machine and allows unlimited use of all tokens. |
|
|
|
last_issued(self)
Return the most recent issued date among the licenses in this file. |
|
|
|
empty(self)
Return True if this license contains no features and no SERVER lines. |
|
|
|
need_server(self)
Return True if this license file includes any counted features. |
|
|
|
server_hostport(self)
Return the port@host address for the license server, if this license
is for a license server. |
|
|
|
server_host(self)
Return the hostname for the license server, if this license is for a
license server. |
|
|
|
redundant_server(self)
Return True if this license specifies a three-machine redundant
license server. |
|
|
|
sort(self)
Returns a new License object, sorted in the standard order. |
|
|
|
add_signatures(self,
signatures)
Add the given vendor_info signatures to the license. |
|
|
|
unsign(self)
Strip signatures from the lines of this License object. |
|
|
|
cleanup(self)
Remove expired and superseded elements from this license. |
|
|
|
_cleanup_packages(self,
valid_features)
Remove superseded and redundant PACKAGE lines. |
|
|
|
_cleanup_features(self)
Remove expired and superseded FEATURE and INCREMENT lines from this
license. |
|
|
|
merge(self,
oldlic)
Merge this license with an older license. |
|
|
|
_merge_servers(self,
oldlic)
Merge the SERVER lines for this license with those of an older
license. |
|
|
|
_merge_vendors(self,
oldlic)
Merge the VENDOR lines for this license with those of an older
license. |
|
|
|
_merge_packages(self,
oldlic)
Merge the PACKAGE lines for this license with those of an older
license. |
|
|
|
_merge_features(self,
oldlic)
Merge the FEATURE/INCREMENT lines for this license with those of an
older license. |
|
|
|
_set_suite_sort_index(self)
General SUITE tokens should be given an explicit sort index to make
sure they're not used unless more restricted license have already
been exhausted. |
|
|
|
validate(self)
Check that the lines in this license file are all valid, and report
any errors found to stdput. |
|
|
|
|
|
|
|
|
|
_validate_feature(self,
name) |
|
|
|
|
|
_validate_package(self,
name) |
|
|
|
_init_from_string(self,
text)
Parse the text of a license file. |
|
|
|
_add_element(self,
elem)
Add the given "element" (LicenseLine object) to this
License object. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|