Ignore:
Timestamp:
11/17/05 14:12:49 (19 years ago)
Author:
mar637
Message:

several updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/monitor/cgi-bin/filelist.py

    r703 r712  
    11#!/usr/bin/python
    22import os
    3 from asapconfig import rpfpath
     3from asapconfig import observatory
    44
    55class FileList:
     
    1212        self.error = None
    1313        if loc is None:
    14             loc = rpfpath[0]
     14            loc = observatory['rpfpath'][0]
    1515        else:
    1616            loc = int(loc)
    17             if loc< 0 or loc >=len(rpfpath):
     17            if loc< 0 or loc >=len(observatory['rpfpath']):
    1818                 self.error = "Invalid Path"
    1919                 return
    2020            else:
    21                 loc = rpfpath[loc]
     21                loc = observatory['rpfpath'][loc]
    2222        if os.path.exists(loc) and os.path.isdir(loc):
    2323            self.files = filter(lambda x: x.lower().endswith("rpf"), os.listdir(loc))
Note: See TracChangeset for help on using the changeset viewer.