Changeset 187 for waeup_product
- Timestamp:
- 17 Nov 2005, 08:21:36 (19 years ago)
- Location:
- waeup_product/trunk/skins/waeup_student
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup_product/trunk/skins/waeup_student/register_level.py
r179 r187 25 25 ) 26 26 if psm == 'invalid': 27 return context. common_edit_form(rendered = res,27 return context.register_level_form(rendered = res, 28 28 create = 1, 29 29 type_name = type_name, … … 31 31 ) 32 32 elif psm == '': 33 return context. common_edit_form(rendered = res,33 return context.register_level_form(rendered = res, 34 34 create = 1, 35 35 type_name = type_name, 36 36 psm = psm, 37 37 ) 38 38 39 39 elif psm == 'valid': 40 40 voc = pv.courselevel … … 42 42 level = getattr(context,level_id,None) 43 43 if level: 44 return context. common_edit_form(rendered = res,44 return context.register_level_form(rendered = res, 45 45 create = 1, 46 46 type_name = type_name, 47 47 psm = "You have already registered for Level %s" % voc.get(level_id) 48 48 ) 49 50 context.invokeFactory(type_name,level_id) 49 50 context.invokeFactory(type_name,level_id) 51 51 object = getattr(context,level_id) 52 52 ds.set('Title',voc.get(level_id)) … … 62 62 semester = getattr(object,semester_id) 63 63 semester.getContent().edit(mapping={'Title': 'Second Semester'}) 64 context_ti = context.portal_types[context.portal_type] 64 context_ti = context.portal_types[context.portal_type] 65 65 index = context_ti.getActionById('view','university_view') 66 66 return getattr(context,index)(psm=psm)
Note: See TracChangeset for help on using the changeset viewer.