IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 31, 2013, 4:13:09 PM (14 years ago)
Author:
eugene
Message:

split out config (static info) and skychunk (area being processed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20121219/ippToPsps/jython/datastore.py

    r33774 r35076  
    11#!/usr/bin/env jython
     2# EAM : config -> skychunk DONE
    23
    34from subprocess import call, PIPE, Popen
     
    1920
    2021    '''
    21     def __init__(self, logger, config, ippToPspsDb):
     22    def __init__(self, logger, skychunk, ippToPspsDb):
    2223   
    2324        # setup logger
    2425        self.logger = logger
    25         self.config = config
     26        self.skychunk = skychunk
    2627        self.ippToPspsDb = ippToPspsDb
    2728
     
    4243        command  = "dsreg --add " + name + "\
    4344                    --link --datapath " + path + "\
    44                     --type " + self.config.datastoreType + "\
    45                     --product " + self.config.datastoreProduct + "\
     45                    --type " + self.skychunk.datastoreType + "\
     46                    --product " + self.skychunk.datastoreProduct + "\
    4647                    --list " + tempFile.name
    4748
     
    7576                   --del " + name + " \
    7677                   --rm \
    77                    --product " + self.config.datastoreProduct
     78                   --product " + self.skychunk.datastoreProduct
    7879
    7980        p = Popen(command, shell=True, stdout=PIPE, stderr=PIPE)
Note: See TracChangeset for help on using the changeset viewer.