Changeset 10232 for main/waeup.kofa/trunk
- Timestamp:
- 27 May 2013, 06:51:17 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantdisplaypage.pt
r9984 r10232 60 60 <td tal:content ="value/category">CATEGORY</td> 61 61 <td tal:content ="value/display_item">ITEM</td> 62 <td tal:content ="value/ state">STATE</td>62 <td tal:content ="value/p_state_title">STATE</td> 63 63 </tr> 64 64 </tbody> -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicanteditpage.pt
r9984 r10232 110 110 <td tal:content ="cl/category">CATEGORY</td> 111 111 <td tal:content ="cl/display_item">ITEM</td> 112 <td tal:content ="cl/ state">STATE</td>112 <td tal:content ="cl/p_state_title">STATE</td> 113 113 </tr> 114 114 </tbody> -
main/waeup.kofa/trunk/src/waeup/kofa/payments/payment.py
r9987 r10232 57 57 58 58 @property 59 def state(self):59 def p_state_title(self): 60 60 return payment_states.getTermByToken(self.p_state).title 61 61 -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/paymentsmanagepage.pt
r10080 r10232 32 32 <td tal:content ="cl/amount_auth">AMOUNT</td> 33 33 <td tal:content ="cl/p_session">SESSION</td> 34 <td tal:content ="cl/ state">STATE</td>34 <td tal:content ="cl/p_state_title">STATE</td> 35 35 </tr> 36 36 </tbody> -
main/waeup.kofa/trunk/src/waeup/kofa/students/export.py
r10017 r10232 294 294 IStudentOnlinePayment, exclude_attribs=False, 295 295 omit=['display_item']))) + ( 296 'student_id','st udent_state','current_session')296 'student_id','state','current_session') 297 297 298 298 #: The title under which this exporter will be displayed … … 307 307 if context is not None: 308 308 student = context.student 309 if name in ['student_id'] and student is not None: 309 if name in ['student_id','state', 310 'current_session'] and student is not None: 310 311 value = getattr(student, name, None) 311 312 return super( -
main/waeup.kofa/trunk/src/waeup/kofa/students/payments.py
r10030 r10232 63 63 try: 64 64 return self.__parent__.__parent__ 65 except AttributeError:66 return None67 68 @property69 def student_state(self):70 try:71 return self.student.state72 except AttributeError:73 return None74 75 @property76 def current_session(self):77 try:78 return self.student.current_session79 65 except AttributeError: 80 66 return None -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py
r9983 r10232 631 631 'ac,amount_auth,creation_date,p_category,p_current,p_id,' 632 632 'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,' 633 'r_code,r_desc,student_id,st udent_state,current_session\r\n'633 'r_code,r_desc,student_id,state,current_session\r\n' 634 634 635 635 ',0.0,2012-04-01 13:12:01,schoolfee,1,,,,,unpaid,,0.0,,,,,\r\n' … … 649 649 'ac,amount_auth,creation_date,p_category,p_current,p_id,' 650 650 'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,' 651 'r_code,r_desc,student_id,st udent_state,current_session\r\n'651 'r_code,r_desc,student_id,state,current_session\r\n' 652 652 653 653 '666,0.0,2012-04-01 13:12:01,schoolfee,1,my-id,' … … 668 668 'ac,amount_auth,creation_date,p_category,p_current,p_id,' 669 669 'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,' 670 'r_code,r_desc,student_id,st udent_state,current_session\r\n'670 'r_code,r_desc,student_id,state,current_session\r\n' 671 671 672 672 '666,0.0,2012-04-01 13:12:01,schoolfee,1,my-id,' … … 687 687 'ac,amount_auth,creation_date,p_category,p_current,p_id,' 688 688 'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,' 689 'r_code,r_desc,student_id,st udent_state,current_session\r\n'689 'r_code,r_desc,student_id,state,current_session\r\n' 690 690 691 691 '666,0.0,2012-04-01 13:12:01,schoolfee,1,my-id,' … … 709 709 'ac,amount_auth,creation_date,p_category,p_current,p_id,' 710 710 'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,' 711 'r_code,r_desc,student_id,st udent_state,current_session\r\n'711 'r_code,r_desc,student_id,state,current_session\r\n' 712 712 713 713 '666,0.0,2012-04-01 13:12:01,schoolfee,1,my-id,'
Note: See TracChangeset for help on using the changeset viewer.