Changeset 4511
- Timestamp:
- 1 Aug 2009, 08:35:04 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-rewrite/src/waeup/university/department.py
r4499 r4511 4 4 import grok 5 5 from zope.component import createObject 6 from zope.component.interfaces import IFactory 6 from zope.component.interfaces import IFactory, Invalid 7 from zope.exceptions import DuplicationError 7 8 from zope.interface import implementedBy 8 9 from waeup.interfaces import IDepartment, ICourse, ICertificate … … 153 154 self.context.courses.addCourse(course) 154 155 except DuplicationError: 155 self.status = Invalid('The name chosen already exists '156 self.status = Invalid('The code chosen already exists ' 156 157 'in the database') 157 158 return
Note: See TracChangeset for help on using the changeset viewer.