Changeset 2864
- Timestamp:
- 5 Dec 2007, 19:41:56 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTables.py
r2859 r2864 1355 1355 id = code = d['id'] = brain.code 1356 1356 d['code'] = code 1357 course = self.courses_catalog.evalAdvancedQuery(Eq('code',code))[0] 1358 d['title'] = course.title 1359 1360 # The courses_catalog contains strings and integers in its semester field. 1361 # Maybe this can be fixed by reindexing the catalog. The schema of course says 'CPS Int Field'. 1362 d['semester'] = str(course.semester) 1357 res = self.courses_catalog.evalAdvancedQuery(Eq('code',code)) 1358 if res: 1359 course = res[0] 1360 d['title'] = course.title 1361 # The courses_catalog contains strings and integers in its semester field. 1362 # Maybe this can be fixed by reindexing the catalog. The schema of course says 'CPS Int Field'. 1363 d['semester'] = str(course.semester) 1364 else: 1365 d['title'] = "unknown course id" 1366 d['semester'] = '' 1363 1367 if brain.carry_over: 1364 1368 d['coe'] = 'CO'
Note: See TracChangeset for help on using the changeset viewer.