Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/spst/UnixTransition/doc/prd_util.html
Дата изменения: Fri Apr 8 12:46:15 2016
Дата индексирования: Sun Apr 10 23:12:28 2016
Кодировка:

Поисковые слова: orion
Python: module prd_util
 
 
prd_util
index
prd_util.py

PURPOSE --
A module for PASS PRD files.
 
DEVELOPER --
Kerry Clark
 
MODIFICATION HISTORY --
 
o  initial implementation  KWC   11/18/02

 
Modules
       
configure_util

 
Classes
       
configure_util.configured_product(configure_util.pickled_product)
prd_odb

 
class prd_odb(configure_util.configured_product)
    A class for configured PDBMAN ODB products.
PRD deliveries need further fields for selection.
 
 
Method resolution order:
prd_odb
configure_util.configured_product
configure_util.pickled_product

Methods defined here:
__init__(self, rel_type)
The PRD release type is a required parameter for all.
get_prd_release_type(self)
Gets the PRD release type.
get_release_SMS_id(self)
Gets SMS id that this release is to be used for.
get_release_version(self)
Gets the Delivery version of this release.
set_prd_release_type(self, rel_type)
Sets the PRD release type.
set_release_SMS_id(self, sms_id)
Sets SMS id that this release is to be used for.
set_release_version(self, ver_id)
Sets the Delivery version of this release.

Methods inherited from configure_util.configured_product:
add_configured_file(self, configured_file_object)
add configured_file object to configured_file_object_dict
get_configured_file_dictionary(self)
returns a dictionary of environment variable keys and
configured_file_object for the value.
get_environment_definition_list(self, vms=False)
returns a list of lines for defining the configured environment variables
get_environment_dictionary(self)
returns a dictionary of environment variable keys and
path names for the value.
get_pass_archive_glob_list(self)
returns a list of file paths for archival with pickled product
get_span(self)
Span of configured product is the intersection of all the
spans of the configured files.
overide pickled_product.get_span
get_validation_dictionary(self)
checks all configured files in product for existence
and returns a dictionary of key = environment variable
and value true or false
report(self)
print out objects information.
overide pickled_product.report
report_sum(self)
print out summary of objects information.
overide pickled_product.report_sum
validate(self)
checks all configured files in product for existence
and returns false if any data is missing.
overide pickled_product.validate

Methods inherited from configure_util.pickled_product:
__repr__(self)
returns string representation of product
configure_pickle(self, pickle_directory='/data/scheduling/spss_flight_data/pass/pickles', new_pickle_name=None, verbose=False)
configures product to pickle file.
copy(self)
return a copy of self with current create time
get_comment(self)
returns the comment line
get_create_time(self)
returns create time
get_pickle_path(self)
get_type(self)
returns the product type
remove(self)
Delete this objects pickle file.
set_comment(self, comment)
sets product comment line
set_create_time(self)
sets create time
set_pickle_path(self, path)
set_product_type(self, product_type)
product type must be a pickle type
set_span(self, t1=None, t2=None)
sets the time span for which this product is valid.
should be overiden by inheriting class if needed.

 
Data
        PRD_RELEASE_TYPES = ['OPS', 'TEST', 'SM']