Changeset 1625
- Timestamp:
- 22 Mar 2007, 23:53:27 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 1 added
- 1 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTables.py
r1620 r1625 236 236 'StudentStudyCourse', 237 237 ) 238 238 239 239 def __init__(self): 240 240 WAeUPTable.__init__(self, 'students_catalog') 241 241 return 242 242 243 243 def get_review_state(self,sid,application_doc,clearance_doc,personal_doc,study_course_doc): ###( 244 244 "return the students review_state from portal_catalog" … … 280 280 return None 281 281 return getattr(application_doc,'jamb_reg_no',None) 282 282 283 283 def get_faculty(self,sid,application_doc,clearance_doc,personal_doc,study_course_doc): 284 284 "return the students faculty" … … 302 302 return None 303 303 return getattr(clearance_doc,'matric_no',None) 304 304 305 305 def get_name(self,sid,application_doc,clearance_doc,personal_doc,study_course_doc): 306 306 "return the students name from the personal" … … 332 332 """ re-index everything we can find """ 333 333 students_folder = self.portal_url.getPortalObject().campus.students 334 334 335 335 cat = self._catalog 336 336 paths = self._catalog.uids.items() … … 346 346 p = paths[i] 347 347 sid = p[0] 348 pcat_res = self.portal_catalog(id=sid) 348 pcat_res = self.portal_catalog(id=sid) 349 349 if len(pcat_res) != 1: 350 350 continue … … 399 399 'Total time: %s\n' 400 400 'Total CPU time: %s' % (`elapse`, `c_elapse`))) 401 402 401 402 403 403 security.declarePrivate('notify_event_listener') 404 404 def notify_event_listener(self,event_type,object,infos): … … 435 435 student_id = infos['rpath'].split('/')[2] 436 436 self.fixName(student_id) 437 437 438 438 439 439 InitializeClass(StudentsCatalog) … … 453 453 ###) 454 454 455 class OnlinePayment Transactions(WAeUPTable): ###(455 class OnlinePaymentsImport(WAeUPTable): ###( 456 456 457 457 meta_type = 'WAeUP Online Payment Transactions' 458 name = "online_payment _transactions"458 name = "online_payments_import" 459 459 key = "order_id" 460 460 def __init__(self): -
WAeUP_SRP/trunk/WAeUPTool.py
r1620 r1625 538 538 #from pdb import set_trace 539 539 current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S") 540 opt = self.online_payment _transactions540 opt = self.online_payments_import 541 541 students_folder = self.portal_url.getPortalObject().campus.students 542 542 start = True … … 562 562 format_error = format + ',"%(Error)s"' 563 563 data = {} 564 data['datetime'] = date = DateTime.DateTime(pay_transaction['Date']) 565 data['student_id'] = student_id = pay_transaction['Payer ID'] 566 data['order_id'] = order_id = pay_transaction['Order ID (Tranx Ref)'] 567 data['response_code'] = response_code = pay_transaction['Resp Code'] 568 data['amount'] = amount = pay_transaction['Amount'] 564 data['datetime'] = date = DateTime.DateTime(pay_transaction['Date']) 565 data['student_id'] = student_id = pay_transaction['Payer ID'] 566 data['order_id'] = order_id = pay_transaction['Order ID (Tranx Ref)'] 567 data['response_code'] = response_code = pay_transaction['Resp Code'] 568 data['amount'] = amount = pay_transaction['Amount'] 569 569 dup = False 570 570 if response_code == "12": -
WAeUP_SRP/trunk/doc/srp_documentation.mm
r1530 r1625 8 8 </node> 9 9 <node CREATED="1172489529057" ID="Freemind_Link_43083883" MODIFIED="1172489545651" POSITION="right" TEXT="SRP Data Structure"> 10 <node CREATED="1170079621592" FOLDED="true"ID="Freemind_Link_1297017754" MODIFIED="1170079640872" TEXT="Campus">10 <node CREATED="1170079621592" ID="Freemind_Link_1297017754" MODIFIED="1170079640872" TEXT="Campus"> 11 11 <node CREATED="1171710559043" ID="Freemind_Link_1592396213" MODIFIED="1171710565212" TEXT="Id: campus"/> 12 12 <node CREATED="1170079643589" FOLDED="true" ID="Freemind_Link_1231068129" MODIFIED="1171710686426" TEXT="Academic Section"> … … 48 48 </node> 49 49 </node> 50 <node CREATED="1170082138244" FOLDED="true"ID="Freemind_Link_1354366927" MODIFIED="1171710679266" TEXT="Student Section">50 <node CREATED="1170082138244" ID="Freemind_Link_1354366927" MODIFIED="1171710679266" TEXT="Student Section"> 51 51 <node CREATED="1171709784119" ID="_" MODIFIED="1171709937449" TEXT="Type: StudentsFolder" VSHIFT="104"/> 52 52 <node CREATED="1171710545564" ID="Freemind_Link_221165828" MODIFIED="1171710551332" TEXT="Id: students"/> 53 <node CREATED="1170082147831" FOLDED="true"ID="Freemind_Link_115332414" MODIFIED="1171709774415" TEXT="{Student}">53 <node CREATED="1170082147831" ID="Freemind_Link_115332414" MODIFIED="1171709774415" TEXT="{Student}"> 54 54 <node CREATED="1171114205479" ID="Freemind_Link_1051911128" LINK="../profiles/default/types/Student.xml" MODIFIED="1171353141707" TEXT="Type: Student"/> 55 55 <node CREATED="1171124926993" ID="Freemind_Link_1838352082" LINK="../profiles/default/schemas/student.xml" MODIFIED="1171353152905" TEXT="Schema: student"/> … … 171 171 </node> 172 172 </node> 173 <node CREATED="1170082392807" FOLDED="true"ID="Freemind_Link_1979443941" MODIFIED="1171711179966" TEXT="Study Course">173 <node CREATED="1170082392807" ID="Freemind_Link_1979443941" MODIFIED="1171711179966" TEXT="Study Course"> 174 174 <node CREATED="1170930140692" ID="Freemind_Link_607082969" MODIFIED="1171009488850" TEXT="Id: study_course"/> 175 175 <node CREATED="1170930264337" ID="Freemind_Link_1384807180" LINK="../profiles/default/types/StudentStudyCourse.xml" MODIFIED="1172159914623" TEXT="Type: StudentStudyCourse"/> -
WAeUP_SRP/trunk/exportimport.py
r1620 r1625 90 90 roles=('SectionReader',)) 91 91 students.manage_setLocalGroupRoles(groupid = 'CourseAdvisers', 92 roles=('SectionReader',)) 92 roles=('SectionReader',)) 93 93 students.manage_setLocalGroupRoles(groupid='MemberAdmins', 94 94 roles=('SectionOfficer',)) … … 120 120 importWAeUPTable(site.courses_catalog, '', context,'courses_catalog') 121 121 importWAeUPTable(site.payments_catalog, '', context,'payments_catalog') 122 importWAeUPTable(site.online_payment _transactions, '', context,'online_payment_transactions')122 importWAeUPTable(site.online_payments_import, '', context,'online_payments_import') 123 123 importWAeUPTable(site.portal_pins, '', context,'pins') 124 124 importWAeUPTable(site.portal_pumeresults, '', context,'pumeresults') -
WAeUP_SRP/trunk/profiles/default/toolset.xml
r1620 r1625 7 7 <required tool_id="payments_catalog" 8 8 class="Products.WAeUP_SRP.WAeUPTables.PaymentsCatalog"/> 9 <required tool_id="online_payment _transactions"10 class="Products.WAeUP_SRP.WAeUPTables.OnlinePayment Transactions"/>9 <required tool_id="online_payments_import" 10 class="Products.WAeUP_SRP.WAeUPTables.OnlinePaymentsImport"/> 11 11 <required tool_id="portal_pins" 12 12 class="Products.WAeUP_SRP.WAeUPTables.PinTable"/> -
WAeUP_SRP/trunk/skins/waeup_epayment/check_online_payments.py
r1624 r1625 27 27 member_id = str(member) 28 28 student_id = context.getStudentId() 29 online_transactions = context.online_payment _transactions29 online_transactions = context.online_payments_import 30 30 try: 31 31 from Products.zdb import set_trace … … 47 47 online_payments = aq_portal(query1 & query2) 48 48 set_trace() 49 online_transactions = context.online_payment _transactions49 online_transactions = context.online_payments_import 50 50 51 51 for op_brain in online_payments: -
WAeUP_SRP/trunk/skins/waeup_epayment/check_transactions.py
r1624 r1625 27 27 member_id = str(member) 28 28 student_id = context.getStudentId() 29 online_transactions = context.online_payment _transactions29 online_transactions = context.online_payments_import 30 30 def rwrite(s): 31 31 response.setHeader('Content-type','text/html; charset=ISO-8859-15')
Note: See TracChangeset for help on using the changeset viewer.