Changeset 7321 for main/waeup.sirp/trunk/src/waeup/sirp/university
- Timestamp:
- 10 Dec 2011, 06:15:17 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/university
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/university/certificate.py
r7210 r7321 16 16 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 17 ## 18 """ WAeUP portalcertificates18 """SIRP certificates 19 19 """ 20 20 import grok -
main/waeup.sirp/trunk/src/waeup/sirp/university/certificate.txt
r6244 r7321 1 :mod:`waeup.sirp.university.certificate` -- Certificates for WAeUP1 :mod:`waeup.sirp.university.certificate` -- Certificates for SIRP 2 2 ****************************************************************** 3 3 … … 7 7 8 8 .. :doctest: 9 .. :layer: waeup.sirp.testing. WAeUPSIRPUnitTestLayer9 .. :layer: waeup.sirp.testing.SIRPUnitTestLayer 10 10 11 11 -
main/waeup.sirp/trunk/src/waeup/sirp/university/certificatecontainer.txt
r6231 r7321 7 7 8 8 .. :doctest: 9 .. :layer: waeup.sirp.testing. WAeUPSIRPUnitTestLayer9 .. :layer: waeup.sirp.testing.SIRPUnitTestLayer 10 10 11 11 -
main/waeup.sirp/trunk/src/waeup/sirp/university/course.txt
r5944 r7321 7 7 8 8 .. :doctest: 9 .. :layer: waeup.sirp.testing. WAeUPSIRPUnitTestLayer9 .. :layer: waeup.sirp.testing.SIRPUnitTestLayer 10 10 11 11 Content Classes (models and containers) -
main/waeup.sirp/trunk/src/waeup/sirp/university/coursecontainer.txt
r6245 r7321 7 7 8 8 .. :doctest: 9 .. :layer: waeup.sirp.testing. WAeUPSIRPUnitTestLayer9 .. :layer: waeup.sirp.testing.SIRPUnitTestLayer 10 10 11 11 -
main/waeup.sirp/trunk/src/waeup/sirp/university/department.txt
r5140 r7321 7 7 8 8 .. :doctest: 9 .. :layer: waeup.sirp.testing. WAeUPSIRPUnitTestLayer9 .. :layer: waeup.sirp.testing.SIRPUnitTestLayer 10 10 11 11 Content Classes (models and containers) -
main/waeup.sirp/trunk/src/waeup/sirp/university/faculty.txt
r6979 r7321 7 7 8 8 .. :doctest: 9 .. :layer: waeup.sirp.testing. WAeUPSIRPUnitTestLayer9 .. :layer: waeup.sirp.testing.SIRPUnitTestLayer 10 10 11 11 -
main/waeup.sirp/trunk/src/waeup/sirp/university/facultycontainer.py
r7195 r7321 19 19 from zope.component.interfaces import IFactory 20 20 from zope.interface import implementedBy 21 from waeup.sirp.interfaces import I WAeUPSIRPPluggable21 from waeup.sirp.interfaces import ISIRPPluggable 22 22 from waeup.sirp.university.interfaces import IFacultyContainer, IFaculty 23 23 … … 51 51 """A plugin that creates a faculty container inside a university. 52 52 """ 53 grok.implements(I WAeUPSIRPPluggable)53 grok.implements(ISIRPPluggable) 54 54 grok.name('faculties') 55 55 56 56 def setup(self, site, name, logger): 57 57 if 'faculties' in site.keys(): 58 logger.warn('Could not create faculty container in WAeUPSIRP.')58 logger.warn('Could not create faculty container in SIRP.') 59 59 return 60 60 site['faculties'] = FacultyContainer() -
main/waeup.sirp/trunk/src/waeup/sirp/university/facultycontainer.txt
r6979 r7321 7 7 8 8 .. :doctest: 9 .. :layer: waeup.sirp.testing. WAeUPSIRPUnitTestLayer9 .. :layer: waeup.sirp.testing.SIRPUnitTestLayer 10 10 11 11 … … 77 77 .. class:: AcademicsPlugin() 78 78 79 .. attribute:: grok.implements(I WAeUPSIRPPluggable)79 .. attribute:: grok.implements(ISIRPPluggable) 80 80 81 81 This plugin component tells under which name (``faculties``) an 82 instance of academics stuff should be created in plain WAeUPSIRP82 instance of academics stuff should be created in plain SIRP 83 83 instances. It also tells the factory name for FacultyContainer 84 instances, which serve as root object for academics stuff in WAeUP 85 SIRP apps. 84 instances, which serve as root object for academics stuff in SIRP apps. 86 85 87 86 -
main/waeup.sirp/trunk/src/waeup/sirp/university/interfaces.py
r7195 r7321 20 20 from zope import schema 21 21 from zope.interface import Attribute 22 from waeup.sirp.interfaces import (I WAeUPObject, IWAeUPContainer)22 from waeup.sirp.interfaces import (ISIRPObject, ISIRPContainer) 23 23 24 24 from waeup.sirp.university.vocabularies import ( … … 32 32 33 33 34 class IFaculty(I WAeUPContainer):34 class IFaculty(ISIRPContainer): 35 35 """Representation of a university faculty. 36 36 """ … … 73 73 IFacultyAdd['code'].order = IFaculty['code'].order 74 74 75 class IFacultyContainer(I WAeUPContainer):75 class IFacultyContainer(ISIRPContainer): 76 76 """A container for faculties. 77 77 """ … … 80 80 81 81 """ 82 class IDepartment(I WAeUPObject):82 class IDepartment(ISIRPObject): 83 83 """Representation of a department. 84 84 """ … … 124 124 IDepartmentAdd['code'].order = IDepartment['code'].order 125 125 126 class ICourseContainer(I WAeUPContainer):126 class ICourseContainer(ISIRPContainer): 127 127 """A container for faculties. 128 128 """ … … 133 133 """ 134 134 135 class ICourse(I WAeUPObject):135 class ICourse(ISIRPObject): 136 136 """Representation of a course. 137 137 """ … … 186 186 ICourseAdd['code'].order = ICourse['code'].order 187 187 188 class ICertificate(I WAeUPObject):188 class ICertificate(ISIRPObject): 189 189 """Representation of a certificate. 190 190 """ … … 248 248 ICertificateAdd['code'].order = ICertificate['code'].order 249 249 250 class ICertificateContainer(I WAeUPContainer):250 class ICertificateContainer(ISIRPContainer): 251 251 """A container for certificates. 252 252 """ … … 257 257 """ 258 258 259 class ICertificateCourse(I WAeUPObject):259 class ICertificateCourse(ISIRPObject): 260 260 """A certificatecourse is referring a course and provides some own 261 261 attributes. -
main/waeup.sirp/trunk/src/waeup/sirp/university/tests/test_facultycontainer.py
r7195 r7321 90 90 self.assertEqual( 91 91 self._logger_factory.get_messages(), 92 'Could not create faculty container in WAeUPSIRP.\n'92 'Could not create faculty container in SIRP.\n' 93 93 ) 94 94 -
main/waeup.sirp/trunk/src/waeup/sirp/university/vocabularies.py
r7195 r7321 21 21 from zope.catalog.interfaces import ICatalog 22 22 from zope.component import getUtility 23 from waeup.sirp.interfaces import Simple WAeUPVocabulary23 from waeup.sirp.interfaces import SimpleSIRPVocabulary 24 24 25 inst_types = Simple WAeUPVocabulary(25 inst_types = SimpleSIRPVocabulary( 26 26 ('Faculty of','faculty'), 27 27 ('Department of','department'), … … 34 34 ) 35 35 36 course_levels = Simple WAeUPVocabulary(36 course_levels = SimpleSIRPVocabulary( 37 37 ('Pre-Studies',0), 38 38 ('100 (Year 1)',100), … … 46 46 ) 47 47 48 semester = Simple WAeUPVocabulary(48 semester = SimpleSIRPVocabulary( 49 49 ('N/A', 0), 50 50 ('First Semester', 1), … … 53 53 ) 54 54 55 application_categories = Simple WAeUPVocabulary(55 application_categories = SimpleSIRPVocabulary( 56 56 ('PUME, PDE, PCE, PRENCE','basic'), 57 57 ('Part-Time, Diploma, Certificate','cest'), … … 60 60 ) 61 61 62 study_modes = Simple WAeUPVocabulary(62 study_modes = SimpleSIRPVocabulary( 63 63 ('UME Full Time','ume_ft'), 64 64 ('Direct Entry Full Time','de_ft'),
Note: See TracChangeset for help on using the changeset viewer.