Changeset 10684 for main/waeup.kofa/trunk
- Timestamp:
- 2 Nov 2013, 08:50:58 (11 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/interfaces.py
r9948 r10684 24 24 from waeup.kofa.interfaces import MessageFactory as _ 25 25 from waeup.kofa.university.interfaces import ( 26 IFacultiesContainer, IFaculty, I FacultyAdd, IDepartment, IDepartmentAdd,26 IFacultiesContainer, IFaculty, IDepartment, IDepartmentAdd, 27 27 ICoursesContainer, ICourse, ICourseAdd, ICertificatesContainer, 28 28 ICertificate, ICertificateAdd, ICertificateCourse, ICertificateCourseAdd) -
main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
r10676 r10684 46 46 KofaDisplayFormPage, NullValidator) 47 47 from waeup.kofa.browser.interfaces import ( 48 IUniversity, IFacultiesContainer, IFaculty, IFacultyAdd,48 IUniversity, IFacultiesContainer, IFaculty, 49 49 IDepartment, IDepartmentAdd, ICourse, ICourseAdd, ICertificate, 50 50 ICertificateAdd, ICertificateCourse, ICertificateCourseAdd, … … 1748 1748 grok.name('add') 1749 1749 label = _('Add faculty') 1750 form_fields = grok.AutoFields(IFaculty Add)1750 form_fields = grok.AutoFields(IFaculty) 1751 1751 pnav = 1 1752 1752 … … 1800 1800 tabthreeactions2 = [_('Add local role')] 1801 1801 1802 form_fields = grok.AutoFields(IFaculty) 1802 form_fields = grok.AutoFields(IFaculty).omit('code') 1803 1803 1804 1804 @property -
main/waeup.kofa/trunk/src/waeup/kofa/university/faculty.py
r10650 r10684 25 25 from waeup.kofa.interfaces import IKofaUtils 26 26 from waeup.kofa.university.interfaces import ( 27 IFaculty, I FacultyAdd, IDepartment)27 IFaculty, IDepartment) 28 28 29 29 def longtitle(inst): … … 38 38 """A university faculty. 39 39 """ 40 grok.implements(IFaculty , IFacultyAdd)40 grok.implements(IFaculty) 41 41 42 42 local_roles = [ -
main/waeup.kofa/trunk/src/waeup/kofa/university/interfaces.py
r10650 r10684 39 39 default = u'NA', 40 40 required = True, 41 readonly = True,42 41 ) 43 42 … … 55 54 ) 56 55 57 58 class IFacultyAdd(IFaculty):59 """Representation of a university faculty.60 """61 code = schema.TextLine(62 title = _(u'Code'),63 description = _(u'This code will become part of the URL.'),64 default = u'NA',65 required = True,66 readonly = False,67 )68 69 IFacultyAdd['code'].order = IFaculty['code'].order70 56 71 57 class IFacultiesContainer(IKofaContainer):
Note: See TracChangeset for help on using the changeset viewer.