Changeset 892 for WAeUP_SRP/trunk
- Timestamp:
- 18 Nov 2006, 21:14:18 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_academics/create_certificate.py
r486 r892 28 28 create = 1, 29 29 type_name = type_name, 30 psm = 'Please correct your errors ',30 psm = 'Please correct your errors!', 31 31 ) 32 32 elif psm == '': … … 36 36 psm = psm, 37 37 ) 38 38 39 39 elif psm == 'valid': 40 40 oid = "%s" % ds.get('code').replace(' ','') 41 context.invokeFactory(type_name,oid) 41 context.invokeFactory(type_name,oid) 42 42 object = getattr(context,oid) 43 43 ds.set('Title',ds.get('heading')) 44 44 object.getContent().edit(mapping=ds,proxy=object) 45 45 context.notifyCPSDocumentCreation(ob=object) 46 psm = 'new %s created ' % oid47 context_ti = context.portal_types[context.portal_type] 46 psm = 'new %s created!' % oid 47 context_ti = context.portal_types[context.portal_type] 48 48 index = context_ti.getActionById('view','university_view') 49 49 return getattr(context,index)(psm=psm) -
WAeUP_SRP/trunk/skins/waeup_academics/create_course.py
r280 r892 28 28 create = 1, 29 29 type_name = type_name, 30 psm = 'Please correct your errors ',30 psm = 'Please correct your errors!', 31 31 ) 32 32 elif psm == '': … … 36 36 psm = psm, 37 37 ) 38 38 39 39 elif psm == 'valid': 40 40 oid = "%s" % ds.get('code').replace(' ','') 41 context.invokeFactory(type_name,oid) 41 context.invokeFactory(type_name,oid) 42 42 object = getattr(context,oid) 43 43 ds.set('Title',ds.get('heading')) 44 44 object.getContent().edit(mapping=ds,proxy=object) 45 45 context.notifyCPSDocumentCreation(ob=object) 46 psm = 'new %s created ' % oid47 context_ti = context.portal_types[context.portal_type] 46 psm = 'new %s created!' % oid 47 context_ti = context.portal_types[context.portal_type] 48 48 index = context_ti.getActionById('view','university_view') 49 49 return getattr(context,index)(psm=psm) -
WAeUP_SRP/trunk/skins/waeup_academics/create_studycourse.py
r486 r892 28 28 create = 1, 29 29 type_name = type_name, 30 psm = 'Please correct your errors ',30 psm = 'Please correct your errors!', 31 31 ) 32 32 elif psm == '': … … 36 36 psm = psm, 37 37 ) 38 38 39 39 elif psm == 'valid': 40 40 oid = "%s" % ds.get('code').replace(' ','') 41 context.invokeFactory(type_name,oid) 41 context.invokeFactory(type_name,oid) 42 42 object = getattr(context,oid) 43 43 ds.set('Title',ds.get('heading')) 44 44 object.getContent().edit(mapping=ds,proxy=object) 45 45 context.notifyCPSDocumentCreation(ob=object) 46 psm = 'new %s created ' % oid47 context_ti = context.portal_types[context.portal_type] 46 psm = 'new %s created!' % oid 47 context_ti = context.portal_types[context.portal_type] 48 48 index = context_ti.getActionById('view','university_view') 49 49 return getattr(context,index)(psm=psm) -
WAeUP_SRP/trunk/skins/waeup_academics/department_created.py
r486 r892 29 29 dict = {'Title': 'Certificates'} 30 30 o.getContent().edit(mapping=dict) 31 psm = 'Department with Certificates and Courses created '31 psm = 'Department with Certificates and Courses created!' 32 32 action_path = context.getTypeInfo().immediate_view 33 33 context.REQUEST.RESPONSE.redirect('%s/%s?portal_status_message=%s' % -
WAeUP_SRP/trunk/skins/waeup_academics/level_created.py
r614 r892 31 31 #o.getContent().edit(mapping=dict) 32 32 #context.orderObjects('id') 33 psm = 'Study Level created '33 psm = 'Study Level created!' 34 34 action_path = context.getTypeInfo().immediate_view 35 35 context.REQUEST.RESPONSE.redirect('%s/%s?portal_status_message=%s' % -
WAeUP_SRP/trunk/skins/waeup_academics/searchAcademics.py
r845 r892 53 53 with_review = state != "all" 54 54 if not term and not with_review: 55 psm = "You must specify a search string when searching 'all states' ."55 psm = "You must specify a search string when searching 'all states'!" 56 56 err = True 57 57 elif '*' in term: 58 psm = " you cannot use the '*' alone"58 psm = "Wildcards are not supported!" 59 59 err = True 60 60 if err: -
WAeUP_SRP/trunk/skins/waeup_default/create_common.py
r290 r892 26 26 create = 1, 27 27 type_name = type_name, 28 psm = 'Please correct your errors ',28 psm = 'Please correct your errors!', 29 29 ) 30 30 elif psm == '': … … 34 34 psm = psm, 35 35 ) 36 36 37 37 elif psm == 'valid': 38 38 oid = "%s" % ds.get('Title').replace(' ','') 39 context.invokeFactory(type_name,oid) 40 object = getattr(context,oid) 39 context.invokeFactory(type_name,oid) 40 object = getattr(context,oid) 41 41 object.getContent().edit(mapping=ds) 42 42 context.notifyCPSDocumentCreation(ob=object) 43 psm = 'new %s created ' % oid44 context_ti = context.portal_types[context.portal_type] 43 psm = 'new %s created!' % oid 44 context_ti = context.portal_types[context.portal_type] 45 45 index = context_ti.getActionById('view','university_view') 46 46 return getattr(context,index)(psm=psm) -
WAeUP_SRP/trunk/skins/waeup_student/application_edit.py
r851 r892 45 45 if cpsdocument_edit_button: 46 46 if app_doc.passport is not None: 47 args['portal_status_message'] = 'You successfully uploaded your passport picture .'47 args['portal_status_message'] = 'You successfully uploaded your passport picture!' 48 48 else: 49 args['portal_status_message'] = "You didn't upload a passport picture ."49 args['portal_status_message'] = "You didn't upload a passport picture!" 50 50 elif cpsdocument_edit_and_view_button: 51 51 if app_doc.passport is not None: … … 55 55 return REQUEST.RESPONSE.redirect(url) 56 56 else: 57 args['portal_status_message'] = "You didn't upload a passport picture ."57 args['portal_status_message'] = "You didn't upload a passport picture!" 58 58 if args: 59 59 url = base_url + action + '?' + urlencode(args) -
WAeUP_SRP/trunk/skins/waeup_student/apply_admission.py
r649 r892 30 30 if psm == 'invalid': 31 31 return context.application_pin_form(rendered = res, 32 psm = "Please correct your input .",32 psm = "Please correct your input!", 33 33 #psm = "%s, %s" % (psm,ds), 34 34 firstlayout = True, -
WAeUP_SRP/trunk/skins/waeup_student/check_admission.py
r805 r892 29 29 if psm == 'invalid': 30 30 return context.check_admission_pin_form(rendered = res, 31 psm = "Please correct your input .",31 psm = "Please correct your input!", 32 32 #psm = "%s, %s" % (psm,ds), 33 33 firstlayout = True, -
WAeUP_SRP/trunk/skins/waeup_student/display_pume_result.py
r805 r892 30 30 if psm == 'invalid': 31 31 return context.display_pume_result_form(rendered = res, 32 psm = "Please correct your input .",32 psm = "Please correct your input!", 33 33 #psm = "%s, %s" % (psm,ds), 34 34 firstlayout = True, -
WAeUP_SRP/trunk/skins/waeup_student/reserve_accommodation.py
r856 r892 48 48 if psm == 'invalid': 49 49 return context.accommodation_pin_edit_form(rendered = res, 50 psm = "Please correct your input .",50 psm = "Please correct your input!", 51 51 #psm = "%s, %s" % (psm,ds), 52 52 mode = mode, -
WAeUP_SRP/trunk/skins/waeup_student/searchStudents.py
r891 r892 82 82 bools = "with_review = %s<br\> only_review = %s<br\>" % (with_review,only_review) 83 83 if not term and not with_review: 84 psm = "You must specify a search string when searching 'all states' ."84 psm = "You must specify a search string when searching 'all states'!" 85 85 err = True 86 86 elif '*' in term: 87 psm = " you cannot use the '*' alone"87 psm = "Wildcards are not supported!" 88 88 err = True 89 89 if err: -
WAeUP_SRP/trunk/skins/waeup_student/start_clearance.py
r843 r892 32 32 if app_doc.passport is None: 33 33 return context.clearance_pin_form(rendered = res, 34 psm = "You must upload your passport picture before you can start the registration process .",34 psm = "You must upload your passport picture before you can start the registration process!", 35 35 #psm = "%s, %s" % (psm,ds), 36 36 firstlayout = True, … … 41 41 if psm == 'invalid': 42 42 return context.clearance_pin_form(rendered = res, 43 psm = "Please correct your input .",43 psm = "Please correct your input!", 44 44 #psm = "%s, %s" % (psm,ds), 45 45 firstlayout = True, -
WAeUP_SRP/trunk/skins/waeup_student/student_course_result_created.py
r805 r892 27 27 d[f] = getattr(real_course,f) 28 28 course.getContent().edit(mapping=d) 29 psm = 'CourseResult created '29 psm = 'CourseResult created!' 30 30 action_path = context.getTypeInfo().immediate_view 31 31 context.REQUEST.RESPONSE.redirect('%s/%s?portal_status_message=%s' %
Note: See TracChangeset for help on using the changeset viewer.