Changeset 892 for WAeUP_SRP/trunk/skins/waeup_academics
- Timestamp:
- 18 Nov 2006, 21:14:18 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_academics
- Files:
-
- 6 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:
Note: See TracChangeset for help on using the changeset viewer.