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

PURPOSE --
Edit an SMS manually..
 
Based on SMSEDIT.COM
 
DEVELOPER --
Gary Bower
 
MODIFICATION HISTORY --
 
o Initial implementation 12/18/01
o Include modifications from Python review - G. Bower 1/14/02
  - abort if editor environment variable is not set
  - use shutil.copy instead of UNIX cp
  - delete the difference message and text files at end
  - use the time of last modification for the database instead of
    current time
  - add comments by editing a template file, rather than line editing
o Include modifications from Python review - G. Bower 2/13/02
  - test that the program is being run on a Sun
  - separate comment from keyword before adding to db
  - format time of edit for consistency with previous entries in db
  - use spss_sys_util.filecopy instead of shutil
o Mods for Mac OS X - M. Reinhart 3/15/05

 
Modules
       
errno
os
spss_sys_util
stat
stpydb
string
time
time_util

 
Functions
       
run(sms_id=None)
Edit an SMS manually and send e-mail message containing the changes
to a distribution list.
 
Usage:
do sms_edit <sms_id> 
 
sms_id must be a valid SMS id
 
This program uses the editor pointed to by the environment
variable EDITOR.

 
Data
        __version__ = '3/15/05'