Changeset 3481
- Timestamp:
- 1 May 2008, 05:53:28 (17 years ago)
- Location:
- WAeUP_SRP/base
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/Payment.py
r3274 r3481 26 26 security = ClassSecurityInfo() 27 27 28 security.declareProtected(View,"Title")29 def Title(self):30 """compose title"""31 return "Payments"28 #security.declareProtected(View,"Title") 29 #def Title(self): 30 # """compose title""" 31 # return "Payments" 32 32 33 33 … … 70 70 # return "%(description)s, Naira %(amount)s, %(pay_date)s" % vars() 71 71 72 security.declareProtected(View,"Title")73 def Title(self):74 """compose title"""75 payment = self.getContent()76 vocabularies = self.portal_vocabularies77 78 if payment.status == 'invalid':79 return "Invalid Payment, Naira %s, %s" % (payment.amount,80 payment.date.strftime("%d/%m/%y %H:%M:%S"))81 82 return "%s for Session %s, Naira %s, %s" % (vocabularies.payment_categories.get(payment.category),83 vocabularies.sessions.get(payment.session_id),84 payment.amount,85 payment.date.strftime("%d/%m/%y %H:%M:%S"))72 #security.declareProtected(View,"Title") 73 #def Title(self): 74 # """compose title""" 75 # payment = self.getContent() 76 # vocabularies = self.portal_vocabularies 77 78 # if payment.status == 'invalid': 79 # return "Invalid Payment, Naira %s, %s" % (payment.amount, 80 # payment.date.strftime("%d/%m/%y %H:%M:%S")) 81 82 # return "%s for Session %s, Naira %s, %s" % (vocabularies.payment_categories.get(payment.category), 83 # vocabularies.sessions.get(payment.session_id), 84 # payment.amount, 85 # payment.date.strftime("%d/%m/%y %H:%M:%S")) 86 86 87 87 -
WAeUP_SRP/base/Students.py
r3473 r3481 666 666 def createSubObjects(self): 667 667 """make the student a member""" 668 dp = {'Title': 'Personal Data'}668 #dp = {'Title': 'Personal Data'} 669 669 app_doc = self.application.getContent() 670 670 names = app_doc.jamb_lastname.split() … … 898 898 # return "%s" % ce.Title 899 899 # return "No course with id %s" % cid 900 900 901 901 InitializeClass(StudentCourseResult) 902 902 -
WAeUP_SRP/base/WAeUPImport.py
r3431 r3481 672 672 'StudentApplication': 673 673 {'id': 'application', 674 'title': 'Application Data',674 #'title': 'Application Data', 675 675 'wf_transition_return': 'close', 676 676 'wf_transition_admit': 'remain', … … 698 698 'StudentClearance': 699 699 {'id': 'clearance', 700 'title': 'Clearance/Eligibility Record',700 #'title': 'Clearance/Eligibility Record', 701 701 'wf_transition_return': 'close', 702 702 'wf_transition_admit': 'remain', … … 710 710 'StudentPersonal': 711 711 {'id': 'personal', 712 'title': 'Personal Data',712 #'title': 'Personal Data', 713 713 'wf_transition_return': 'open', 714 714 'wf_transition_admit': 'remain', … … 725 725 'StudentStudyCourse': 726 726 {'id': 'study_course', 727 'title': 'Study Course',727 #'title': 'Study Course', 728 728 'wf_transition_return': 'open', 729 729 'wf_transition_admit': 'remain', … … 749 749 'PaymentsFolder': 750 750 {'id': 'payments', 751 'title': 'Payments',751 #'title': 'Payments', 752 752 'wf_transition_return': 'open', 753 753 'wf_transition_admit': 'open', … … 796 796 sub_obj = getattr(student_obj,f2t[pt]['id']) 797 797 sub_doc = sub_obj.getContent() 798 d['Title'] = f2t[pt]['title']798 #d['Title'] = f2t[pt]['title'] 799 799 for field in f2t[pt]['fields']: 800 800 d[field] = mapping.get(field,'') … … 915 915 continue 916 916 sub_obj = getattr(student_obj,object_id) 917 if f2t[pt]['title'] != '':918 d['Title'] = f2t[pt]['title']917 #if f2t[pt]['title'] != '': 918 # d['Title'] = f2t[pt]['title'] 919 919 sub_doc = sub_obj.getContent() 920 920 for field in intersect: -
WAeUP_SRP/base/WAeUPTool.py
r3473 r3481 697 697 students_folder.invokeFactory('Student', sid) 698 698 student_obj = getattr(students_folder,sid) 699 f2t = self.field2types_student699 f2t = StudentImport.field2types_student 700 700 #from pdb import set_trace; set_trace() 701 701 d = {} … … 720 720 sub_doc = sub_obj.getContent() 721 721 #self.portal_workflow.doActionFor(sub_obj,'open',dest_container=sub_obj) 722 d['Title'] = f2t[pt]['title']722 #d['Title'] = f2t[pt]['title'] 723 723 for field in f2t[pt]['fields']: 724 724 d[field] = dict.get(field,'') -
WAeUP_SRP/base/skins/waeup_epayment/payments_view.pt
r3226 r3481 19 19 <span tal:condition="not:is_student" tal:omit-tag=""> 20 20 <span tal:content="s_name" />:</span> 21 <span tal:condition="is_student" tal:omit-tag="">My</span> <span tal:content="here/title_or_id" />21 <span tal:condition="is_student" tal:omit-tag="">My</span> Payments 22 22 </h3> 23 23 <br />
Note: See TracChangeset for help on using the changeset viewer.