Changeset 6216 for main/waeup.sirp/trunk/src/waeup/sirp/browser
- Timestamp:
- 29 May 2011, 09:23:30 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
r6210 r6216 1303 1303 course = createObject(u'waeup.Course') 1304 1304 self.applyData(course, **data) 1305 try: 1306 self.context.courses.addCourse(course) 1307 except KeyError: 1308 self.status = Invalid('The code chosen already exists ' 1309 'in the database') 1310 return 1311 except DuplicationError: 1312 self.status = Invalid('The code chosen already exists ' 1313 'in the database') 1314 return 1305 message = self.context.courses.addCourse(course) 1306 self.flash(message) 1315 1307 self.redirect(self.url(self.context, u'@@manage')+'#tab-2') 1316 1308
Note: See TracChangeset for help on using the changeset viewer.