Changeset 841
- Timestamp:
- 11 Nov 2006, 13:32:24 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Widgets.py
r819 r841 329 329 v = datamodel[self.fields[0]] 330 330 #import pdb;pdb.set_trace() 331 #clear_doc = self.getStudentInfo()['clear_doc']332 #vd = getattr(clear_doc,self.fields[0],None)333 ## if not vd:334 ## vd = []335 331 widget_id = self.getWidgetId() 336 332 datastructure[widget_id] = v … … 384 380 raise RuntimeError("Unknown Render Method %s for widget type %s" 385 381 % (render_method, self.getId())) 386 387 # XXX AT: datastructure has to be set again here, in case we're in edit388 # or create mode, because a default value has to be provided.389 382 #import pdb;pdb.set_trace() 390 383 datamodel = datastructure.getDataModel() -
WAeUP_SRP/trunk/profiles/default/vocabularies.xml
r629 r841 3 3 <property name="title"></property> 4 4 <object name="courselevel" meta_type="CPS Vocabulary"/> 5 <object name="exam_subjects" meta_type="CPS Vocabulary"/> 6 <object name="exam_types" meta_type="CPS Vocabulary"/> 7 <object name="exam_grades" meta_type="CPS Vocabulary"/> 5 8 <object name="institution_types_voc" meta_type="CPS Vocabulary"/> 6 9 <object name="get_departments_voc" meta_type="CPS Method Vocabulary"/> -
WAeUP_SRP/trunk/skins/waeup_student/widget_waeup_result_render.pt
r836 r841 6 6 subject options/datastructure/?id_s; 7 7 grade options/datastructure/?id_g; 8 grade_voc context/portal_vocabularies/exam_grades; 9 subjects_voc context/portal_vocabularies/exam_subjects; 8 10 "> 9 11 <tal:block condition="python: mode == 'view'"> 10 12 <div tal:repeat="res results"> 11 <span tal: repeat="col res"><span tal:content="col" /> </span>13 <span tal:content="python:subjects_voc.get(res[0])" /> <span tal:content="python:grade_voc.get(res[1])" /> 12 14 </div> 13 15 </tal:block> … … 17 19 <tr><th>Subject</th><th>Grade</th> 18 20 <tr tal:repeat="res results"> 19 <td tal: repeat="col res" tal:content="col" />21 <td tal:content="python:subjects_voc.get(res[0])" /><td tal:content="python:grade_voc.get(res[1])" /> 20 22 </tr> 21 23 <tr> … … 23 25 tal:attributes="name string:${name}_s; 24 26 id string:${name}_s;"> 25 <option tal:repeat="sub python:(('','----'),('Mathematics','Mathematics'),('English','English'))"27 <option tal:repeat="sub subjects_voc/items" 26 28 tal:attributes="value python:sub[0]" 27 29 tal:content="python: sub[1]"> … … 33 35 tal:attributes="name string:${name}_g; 34 36 id string:${name}_g;"> 35 <option tal:repeat="sub python:(('','-'),('A','A'),('B','B'),('C','C'),('D','D'))"37 <option tal:repeat="sub grade_voc/items" 36 38 tal:attributes="value python:sub[0]" 37 39 tal:content="python: sub[1]">
Note: See TracChangeset for help on using the changeset viewer.