Changeset 712 for trunk/monitor/cgi-bin/filelist.py
- Timestamp:
- 11/17/05 14:12:49 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/monitor/cgi-bin/filelist.py
r703 r712 1 1 #!/usr/bin/python 2 2 import os 3 from asapconfig import rpfpath3 from asapconfig import observatory 4 4 5 5 class FileList: … … 12 12 self.error = None 13 13 if loc is None: 14 loc = rpfpath[0]14 loc = observatory['rpfpath'][0] 15 15 else: 16 16 loc = int(loc) 17 if loc< 0 or loc >=len( rpfpath):17 if loc< 0 or loc >=len(observatory['rpfpath']): 18 18 self.error = "Invalid Path" 19 19 return 20 20 else: 21 loc = rpfpath[loc]21 loc = observatory['rpfpath'][loc] 22 22 if os.path.exists(loc) and os.path.isdir(loc): 23 23 self.files = filter(lambda x: x.lower().endswith("rpf"), os.listdir(loc))
Note:
See TracChangeset
for help on using the changeset viewer.