Changeset 1700 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
23 Apr 2007, 21:16:34 (18 years ago)
Author:
joachim
Message:

students_catalog reindexing implemented.

Location:
WAeUP_SRP/trunk/skins
Files:
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentReviewState.py

    r1490 r1700  
    55##bind script=script
    66##bind subpath=traverse_subpath
    7 ##parameters=
     7##parameters=student_id=None
    88##title=
    99##
     
    1717except:
    1818    aq_portal = None
    19 student_id = context.getStudentId()
     19if student_id is None:
     20    student_id = context.getStudentId()
    2021query = Eq('id',student_id)
    2122res = aq_portal(query)
  • WAeUP_SRP/trunk/skins/waeup_student/list_students.py

    r1668 r1700  
    4949newquery = Eq('portal_type','StudentApplication') & MatchRegexp('SearchableText',r'^6*')
    5050#newquery = MatchRegexp('SearchableText','^5*')
    51 new_students = aq_portal(newquery)
    52 new_sids = []
    53 for ns in new_students:
    54     new_sids.append(ns.getPath().split('/')[-2])
     51#new_students = aq_portal(newquery)
     52#set_trace()
     53#new_sids = []
     54#for ns in new_students:
     55#    new_sids.append(ns.getPath().split('/')[-2])
     56#set_trace()
    5557for student in cleared:
    56     if student.getId not in new_sids:
    57         continue
     58##    if student.getId not in new_sids:
     59##        continue
    5860    erg = scat(id=student.getId)
    5961    if not erg:
     62        continue
     63    if not erg[0].jamb_reg_no.startswith('6'):
    6064        continue
    6165    d = context.getFormattedStudentEntry(erg[0])
  • WAeUP_SRP/trunk/skins/waeup_utilities/readOnlinePaymentsFromLog.py

    r1667 r1700  
    9595                                                  ))
    9696    if payment_doc.resp_code == "" and response_code == "00":
    97         pd = {}
    9897        review_state = wftool.getInfoFor(payment_obj,'review_state',None)
    9998        if review_state != "opened":
     
    104103            logger.info('%s review_state = %s' % (student_id,review_state))
    105104            continue
    106         pd['resp_code'] = 'IP'
    107         pd['resp_desc'] = 'Payment approved by import, %s' % (DateTime.DateTime())
    108         payment_doc.edit(mapping=pd)
     105        readin['resp_code'] = 'IP ' + readin['resp_code']
     106        readin['resp_desc'] = 'Payment approved by logfile import, %s. ' % (DateTime.DateTime()) \
     107                              + readin['resp_desc']
     108        payment_doc.edit(mapping=readin)
    109109        if payment_doc.type_description.startswith('School Fee'):
    110110            wftool.doActionFor(student_obj,'pay_school_fee')
    111         logger.info('%s approves epayment for %s by import' % (member,student_id))
     111        logger.info('%s approves epayment for %s by logfile import' % (member,student_id))
    112112        wftool.doActionFor(payment_obj,'close')
    113113        approved += 1
Note: See TracChangeset for help on using the changeset viewer.