- Timestamp:
- 2 May 2012, 10:38:37 (13 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/students
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/interfaces.py
r8270 r8326 23 23 from waeup.kofa.students.vocabularies import nats_vocab 24 24 from waeup.kofa.students.interfaces import ( 25 IStudentBase,IUGStudentClearance,IPGStudentClearance, 26 IStudentPersonal,IStudentNavigation, 25 IStudentBase, IUGStudentClearance, IPGStudentClearance, 26 IStudentPersonal, IStudentNavigation, IStudentStudyLevel, 27 IStudentStudyCourse, ICourseTicket 27 28 ) 28 29 from waeup.kofa.students.vocabularies import ( … … 341 342 """ 342 343 344 class ICustomStudentStudyCourse(IStudentStudyCourse): 345 """A container for student study levels. 346 347 """ 348 349 class ICustomStudentStudyLevel(IStudentStudyLevel): 350 """A container for course tickets. 351 352 """ 353 343 354 class ICustomStudentOnlinePayment(ICustomOnlinePayment): 344 355 """A student payment via payment gateways. … … 355 366 ICustomStudentOnlinePayment['p_level'].order = ICustomStudentOnlinePayment[ 356 367 'p_session'].order 368 369 class ICustomCourseTicket(ICourseTicket): 370 """A course ticket. 371 372 """ -
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r8320 r8326 21 21 from hurry.workflow.interfaces import IWorkflowState 22 22 from zope.component.hooks import setSite, clearSite 23 from zope.component import getUtility 23 from zope.component import getUtility, createObject 24 from zope.interface import verify 24 25 from waeup.kofa.app import University 25 26 from waeup.kofa.students.tests.test_browser import StudentsFullSetup … … 30 31 from waeup.uniben.testing import FunctionalLayer 31 32 from waeup.uniben.students.utils import get_school_fee 33 from waeup.uniben.students.interfaces import ( 34 ICustomStudentStudyCourse, ICustomStudent, 35 ICustomStudentStudyLevel, ICustomCourseTicket) 32 36 33 37 … … 99 103 layer = FunctionalLayer 100 104 105 def test_classes(self): 106 # Let's see if objects created in the customized 107 # portal really implement the customized interfaces 108 verify.verifyObject(ICustomStudent, self.student) 109 verify.verifyObject( 110 ICustomStudentStudyCourse, self.student['studycourse']) 111 studylevel = createObject(u'waeup.StudentStudyLevel') 112 verify.verifyObject(ICustomStudentStudyLevel, studylevel) 113 ticket = createObject(u'waeup.CourseTicket') 114 verify.verifyObject(ICustomCourseTicket, ticket) 115 101 116 def test_manage_access(self): 102 117 # Managers can access the pages of students
Note: See TracChangeset for help on using the changeset viewer.