Changeset 6990 for main/waeup.sirp/trunk/src
- Timestamp:
- 3 Nov 2011, 15:31:49 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/interfaces.py
r6929 r6990 11 11 from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm 12 12 13 CREATED = 'created' 14 ADMITTED = 'admitted' 15 CLEARANCE = 'clearance started' 16 REQUESTED = 'clearance requested' 17 CLEARED = 'cleared' 18 PAID = 'school fee paid' 19 RETURNING = 'returning' 20 REGISTERED = 'courses registered' 21 VALIDATED = 'courses validated' 22 13 23 default_frontpage = u'' + open(os.path.join( 14 24 os.path.dirname(__file__), 'frontpage.rst'), 'rb').read() … … 31 41 32 42 academic_sessions_vocab = SimpleWAeUPVocabulary(*academic_sessions()) 43 44 registration_states_vocab = SimpleWAeUPVocabulary( 45 ('created', CREATED), 46 ('admitted', ADMITTED), 47 ('clearance started', CLEARANCE), 48 ('clearance requested', REQUESTED), 49 ('cleared', CLEARED), 50 ('school fee paid', PAID), 51 ('returning', RETURNING), 52 ('courses registered', REGISTERED), 53 ('courses validated', VALIDATED), 54 ) 33 55 34 56 class FatalCSVError(Exception): … … 208 230 209 231 title = schema.TextLine( 210 title = u'Title of frontpage',232 title = u'Title of Frontpage', 211 233 default = u'Welcome to the Student Information and Registration ' + 212 234 u'Portal of Sample University', … … 225 247 required = False, 226 248 default = default_frontpage, 249 ) 250 251 accommodation_session = schema.Choice( 252 title = u'Accommodation Booking Session', 253 source = academic_sessions_vocab, 254 default = datetime.now().year, 255 required = False, 256 readonly = False, 257 ) 258 259 accommodation_states = schema.List( 260 title = u'Allowed States for Accommodation Booking', 261 value_type = schema.Choice( 262 vocabulary = registration_states_vocab, 263 ), 264 default = [], 227 265 ) 228 266 -
main/waeup.sirp/trunk/src/waeup/sirp/students/workflow.py
r6816 r6990 4 4 from hurry.workflow.workflow import Transition, WorkflowState, NullCondition 5 5 from hurry.workflow.interfaces import IWorkflowState, IWorkflowTransitionEvent 6 from waeup.sirp.interfaces import IObjectHistory, IWAeUPWorkflowInfo 6 from waeup.sirp.interfaces import ( 7 IObjectHistory, IWAeUPWorkflowInfo, 8 CREATED, ADMITTED, CLEARANCE, REQUESTED, CLEARED, PAID, RETURNING, 9 REGISTERED, VALIDATED) 7 10 from waeup.sirp.workflow import WAeUPWorkflow, WAeUPWorkflowInfo 8 11 from waeup.sirp.utils.helpers import get_current_principal 9 12 from waeup.sirp.students.interfaces import IStudent 10 13 from waeup.sirp.students.utils import set_returning_data 11 12 CREATED = 'created'13 ADMITTED = 'admitted'14 CLEARANCE = 'clearance started'15 REQUESTED = 'clearance requested'16 CLEARED = 'cleared'17 PAID = 'school fee paid'18 RETURNING = 'returning'19 REGISTERED = 'courses registered'20 VALIDATED = 'courses validated'21 14 22 15 REGISTRATION_TRANSITIONS = (
Note: See TracChangeset for help on using the changeset viewer.