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

PURPOSE --
 
Restores attachments for crafted (attached) parallels to the PMDB
Data is taken from the standard <weekid>.attachments file which is assumed
to be in the local directory.
 
DEVELOPER --
 
Alan Patterson
 
MODIFICATION HISTORY --
 
Initial implementation                     05/07/2001  APP.
Python review changes                      05/30/2001  APP.
Make test for each existing record more
explicit (i.e include primary)             08/28/2002  APP.

 
Modules
       
spss_sys_util
spst_getopt
stpydb
string
su_util
sys
time_util

 
Functions
       
get_pardata(line, db)
insert_par_rec(parrec, db, weekid)
run(weekid=None, *args)
do restore_attach <weekid>  [-parsus=suid1,suid2,suid3,...]
                            [-r=oldmain,newmain,...]
                            [-f=<attachment file name>]
 
            where  weekid is the standard calendar week id (yyddd)
                   -parsus=suid1,suid2,suid3,....  specifies the
                            crafted parallel SUs that are to be included
                            in the re-attachments
                   -r=oldmain,newmain,...  specifies which main SUS are
                            being replaced by new ones.  All attachments
                            using these mains will be restored.  The mains
                            appear  as pairs (old,new,old,new,...). This 
                            arguement should only be used if the alignment
                            and obset structure of the new mains is the
                            same as the old.
                   -f=<attachment file>  gives the name of the file
                            containing the attachment records.  The default
                            is  yyddd.attachments in the working directory
                            where yyddd is the weekid (first arg).
                    If -parsus is missing the user will be queried to
                            confirm that ALL attachments should be restored.