Changeset 3162 for WAeUP_SRP/base/skins


Ignore:
Timestamp:
14 Feb 2008, 08:04:50 (17 years ago)
Author:
joachim
Message:

fix for #477

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_default/get_csv_names.py

    r2282 r3162  
    77files = context.waeup_tool.get_csv_filenames()
    88if 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'))
    1014    l.sort(cmp=lambda x,y: cmp(x[0].lower(), y[0].lower()))
    1115    return l
    1216
    13 return files[files.index("%s.csv" % key)]
    14 
     17if "%s.csv" % key in files:
     18    return files[files.index("%s.csv" % key)]
     19return ('--','without new data')
Note: See TracChangeset for help on using the changeset viewer.