Last change
on this file since 3011 was
2282,
checked in by joachim, 17 years ago
|
add import for courses, certificates, certificate_courses
|
-
Property svn:keywords set to
Id
|
File size:
291 bytes
|
Rev | Line | |
---|
[1756] | 1 | ##parameters=key=None |
---|
| 2 | # $Id: get_csv_names.py 2282 2007-09-27 16:52:41Z joachim $ |
---|
| 3 | """ |
---|
| 4 | Return the sessions as an vocabulary |
---|
| 5 | |
---|
| 6 | """ |
---|
| 7 | files = context.waeup_tool.get_csv_filenames() |
---|
| 8 | if key is None: |
---|
[2282] | 9 | l = [(f[:-4],f) for f in files] |
---|
| 10 | l.sort(cmp=lambda x,y: cmp(x[0].lower(), y[0].lower())) |
---|
| 11 | return l |
---|
[1756] | 12 | |
---|
| 13 | return files[files.index("%s.csv" % key)] |
---|
| 14 | |
---|
Note: See
TracBrowser for help on using the repository browser.