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

PURPOSE --
A module for PASS CMS related utilities.
 
DEVELOPER --
Greg Wenzel
 
MODIFICATION HISTORY --
 
o  initial implementation  GWW   07/01/02

 
Modules
       
exceptions
file_util
os
re
spss_sys_util
string

 
Classes
       
cms
exceptions.Exception(exceptions.BaseException)
CMSError

 
class CMSError(exceptions.Exception)
    
Method resolution order:
CMSError
exceptions.Exception
exceptions.BaseException
__builtin__.object

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from exceptions.Exception:
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)
__unicode__(...)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message

 
class cms
    a class for using cms library on vms from unix
 
  Methods defined here:
__init__(self, library, working_directory=None)
a class for using cms library on vms from unix
create_class(self, class_name, remark='', verbose=0)
create a class
create_element(self, element_name, remark='', verbose=0)
create an element.
Note: the element must be in the working directory
fetch(self, element_name, gen_name=None, out='[]', remark='', verbose=0)
fetch an element
get_class_dict(self, filter='*', verbose=0)
get a dict of classes from the cms library that match the filter
insert_element(self, element_name, cms_group, remark='', verbose=0)
insert an element(S) into a group
insert_generation(self, element, cms_class, remark='', verbose=0)
insert current generation(s) into a class.
element = element or group expresion
is_reserved(self, element_name, gen_name=None, verbose=0)
true if element(s) are reserved else false.
replace_element(self, element_name, remark='', verbose=0)
replace an element.
reserve_element(self, element_name, gen_name=None, remark='', verbose=0)
reserve an element.
set_library(self, library)
sets the library directory. NO checking is done since
this is used accross platforms unix-vms.
unreserve_element(self, element_name, gen_name=None, remark='', verbose=0)
reserve an element.

 
Data
        FALSE = 0
False = 0
TRUE = 1
True = 1
false = 0
true = 1