Changeset 7321 for main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Timestamp:
- 10 Dec 2011, 06:15:17 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/applicant.py
r7270 r7321 24 24 from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState 25 25 from waeup.sirp.app import University 26 from waeup.sirp.image import WAeUPImageFile26 from waeup.sirp.image import SIRPImageFile 27 27 from waeup.sirp.imagestorage import DefaultFileStoreHandler 28 28 from waeup.sirp.interfaces import ( … … 220 220 ApplicantImageStoreHandler, self).createFile( 221 221 store, root, filename, file_id, file) 222 return file, path, WAeUPImageFile(222 return file, path, SIRPImageFile( 223 223 file_obj.filename, file_obj.data) 224 224 -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r7318 r7321 34 34 from reportlab.platypus.tables import TableStyle 35 35 from waeup.sirp.browser import ( 36 WAeUPPage, WAeUPEditFormPage, WAeUPAddFormPage, WAeUPDisplayFormPage)36 SIRPPage, SIRPEditFormPage, SIRPAddFormPage, SIRPDisplayFormPage) 37 37 from waeup.sirp.browser.breadcrumbs import Breadcrumb 38 38 from waeup.sirp.browser.layout import NullValidator … … 41 41 from waeup.sirp.browser.viewlets import ManageActionButton, PrimaryNavTab 42 42 from waeup.sirp.interfaces import ( 43 I WAeUPObject, ILocalRolesAssignable, IExtFileStore,43 ISIRPObject, ILocalRolesAssignable, IExtFileStore, 44 44 IFileStoreNameChooser, IPasswordValidator, IUserAccount) 45 45 from waeup.sirp.permissions import get_users_with_local_roles … … 60 60 from waeup.sirp.students.interfaces import IStudentsUtils 61 61 62 grok.context(I WAeUPObject) # Make IWAeUPObject the default context63 64 class ApplicantsRootPage( WAeUPPage):62 grok.context(ISIRPObject) # Make ISIRPObject the default context 63 64 class ApplicantsRootPage(SIRPPage): 65 65 grok.context(IApplicantsRoot) 66 66 grok.name('index') … … 81 81 text = 'Manage application section' 82 82 83 class ApplicantsRootManageFormPage( WAeUPEditFormPage):83 class ApplicantsRootManageFormPage(SIRPEditFormPage): 84 84 grok.context(IApplicantsRoot) 85 85 grok.name('manage') … … 151 151 return del_local_roles(self,2,**data) 152 152 153 class ApplicantsContainerAddFormPage( WAeUPAddFormPage):153 class ApplicantsContainerAddFormPage(SIRPAddFormPage): 154 154 grok.context(IApplicantsRoot) 155 155 grok.require('waeup.manageApplication') … … 229 229 """Applicants tab in primary navigation. 230 230 """ 231 grok.context(I WAeUPObject)231 grok.context(ISIRPObject) 232 232 grok.order(3) 233 233 grok.require('waeup.viewApplicantsTab') … … 273 273 return self.view.application_url() + rel_link 274 274 275 class ApplicantsContainerPage( WAeUPDisplayFormPage):275 class ApplicantsContainerPage(SIRPDisplayFormPage): 276 276 """The standard view for regular applicant containers. 277 277 """ … … 311 311 # target = 'login' 312 312 313 class ApplicantsContainerManageFormPage( WAeUPEditFormPage):313 class ApplicantsContainerManageFormPage(SIRPEditFormPage): 314 314 grok.context(IApplicantsContainer) 315 315 grok.name('manage') … … 404 404 return del_local_roles(self,3,**data) 405 405 406 class ApplicantAddFormPage( WAeUPAddFormPage):406 class ApplicantAddFormPage(SIRPAddFormPage): 407 407 """Add-form to add an applicant. 408 408 """ … … 431 431 return 432 432 433 class ApplicantDisplayFormPage( WAeUPDisplayFormPage):433 class ApplicantDisplayFormPage(SIRPDisplayFormPage): 434 434 grok.context(IApplicant) 435 435 grok.name('index') … … 532 532 533 533 534 class OnlinePaymentDisplayFormPage( WAeUPDisplayFormPage):534 class OnlinePaymentDisplayFormPage(SIRPDisplayFormPage): 535 535 """ Page to view an online payment ticket 536 536 """ … … 700 700 pdf.setAuthor('%s (%s)' % (self.request.principal.title, 701 701 self.request.principal.id)) 702 pdf.setCreator(' WAeUP SIRP')702 pdf.setCreator('SIRP SIRP') 703 703 width, height = A4 704 704 style = getSampleStyleSheet() … … 802 802 return True 803 803 804 class ApplicantManageFormPage( WAeUPEditFormPage):804 class ApplicantManageFormPage(SIRPEditFormPage): 805 805 """A full edit view for applicant data. 806 806 """ -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py
r7317 r7321 30 30 from waeup.sirp.schema import TextLineChoice 31 31 from waeup.sirp.interfaces import ( 32 I WAeUPObject, year_range, validate_email, academic_sessions_vocab)32 ISIRPObject, year_range, validate_email, academic_sessions_vocab) 33 33 from waeup.sirp.university.vocabularies import application_categories 34 34 from waeup.sirp.students.vocabularies import ( … … 118 118 factory.container_title, factory.container_description) 119 119 120 class IApplicantsRoot(I WAeUPObject, IContainer):120 class IApplicantsRoot(ISIRPObject, IContainer): 121 121 """A container for university applicants containers. 122 122 """ 123 123 pass 124 124 125 class IApplicantsContainer(I WAeUPObject):125 class IApplicantsContainer(ISIRPObject): 126 126 """An applicants container contains university applicants. 127 127 … … 275 275 'provider'].order = IApplicantsContainer['provider'].order 276 276 277 class IApplicantBaseData(I WAeUPObject):277 class IApplicantBaseData(ISIRPObject): 278 278 """The data for an applicant. 279 279 -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/root.py
r7192 r7321 23 23 from hurry.query.interfaces import IQuery 24 24 from zope.component import getUtility 25 from waeup.sirp.interfaces import I WAeUPSIRPPluggable25 from waeup.sirp.interfaces import ISIRPPluggable 26 26 from waeup.sirp.applicants.interfaces import IApplicantsRoot 27 27 from waeup.sirp.utils.helpers import get_current_principal … … 49 49 50 50 class ApplicantsPlugin(grok.GlobalUtility): 51 """A WAeUPSIRPPlugin that creates an applicants root in portal.51 """A SIRPPlugin that creates an applicants root in portal. 52 52 53 53 This plugin should be called by a typical … … 56 56 the main site configuration. 57 57 58 Implements :class:`waeup.sirp.interfaces.I WAeUPSIRPPluggable`58 Implements :class:`waeup.sirp.interfaces.ISIRPPluggable` 59 59 """ 60 60 grok.name('applicants') 61 grok.implements(I WAeUPSIRPPluggable)61 grok.implements(ISIRPPluggable) 62 62 log_prefix = 'ApplicantsPlugin' 63 63 -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_applicant.py
r7260 r7321 26 26 from zope.interface import verify, implements 27 27 from zope.location.interfaces import ILocation 28 from waeup.sirp.image.interfaces import I WAeUPImageFile28 from waeup.sirp.image.interfaces import ISIRPImageFile 29 29 from waeup.sirp.imagestorage import DefaultStorage 30 30 from waeup.sirp.interfaces import IFileStoreHandler, IFileStoreNameChooser … … 38 38 class FakeImageLocation(object): 39 39 implements(ILocation) 40 adapts(I WAeUPImageFile)40 adapts(ISIRPImageFile) 41 41 def __init__(self, context): 42 42 pass -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/vocabularies.py
r7192 r7321 20 20 from zope.component import getUtility 21 21 from zope.catalog.interfaces import ICatalog 22 from waeup.sirp.interfaces import Simple WAeUPVocabulary22 from waeup.sirp.interfaces import SimpleSIRPVocabulary 23 23 from waeup.sirp.students.vocabularies import CertificateSource 24 24 … … 37 37 ) 38 38 39 #: A :class:`waeup.sirp.interfaces.Simple WAeUPVocabulary` of supported39 #: A :class:`waeup.sirp.interfaces.SimpleSIRPVocabulary` of supported 40 40 #: application or screening types. 41 application_types_vocab = Simple WAeUPVocabulary(41 application_types_vocab = SimpleSIRPVocabulary( 42 42 *[(x[0],x[1]) for x in APPLICATION_TYPES]) 43 application_pins_vocab = Simple WAeUPVocabulary(43 application_pins_vocab = SimpleSIRPVocabulary( 44 44 *[(u"%s (%s)" % (x[2],x[0]),x[2]) for x in APPLICATION_TYPES]) 45 45 -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/workflow.py
r7250 r7321 22 22 from hurry.workflow.interfaces import IWorkflowState, IWorkflowTransitionEvent 23 23 from waeup.sirp.applicants.interfaces import IApplicantBaseData 24 from waeup.sirp.interfaces import IObjectHistory, I WAeUPWorkflowInfo25 from waeup.sirp.workflow import WAeUPWorkflow, WAeUPWorkflowInfo24 from waeup.sirp.interfaces import IObjectHistory, ISIRPWorkflowInfo 25 from waeup.sirp.workflow import SIRPWorkflow, SIRPWorkflowInfo 26 26 from waeup.sirp.utils.helpers import get_current_principal 27 27 … … 127 127 ) 128 128 129 application_workflow = WAeUPWorkflow(APPLICATION_TRANSITIONS)129 application_workflow = SIRPWorkflow(APPLICATION_TRANSITIONS) 130 130 131 131 class ApplicationWorkflowState(WorkflowState, grok.Adapter): … … 138 138 state_id = 'wf.application.id' 139 139 140 class ApplicationWorkflowInfo( WAeUPWorkflowInfo, grok.Adapter):140 class ApplicationWorkflowInfo(SIRPWorkflowInfo, grok.Adapter): 141 141 """Adapter to adapt Applicant objects to workflow info objects. 142 142 """ 143 143 grok.context(IApplicantBaseData) 144 grok.provides(I WAeUPWorkflowInfo)144 grok.provides(ISIRPWorkflowInfo) 145 145 146 146 def __init__(self, context):
Note: See TracChangeset for help on using the changeset viewer.