Changeset 7050 for main/waeup.sirp/branches
- Timestamp:
- 8 Nov 2011, 22:39:05 (13 years ago)
- Location:
- main/waeup.sirp/branches/ulif-extimgstore/src/waeup/sirp/applicants
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/branches/ulif-extimgstore/src/waeup/sirp/applicants/browser.py
r7002 r7050 54 54 ManageActionButton, PrimaryNavTab, LeftSidebarLink 55 55 ) 56 from waeup.sirp.image.browser.widget import (57 ThumbnailWidget, EncodingImageFileWidget,58 )59 56 from waeup.sirp.image.image import createWAeUPImageFile 60 57 from waeup.sirp.interfaces import ( … … 67 64 from waeup.sirp.widgets.objectwidget import ( 68 65 WAeUPObjectWidget, WAeUPObjectDisplayWidget) 69 from waeup.sirp.applicants import ( 70 ResultEntry, Applicant, get_applicant_data, get_regno_or_ac) 66 from waeup.sirp.applicants import ResultEntry, Applicant, get_applicant_data 71 67 from waeup.sirp.applicants.interfaces import ( 72 68 IApplicant, IApplicantPrincipal,IApplicantEdit, IApplicantsRoot, … … 730 726 #storage = queryUtility(IExtFileStorage) 731 727 # filename = '__img_appl__' + str(self.context.reg_no) #upload.filename 732 from waeup.sirp.interfaces import (733 IExtFileStore, IFileStoreNameChooser)734 728 store = getUtility(IExtFileStore) 735 729 file_id = IFileStoreNameChooser(self.context).chooseName() -
main/waeup.sirp/branches/ulif-extimgstore/src/waeup/sirp/applicants/tests/test_interfaces.py
r6340 r7050 25 25 import unittest 26 26 from zc.sourcefactory.browser.source import FactoredTerms 27 from zope.browser.interfaces import ITerms28 from zope.component import getMultiAdapter29 from zope.interface.verify import verifyClass, verifyObject30 27 from zope.publisher.browser import TestRequest 31 from waeup.sirp.applicants import interfaces 32 from waeup.sirp.applicants.vocabularies import ( 33 APPLICATION_TYPES, application_types_vocab, GenderSource, 34 ) 28 from waeup.sirp.applicants.vocabularies import application_types_vocab 29 from waeup.sirp.students.vocabularies import GenderSource 35 30 36 31 class ApplicationCategoriesTestCase(unittest.TestCase): -
main/waeup.sirp/branches/ulif-extimgstore/src/waeup/sirp/applicants/vocabularies.py
r6744 r7050 1 1 """Vocabularies and sources for the application section. 2 2 """ 3 from datetime import datetime4 3 from zope.component import getUtility 5 4 from zope.catalog.interfaces import ICatalog 6 from zc.sourcefactory.basic import BasicSourceFactory7 from zc.sourcefactory.contextual import BasicContextualSourceFactory8 5 from waeup.sirp.interfaces import SimpleWAeUPVocabulary 9 from waeup.sirp.students.lgas import LGAS 10 from waeup.sirp.students.vocabularies import ( 11 CertificateSource, GenderSource) 6 from waeup.sirp.students.vocabularies import CertificateSource 12 7 13 8 #: Types of applications we support. -
main/waeup.sirp/branches/ulif-extimgstore/src/waeup/sirp/applicants/workflow.py
r6644 r7050 2 2 """ 3 3 import grok 4 from datetime import datetime5 4 from hurry.workflow.workflow import Transition, WorkflowState, NullCondition 6 5 from hurry.workflow.interfaces import IWorkflowState, IWorkflowTransitionEvent
Note: See TracChangeset for help on using the changeset viewer.