Changeset 539
- Timestamp:
- 20 Sep 2006, 10:38:05 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Students.py
r535 r539 350 350 app_doc = app.getContent() 351 351 app_doc.edit(mapping=da) 352 wftool.doActionFor(app,'open',dest_container=app)352 #wftool.doActionFor(app,'open',dest_container=app) 353 353 app.manage_setLocalRoles(sid, ['Owner',]) 354 354 student.getContent().createSubObjects() -
WAeUP_SRP/trunk/profiles/default/roots.xml
r535 r539 4 4 <script script_id=".cpsskins_theme" 5 5 type="Script (Python)" 6 filename="roots/.cpsskins_theme.py" 7 /> 6 /> 8 7 </roots> -
WAeUP_SRP/trunk/skins/waeup_student/student_edit.py
r537 r539 20 20 form in the session. 21 21 """ 22 22 wftool = context.portal_workflow 23 23 from urllib import urlencode 24 24 from Products.CPSDocument.utils import getFormUidUrlArg … … 50 50 use_session=True) 51 51 52 action = "/ student_edit"53 if is_valid :52 action = "/passport_entry_view" 53 if is_valid and app_doc.passport is not None: 54 54 psm = 'You successfully uploaded your passport image.' 55 args = {'apply_button': 'Save and Apply',} 56 else: 57 psm = "You didn't upload a passport image." 55 58 args = {} 56 else:57 psm = 'psm_content_error'58 args = getFormUidUrlArg(REQUEST)59 59 elif 'apply_admission' not in REQUEST.form: 60 60 is_valid, ds = app_doc.validate(request=REQUEST, … … 73 73 else: 74 74 args = getFormUidUrlArg(REQUEST) 75 #psm = 'psm_content_error' 76 psm = '%s' % ds 75 psm = 'psm_content_error' 77 76 else: 78 77 args = {} 78 wftool.doActionFor(app,'close',dest_container= app) 79 79 psm = 'You applied for admission.' 80 80 action = "/application_view" … … 96 96 args = {} 97 97 else: 98 info['app'].content_status_modify(workflow_action="close")99 98 psm = 'psm_content_error' 100 99 args = getFormUidUrlArg(REQUEST)
Note: See TracChangeset for help on using the changeset viewer.