Changeset 1435 for WAeUP_SRP/trunk/skins
- Timestamp:
- 19 Feb 2007, 10:35:10 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_default/waeup_edit.py
r1424 r1435 30 30 url = context.absolute_url() + '?' + urlencode(args) 31 31 REQUEST.RESPONSE.redirect(url) 32 32 33 33 is_valid, ds = doc.validate(request=REQUEST, proxy=context, cluster=cluster, 34 34 use_session=True) … … 81 81 if ds.get('sex'): 82 82 jamb_sex = 'F' 83 app_doc.edit(mapping={'jamb_lastname': name, 84 'jamb_sex': jamb_sex 85 }) 83 84 # originally imported data must be kept; app_doc should not be changed here 85 #app_doc.edit(mapping={'jamb_lastname': name, 86 # 'jamb_sex': jamb_sex 87 # }) 88 86 89 context.students_catalog.modifyRecord(id = student_id, 87 90 name = name, -
WAeUP_SRP/trunk/skins/waeup_student/getApplicationInfo.py
r1161 r1435 43 43 info['app'] = student.application 44 44 info['app_doc'] = student.application.getContent() 45 #info['name'] = context.getStudentName() 45 46 return info -
WAeUP_SRP/trunk/skins/waeup_student/getStudyCourseInfo.py
r1417 r1435 45 45 current_level = sbrain.level 46 46 levels = context.objectIds() 47 context.portal_workflow.doActionFor(context,'close_for_edit') 48 47 49 #levels.sort() 48 50 #if int(current_level) > int(levels[-1]): 49 if not levels: 50 context.invokeFactory('StudentStudyLevel',"%s" % current_level) 51 level = getattr(context,"%s" % current_level) 52 level.getContent().edit(mapping={'session': "2006/2007"}) 53 context.portal_workflow.doActionFor(level,'open') 54 context.portal_workflow.doActionFor(level,'close_for_edit') 55 levels.append(current_level) 56 #from Products.zdb import set_trace;set_trace() 57 for l in levels: 58 row = {} 59 row['id'] = l 60 row['title'] = "Level %s" % l 61 row['url'] = "%s/%s" % (context.absolute_url(),l) 62 items.append(row) 51 #if not levels: 52 # context.invokeFactory('StudentStudyLevel',"%s" % current_level) 53 # level = getattr(context,"%s" % current_level) 54 # level.getContent().edit(mapping={'session': "2006/2007"}) 55 # context.portal_workflow.doActionFor(level,'open') 56 # context.portal_workflow.doActionFor(level,'close_for_edit') 57 # levels.append(current_level) 58 #for l in levels: 59 # row = {} 60 # row['id'] = l 61 # row['title'] = "Level %s" % l 62 # row['url'] = "%s/%s" % (context.absolute_url(),l) 63 # items.append(row) 63 64 64 65 info['items'] = items -
WAeUP_SRP/trunk/skins/waeup_student/layout_application_view.pt
r980 r1435 9 9 'app_ac_date', 10 10 'app_email', 11 'app_mobile', 12 'jamb_lastname', 13 'jamb_sex',)" 11 'app_mobile',)" 14 12 > 15 13 <table cellpadding="2" cellspacing="2" summary="layout"> 16 14 <tr> 15 <td valign="top"><span class="dlabel">Name</span>: 16 </td> 17 <td> 18 <span tal:content="python:context.getStudentBaseInfo()['student']['name']" /> 19 </td> 20 </tr> 21 <tr> 22 <td valign="top"><span class="dlabel">Sex</span>: 23 </td> 24 <td> 25 <span tal:content="python:context.getStudentBaseInfo()['student']['sex']" /> 26 </td> 27 </tr> 28 <tr valign="top"> 17 29 <td><span class="dlabel">Student ID</span>: 18 30 </td> 19 31 <td> 20 <span tal:replace="python:here.aq_parent.aq_parent.id" />32 <span tal:content="python:context.getStudentBaseInfo()['id']" /> 21 33 </td> 22 34 </tr> -
WAeUP_SRP/trunk/skins/waeup_student/layout_application_view_info.pt
r871 r1435 5 5 dm options/datastructure/getDataModel; 6 6 widgets python:context.getRenderedWidgets(layout); 7 fields python:('jamb_reg_no',' jamb_lastname','jamb_sex','app_email','app_mobile')"7 fields python:('jamb_reg_no','app_email','app_mobile')" 8 8 > 9 9 … … 17 17 <table width="" cellpadding="2" cellspacing="0" summary="Form layout"> 18 18 <tr> 19 <td width="180px"><span class="dlabel">Student ID</span>:19 <td valign="top" width="180px"><span class="dlabel">Name</span>: 20 20 </td> 21 21 <td> 22 <span tal: replace="python:here.aq_parent.aq_parent.id" />22 <span tal:content="python:context.getStudentBaseInfo()['student']['name']" /> 23 23 </td> 24 24 </tr> 25 <tr> 26 <td valign="top" width="180px"><span class="dlabel">Sex</span>: 27 </td> 28 <td> 29 <span tal:content="python:context.getStudentBaseInfo()['student']['sex']" /> 30 </td> 31 </tr> 32 <tr valign="top"> 33 <td><span class="dlabel">Student ID</span>: 34 </td> 35 <td> 36 <span tal:content="python:context.getStudentBaseInfo()['id']" /> 37 </td> 38 </tr> 39 25 40 <tr tal:repeat="field fields"> 26 41 <tal:block tal:define="cell python: widgets[field]"> -
WAeUP_SRP/trunk/skins/waeup_student/layout_application_view_slip.pt
r985 r1435 10 10 'app_email', 11 11 'app_mobile', 12 'jamb_lastname',13 'jamb_sex',14 12 'entry_mode', 15 13 'jamb_state', … … 28 26 <table width="" cellpadding="2" cellspacing="0" summary="Form layout"> 29 27 <tr> 28 <td valign="top"><span class="dlabel">Name</span>: 29 </td> 30 <td> 31 <span tal:content="python:context.getStudentBaseInfo()['student']['name']" /> 32 </td> 33 </tr> 34 <tr> 35 <td valign="top"><span class="dlabel">Sex</span>: 36 </td> 37 <td> 38 <span tal:content="python:context.getStudentBaseInfo()['student']['sex']" /> 39 </td> 40 </tr> 41 <tr valign="top"> 30 42 <td><span class="dlabel">Student ID</span>: 31 43 </td> 32 44 <td> 33 <span tal: replace="python:here.aq_parent.aq_parent.id" />45 <span tal:content="python:context.getStudentBaseInfo()['id']" /> 34 46 </td> 35 47 </tr> … … 40 52 id python:widget.getHtmlWidgetId()+'_widget';" 41 53 > 42 <td >54 <td valign="top"> 43 55 <span class="dlabel" 44 56 tal:condition="widget/label" 45 57 tal:content="widget/label">label</span>: 46 58 </td> 47 <td >59 <td valign="top"> 48 60 <span tal:replace="structure cell/widget_rendered" /> 49 61 </td>
Note: See TracChangeset for help on using the changeset viewer.