Changeset 1625 for WAeUP_SRP


Ignore:
Timestamp:
22 Mar 2007, 23:53:27 (18 years ago)
Author:
Henrik Bettermann
Message:

import table renamed

Location:
WAeUP_SRP/trunk
Files:
1 added
1 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTables.py

    r1620 r1625  
    236236                         'StudentStudyCourse',
    237237                         )
    238                          
     238
    239239    def __init__(self):
    240240        WAeUPTable.__init__(self, 'students_catalog')
    241241        return
    242    
     242
    243243    def get_review_state(self,sid,application_doc,clearance_doc,personal_doc,study_course_doc): ###(
    244244        "return the students review_state from portal_catalog"
     
    280280            return None
    281281        return getattr(application_doc,'jamb_reg_no',None)
    282    
     282
    283283    def get_faculty(self,sid,application_doc,clearance_doc,personal_doc,study_course_doc):
    284284        "return the students faculty"
     
    302302            return None
    303303        return getattr(clearance_doc,'matric_no',None)
    304        
     304
    305305    def get_name(self,sid,application_doc,clearance_doc,personal_doc,study_course_doc):
    306306        "return the students name from the personal"
     
    332332        """ re-index everything we can find """
    333333        students_folder = self.portal_url.getPortalObject().campus.students
    334        
     334
    335335        cat = self._catalog
    336336        paths = self._catalog.uids.items()
     
    346346            p = paths[i]
    347347            sid = p[0]
    348             pcat_res = self.portal_catalog(id=sid) 
     348            pcat_res = self.portal_catalog(id=sid)
    349349            if len(pcat_res) != 1:
    350350                continue
     
    399399                         'Total time: %s\n'
    400400                         'Total CPU time: %s' % (`elapse`, `c_elapse`)))
    401        
    402        
     401
     402
    403403    security.declarePrivate('notify_event_listener')
    404404    def notify_event_listener(self,event_type,object,infos):
     
    435435            student_id = infos['rpath'].split('/')[2]
    436436            self.fixName(student_id)
    437            
     437
    438438
    439439InitializeClass(StudentsCatalog)
     
    453453###)
    454454
    455 class OnlinePaymentTransactions(WAeUPTable): ###(
     455class OnlinePaymentsImport(WAeUPTable): ###(
    456456
    457457    meta_type = 'WAeUP Online Payment Transactions'
    458     name = "online_payment_transactions"
     458    name = "online_payments_import"
    459459    key = "order_id"
    460460    def __init__(self):
  • WAeUP_SRP/trunk/WAeUPTool.py

    r1620 r1625  
    538538        #from pdb import set_trace
    539539        current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S")
    540         opt = self.online_payment_transactions
     540        opt = self.online_payments_import
    541541        students_folder = self.portal_url.getPortalObject().campus.students
    542542        start = True
     
    562562                format_error = format + ',"%(Error)s"'
    563563            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']
    569569            dup = False
    570570            if response_code == "12":
  • WAeUP_SRP/trunk/doc/srp_documentation.mm

    r1530 r1625  
    88</node>
    99<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">
    1111<node CREATED="1171710559043" ID="Freemind_Link_1592396213" MODIFIED="1171710565212" TEXT="Id: campus"/>
    1212<node CREATED="1170079643589" FOLDED="true" ID="Freemind_Link_1231068129" MODIFIED="1171710686426" TEXT="Academic Section">
     
    4848</node>
    4949</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">
    5151<node CREATED="1171709784119" ID="_" MODIFIED="1171709937449" TEXT="Type: StudentsFolder" VSHIFT="104"/>
    5252<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}">
    5454<node CREATED="1171114205479" ID="Freemind_Link_1051911128" LINK="../profiles/default/types/Student.xml" MODIFIED="1171353141707" TEXT="Type: Student"/>
    5555<node CREATED="1171124926993" ID="Freemind_Link_1838352082" LINK="../profiles/default/schemas/student.xml" MODIFIED="1171353152905" TEXT="Schema: student"/>
     
    171171</node>
    172172</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">
    174174<node CREATED="1170930140692" ID="Freemind_Link_607082969" MODIFIED="1171009488850" TEXT="Id: study_course"/>
    175175<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  
    9090                                              roles=('SectionReader',))
    9191            students.manage_setLocalGroupRoles(groupid = 'CourseAdvisers',
    92                                               roles=('SectionReader',))                                             
     92                                              roles=('SectionReader',))
    9393            students.manage_setLocalGroupRoles(groupid='MemberAdmins',
    9494                                         roles=('SectionOfficer',))
     
    120120    importWAeUPTable(site.courses_catalog, '', context,'courses_catalog')
    121121    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')
    123123    importWAeUPTable(site.portal_pins, '', context,'pins')
    124124    importWAeUPTable(site.portal_pumeresults, '', context,'pumeresults')
  • WAeUP_SRP/trunk/profiles/default/toolset.xml

    r1620 r1625  
    77 <required tool_id="payments_catalog"
    88           class="Products.WAeUP_SRP.WAeUPTables.PaymentsCatalog"/>
    9  <required tool_id="online_payment_transactions"
    10            class="Products.WAeUP_SRP.WAeUPTables.OnlinePaymentTransactions"/>
     9 <required tool_id="online_payments_import"
     10           class="Products.WAeUP_SRP.WAeUPTables.OnlinePaymentsImport"/>
    1111 <required tool_id="portal_pins"
    1212           class="Products.WAeUP_SRP.WAeUPTables.PinTable"/>
  • WAeUP_SRP/trunk/skins/waeup_epayment/check_online_payments.py

    r1624 r1625  
    2727member_id = str(member)
    2828student_id = context.getStudentId()
    29 online_transactions = context.online_payment_transactions
     29online_transactions = context.online_payments_import
    3030try:
    3131    from Products.zdb import set_trace
     
    4747online_payments = aq_portal(query1 & query2)
    4848set_trace()
    49 online_transactions = context.online_payment_transactions
     49online_transactions = context.online_payments_import
    5050
    5151for op_brain in online_payments:
  • WAeUP_SRP/trunk/skins/waeup_epayment/check_transactions.py

    r1624 r1625  
    2727member_id = str(member)
    2828student_id = context.getStudentId()
    29 online_transactions = context.online_payment_transactions
     29online_transactions = context.online_payments_import
    3030def rwrite(s):
    3131    response.setHeader('Content-type','text/html; charset=ISO-8859-15')
Note: See TracChangeset for help on using the changeset viewer.