Ignore:
Timestamp:
10 Dec 2011, 06:15:17 (14 years ago)
Author:
Henrik Bettermann
Message:

Replace the term 'WAeUP' by SIRP which is a WAeUP product.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/students
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py

    r7318 r7321  
    3232from waeup.sirp.accesscodes.workflow import USED
    3333from waeup.sirp.browser import (
    34     WAeUPPage, WAeUPEditFormPage, WAeUPAddFormPage, WAeUPDisplayFormPage,
     34    SIRPPage, SIRPEditFormPage, SIRPAddFormPage, SIRPDisplayFormPage,
    3535    ContactAdminForm)
    3636from waeup.sirp.browser.breadcrumbs import Breadcrumb
     
    3939    ManageActionButton, AddActionButton)
    4040from waeup.sirp.interfaces import (
    41     IWAeUPObject, IUserAccount, IExtFileStore, IPasswordValidator, IContactForm)
     41    ISIRPObject, IUserAccount, IExtFileStore, IPasswordValidator, IContactForm)
    4242from waeup.sirp.widgets.datewidget import (
    4343    FriendlyDateWidget, FriendlyDateDisplayWidget,
     
    155155        return self.context.level_title
    156156
    157 class StudentsContainerPage(WAeUPPage):
     157class StudentsContainerPage(SIRPPage):
    158158    """The standard view for student containers.
    159159    """
     
    188188        return
    189189
    190 class SetPasswordPage(WAeUPPage):
    191     grok.context(IWAeUPObject)
     190class SetPasswordPage(SIRPPage):
     191    grok.context(ISIRPObject)
    192192    grok.name('setpassword')
    193193    grok.require('waeup.Public')
     
    253253
    254254
    255 class StudentsContainerManagePage(WAeUPPage):
     255class StudentsContainerManagePage(SIRPPage):
    256256    """The manage page for student containers.
    257257    """
     
    310310    target = 'addstudent'
    311311
    312 class StudentAddFormPage(WAeUPAddFormPage):
     312class StudentAddFormPage(SIRPAddFormPage):
    313313    """Add-form to add a student.
    314314    """
     
    331331        return
    332332
    333 class StudentBaseDisplayFormPage(WAeUPDisplayFormPage):
     333class StudentBaseDisplayFormPage(SIRPDisplayFormPage):
    334334    """ Page to display student base data
    335335    """
     
    406406    target = 'manage_base'
    407407
    408 class StudentBaseManageFormPage(WAeUPEditFormPage):
     408class StudentBaseManageFormPage(SIRPEditFormPage):
    409409    """ View to manage student base data
    410410    """
     
    467467        return
    468468
    469 class StudentClearanceDisplayFormPage(WAeUPDisplayFormPage):
     469class StudentClearanceDisplayFormPage(SIRPDisplayFormPage):
    470470    """ Page to display student clearance data
    471471    """
     
    552552            self.context.getStudent(), studentview)
    553553
    554 class StudentClearanceManageFormPage(WAeUPEditFormPage):
     554class StudentClearanceManageFormPage(SIRPEditFormPage):
    555555    """ Page to edit student clearance data
    556556    """
     
    622622        return
    623623
    624 class StudentPersonalDisplayFormPage(WAeUPDisplayFormPage):
     624class StudentPersonalDisplayFormPage(SIRPDisplayFormPage):
    625625    """ Page to display student personal data
    626626    """
     
    644644    target = 'edit_personal'
    645645
    646 class StudentPersonalManageFormPage(WAeUPEditFormPage):
     646class StudentPersonalManageFormPage(SIRPEditFormPage):
    647647    """ Page to edit student clearance data
    648648    """
     
    660660        return
    661661
    662 class StudyCourseDisplayFormPage(WAeUPDisplayFormPage):
     662class StudyCourseDisplayFormPage(SIRPDisplayFormPage):
    663663    """ Page to display the student study course data
    664664    """
     
    703703    target = 'manage'
    704704
    705 class StudyCourseManageFormPage(WAeUPEditFormPage):
     705class StudyCourseManageFormPage(SIRPEditFormPage):
    706706    """ Page to edit the student study course data
    707707    """
     
    773773        return
    774774
    775 class StudyLevelDisplayFormPage(WAeUPDisplayFormPage):
     775class StudyLevelDisplayFormPage(SIRPDisplayFormPage):
    776776    """ Page to display student study levels
    777777    """
     
    854854    target = 'manage'
    855855
    856 class StudyLevelManageFormPage(WAeUPEditFormPage):
     856class StudyLevelManageFormPage(SIRPEditFormPage):
    857857    """ Page to edit the student study level data
    858858    """
     
    913913        return
    914914
    915 class CourseTicketAddFormPage(WAeUPAddFormPage):
     915class CourseTicketAddFormPage(SIRPAddFormPage):
    916916    """Add a course ticket.
    917917    """
     
    956956        self.redirect(self.url(self.context))
    957957
    958 class CourseTicketDisplayFormPage(WAeUPDisplayFormPage):
     958class CourseTicketDisplayFormPage(SIRPDisplayFormPage):
    959959    """ Page to display course tickets
    960960    """
     
    983983    target = 'manage'
    984984
    985 class CourseTicketManageFormPage(WAeUPEditFormPage):
     985class CourseTicketManageFormPage(SIRPEditFormPage):
    986986    """ Page to manage course tickets
    987987    """
     
    10071007
    10081008# We don't need the display form page yet
    1009 #class PaymentsDisplayFormPage(WAeUPDisplayFormPage):
     1009#class PaymentsDisplayFormPage(SIRPDisplayFormPage):
    10101010#    """ Page to display the student payments
    10111011#    """
     
    10281028
    10291029# This manage form page is for both students and students officers.
    1030 class PaymentsManageFormPage(WAeUPEditFormPage):
     1030class PaymentsManageFormPage(SIRPEditFormPage):
    10311031    """ Page to manage the student payments
    10321032    """
     
    10931093#    target = 'manage'
    10941094
    1095 class OnlinePaymentAddFormPage(WAeUPAddFormPage):
     1095class OnlinePaymentAddFormPage(SIRPAddFormPage):
    10961096    """ Page to add an online payment ticket
    10971097    """
     
    11521152        return
    11531153
    1154 class OnlinePaymentDisplayFormPage(WAeUPDisplayFormPage):
     1154class OnlinePaymentDisplayFormPage(SIRPDisplayFormPage):
    11551155    """ Page to view an online payment ticket
    11561156    """
     
    12791279
    12801280# We don't need the display form page yet
    1281 #class AccommodationDisplayFormPage(WAeUPDisplayFormPage):
     1281#class AccommodationDisplayFormPage(SIRPDisplayFormPage):
    12821282#    """ Page to display the student accommodation data
    12831283#    """
     
    12951295
    12961296# This manage form page is for both students and students officers.
    1297 class AccommodationManageFormPage(WAeUPEditFormPage):
     1297class AccommodationManageFormPage(SIRPEditFormPage):
    12981298    """ Page to manage bed tickets.
    12991299    """
     
    13581358    target = 'add'
    13591359
    1360 class BedTicketAddPage(WAeUPPage):
     1360class BedTicketAddPage(SIRPPage):
    13611361    """ Page to add an online payment ticket
    13621362    """
     
    14491449        return
    14501450
    1451 class BedTicketDisplayFormPage(WAeUPDisplayFormPage):
     1451class BedTicketDisplayFormPage(SIRPDisplayFormPage):
    14521452    """ Page to display bed tickets
    14531453    """
     
    15761576        return
    15771577
    1578 class StudentHistoryPage(WAeUPPage):
     1578class StudentHistoryPage(SIRPPage):
    15791579    """ Page to display student clearance data
    15801580    """
     
    16241624        return self.view.url(self.view.context, self.target)
    16251625
    1626 class StudentBaseEditFormPage(WAeUPEditFormPage):
     1626class StudentBaseEditFormPage(SIRPEditFormPage):
    16271627    """ View to edit student base data
    16281628    """
     
    16411641        return
    16421642
    1643 class StudentChangePasswordPage(WAeUPEditFormPage):
     1643class StudentChangePasswordPage(SIRPEditFormPage):
    16441644    """ View to manage student base data
    16451645    """
     
    16681668        return
    16691669
    1670 class StudentFilesUploadPage(WAeUPPage):
     1670class StudentFilesUploadPage(SIRPPage):
    16711671    """ View to upload files by student
    16721672    """
     
    17011701        return self.view.url(self.view.context, self.target)
    17021702
    1703 class StartClearancePage(WAeUPPage):
     1703class StartClearancePage(SIRPPage):
    17041704    grok.context(IStudent)
    17051705    grok.name('start_clearance')
     
    18231823        return
    18241824
    1825 class RequestClearancePage(WAeUPPage):
     1825class RequestClearancePage(SIRPPage):
    18261826    grok.context(IStudent)
    18271827    grok.name('request_clearance')
     
    18701870        return self.view.url(self.view.context, self.target)
    18711871
    1872 class StartCourseRegistrationPage(WAeUPPage):
     1872class StartCourseRegistrationPage(SIRPPage):
    18731873    grok.context(IStudentStudyCourse)
    18741874    grok.name('start_course_registration')
     
    19391939        return self.view.url(self.view.context, self.target)
    19401940
    1941 class AddStudyLevelFormPage(WAeUPEditFormPage):
     1941class AddStudyLevelFormPage(SIRPEditFormPage):
    19421942    """ Page for students to add current study levels
    19431943    """
     
    19951995        return self.view.url(self.view.context, self.target)
    19961996
    1997 class StudyLevelEditFormPage(WAeUPEditFormPage):
     1997class StudyLevelEditFormPage(SIRPEditFormPage):
    19981998    """ Page to edit the student study level data by students
    19991999    """
  • main/waeup.sirp/trunk/src/waeup/sirp/students/interfaces.py

    r7304 r7321  
    2020from zope import schema
    2121from waeup.sirp.interfaces import (
    22     IWAeUPObject, academic_sessions_vocab, validate_email)
     22    ISIRPObject, academic_sessions_vocab, validate_email)
    2323from waeup.sirp.schema import TextLineChoice
    2424from waeup.sirp.university.vocabularies import CourseSource, study_modes
     
    5656        """
    5757
    58 class IStudentsContainer(IWAeUPObject):
     58class IStudentsContainer(ISIRPObject):
    5959    """A students container contains university students.
    6060
     
    9595        """
    9696
    97 class IStudentNavigation(IWAeUPObject):
     97class IStudentNavigation(ISIRPObject):
    9898    """Interface needed for student navigation.
    9999
     
    104104        """
    105105
    106 class IStudentBase(IWAeUPObject):
     106class IStudentBase(ISIRPObject):
    107107    """Representation of student base data.
    108108
     
    173173        )
    174174
    175 class IStudentClearance(IWAeUPObject):
     175class IStudentClearance(ISIRPObject):
    176176    """Representation of student clearance data.
    177177
     
    194194        )
    195195
    196 class IStudentPersonal(IWAeUPObject):
     196class IStudentPersonal(ISIRPObject):
    197197    """Representation of student personal data.
    198198
     
    228228        )
    229229
    230 class IStudentStudyCourse(IWAeUPObject):
     230class IStudentStudyCourse(ISIRPObject):
    231231    """A container for student study levels.
    232232
     
    295295        )
    296296
    297 class IStudentStudyLevel(IWAeUPObject):
     297class IStudentStudyLevel(ISIRPObject):
    298298    """A container for course tickets.
    299299
     
    317317        )
    318318
    319 class ICourseTicket(IWAeUPObject):
     319class ICourseTicket(ISIRPObject):
    320320    """A course ticket.
    321321
     
    362362        )
    363363
    364 class IStudentAccommodation(IWAeUPObject):
     364class IStudentAccommodation(ISIRPObject):
    365365    """A container for student accommodation objects.
    366366
    367367    """
    368368
    369 class IBedTicket(IWAeUPObject):
     369class IBedTicket(ISIRPObject):
    370370    """A ticket for accommodation booking.
    371371
  • main/waeup.sirp/trunk/src/waeup/sirp/students/student.py

    r7256 r7321  
    2727from waeup.sirp.interfaces import (
    2828    IObjectHistory, IUserAccount, IFileStoreNameChooser, IFileStoreHandler)
    29 from waeup.sirp.image import WAeUPImageFile
     29from waeup.sirp.image import SIRPImageFile
    3030from waeup.sirp.imagestorage import DefaultFileStoreHandler
    3131from waeup.sirp.students.interfaces import (
     
    257257            StudentFileStoreHandler, self).createFile(
    258258            store, root,  filename, file_id, file)
    259         return file, path, WAeUPImageFile(
     259        return file, path, SIRPImageFile(
    260260            file_obj.filename, file_obj.data)
  • main/waeup.sirp/trunk/src/waeup/sirp/students/viewlets.py

    r7319 r7321  
    2121from zope.interface import Interface
    2222from waeup.sirp.interfaces import (
    23     IWAeUPObject, IExtFileStore, IFileStoreNameChooser)
     23    ISIRPObject, IExtFileStore, IFileStoreNameChooser)
    2424from waeup.sirp.utils.helpers import string_from_bytes, file_size
    2525from waeup.sirp.browser import DEFAULT_IMAGE_PATH
     
    3232from waeup.sirp.students.interfaces import IStudent, IStudentClearance
    3333
    34 grok.context(IWAeUPObject) # Make IWAeUPObject the default context
     34grok.context(ISIRPObject) # Make ISIRPObject the default context
    3535grok.templatedir('browser_templates')
    3636
     
    4747    grok.baseclass()
    4848    grok.viewletmanager(StudentManageSidebar)
    49     grok.context(IWAeUPObject)
     49    grok.context(ISIRPObject)
    5050    grok.view(Interface)
    5151    grok.order(5)
     
    108108    grok.baseclass()
    109109    grok.viewletmanager(StudentMenu)
    110     grok.context(IWAeUPObject)
     110    grok.context(ISIRPObject)
    111111    grok.view(Interface)
    112112    grok.order(5)
     
    162162    """
    163163
    164     grok.context(IWAeUPObject)
     164    grok.context(ISIRPObject)
    165165    grok.order(4)
    166166    grok.require('waeup.viewStudentsTab')
  • main/waeup.sirp/trunk/src/waeup/sirp/students/vocabularies.py

    r7214 r7321  
    2525from zc.sourcefactory.basic import BasicSourceFactory
    2626from zc.sourcefactory.contextual import BasicContextualSourceFactory
    27 from waeup.sirp.interfaces import SimpleWAeUPVocabulary
     27from waeup.sirp.interfaces import SimpleSIRPVocabulary
    2828from waeup.sirp.students.lgas import LGAS
    2929from waeup.sirp.university.vocabularies import course_levels
    3030
    31 lgas_vocab = SimpleWAeUPVocabulary(
     31lgas_vocab = SimpleSIRPVocabulary(
    3232    *sorted([(x[1],x[0]) for x in LGAS]))
    3333
     
    7171        return title
    7272
    73 verdicts = SimpleWAeUPVocabulary(
     73verdicts = SimpleSIRPVocabulary(
    7474    ('not yet','0'),
    7575    ('Successful student','A'),
  • main/waeup.sirp/trunk/src/waeup/sirp/students/workflow.py

    r7133 r7321  
    55from hurry.workflow.interfaces import IWorkflowState, IWorkflowTransitionEvent
    66from waeup.sirp.interfaces import (
    7     IObjectHistory, IWAeUPWorkflowInfo,
     7    IObjectHistory, ISIRPWorkflowInfo,
    88    CREATED, ADMITTED, CLEARANCE, REQUESTED, CLEARED, PAID, RETURNING,
    99    REGISTERED, VALIDATED)
    10 from waeup.sirp.workflow import WAeUPWorkflow, WAeUPWorkflowInfo
     10from waeup.sirp.workflow import SIRPWorkflow, SIRPWorkflowInfo
    1111from waeup.sirp.utils.helpers import get_current_principal
    1212from waeup.sirp.students.interfaces import IStudent
     
    152152UNLOCK_CLEARANCE_TRANS = ('reset3', 'reset4', 'start_clearance')
    153153
    154 registration_workflow = WAeUPWorkflow(REGISTRATION_TRANSITIONS)
     154registration_workflow = SIRPWorkflow(REGISTRATION_TRANSITIONS)
    155155
    156156class RegistrationWorkflowState(WorkflowState, grok.Adapter):
     
    163163    state_id = 'wf.registration.id'
    164164
    165 class RegistrationWorkflowInfo(WAeUPWorkflowInfo, grok.Adapter):
     165class RegistrationWorkflowInfo(SIRPWorkflowInfo, grok.Adapter):
    166166    """Adapter to adapt Student objects to workflow info objects.
    167167    """
    168168    grok.context(IStudent)
    169     grok.provides(IWAeUPWorkflowInfo)
     169    grok.provides(ISIRPWorkflowInfo)
    170170
    171171    def __init__(self, context):
Note: See TracChangeset for help on using the changeset viewer.