- Timestamp:
- 26 Nov 2011, 18:07:42 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/showstudentspage.pt
r7205 r7215 7 7 <tr> 8 8 <th>Student Id</th><th>Fullname</th> 9 <th>Status</th> 10 <th>Certificate</th> 11 <th>Current Session</th> 12 <th>Current Level</th> 9 13 </tr> 10 14 </thead> … … 14 18 <span tal:content="item/student_id">A123456</span></a> 15 19 </td> 16 <td tal:content="item/fullname">Bob</td> 20 <td tal:content="item/fullname">FULLNAME</td> 21 <td tal:content="item/state">STATE</td> 22 <td> 23 <a tal:attributes="href python: view.url(item.certificate)" 24 tal:content="item/certificate/code"> 25 CERTIFICATE 26 </a> 27 </td> 28 <td tal:content="item/current_session">SESSION</td> 29 <td tal:content="item/current_level">LEVEL</td> 17 30 </tr> 18 31 </tbody> -
main/waeup.sirp/trunk/src/waeup/sirp/students/catalog.py
r7203 r7215 24 24 from zope.catalog.interfaces import ICatalog 25 25 from zope.component import queryUtility 26 from waeup.sirp.interfaces import IUniversity, IQueryResultItem 26 from waeup.sirp.interfaces import ( 27 IUniversity, IQueryResultItem, academic_sessions_vocab) 27 28 from waeup.sirp.students.interfaces import IStudent 29 from waeup.sirp.university.vocabularies import course_levels 28 30 29 31 class StudentIndexes(grok.Indexes): … … 58 60 self.matric_number = context.matric_number 59 61 self.state = context.state 62 try: 63 current_level = course_levels.getTerm( 64 context['studycourse'].current_level).title 65 except LookupError: 66 current_level = None 67 self.current_level = current_level 68 try: 69 current_session = academic_sessions_vocab.getTerm( 70 context['studycourse'].current_session).title 71 except LookupError: 72 current_session = None 73 self.current_session = current_session 74 self.certificate = context['studycourse'].certificate 60 75 61 76 def search(query=None, searchtype=None, view=None):
Note: See TracChangeset for help on using the changeset viewer.