Changeset 3162 for WAeUP_SRP/base/skins
- Timestamp:
- 14 Feb 2008, 08:04:50 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_default/get_csv_names.py
r2282 r3162 7 7 files = context.waeup_tool.get_csv_filenames() 8 8 if key is None: 9 l = [(f[:-4],f) for f in files] 9 if files: 10 l = [(f[:-4],f) for f in files] 11 else: 12 l = [] 13 l.insert(0,('--','without new data')) 10 14 l.sort(cmp=lambda x,y: cmp(x[0].lower(), y[0].lower())) 11 15 return l 12 16 13 return files[files.index("%s.csv" % key)] 14 17 if "%s.csv" % key in files: 18 return files[files.index("%s.csv" % key)] 19 return ('--','without new data')
Note: See TracChangeset for help on using the changeset viewer.