Changeset 3961 for WAeUP_SRP


Ignore:
Timestamp:
12 Feb 2009, 07:35:52 (16 years ago)
Author:
Henrik Bettermann
Message:

Widgets.admitOneStudent: entry_session and session must start with '0'
fixSessionKey.py: fix students_catalog, won't be used, because we will import fresh student data with session and entry_session columns. Only 08 students are affected.

Location:
WAeUP_SRP/trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTool.py

    r3858 r3961  
    963963            logger.info('no entry_session for %s provided' % (reg_no))
    964964            return
     965        else:
     966            es = brain.entry_session
     967        if len(es) == 1:
     968            es = '0%c' % es
    965969
    966970        if not hasattr(self,"_v_certificates"):
     
    10421046
    10431047        #da['entry_session'] = entry_session
    1044         da['entry_session'] = brain.entry_session
     1048        da['entry_session'] = es
    10451049        da['jamb_lastname'] = brain.lastname
    10461050        da['jamb_middlename'] = brain.middlenames   # different field names!
     
    11061110        else:
    11071111            dsc['current_level'] = '100'
    1108         dsc['current_session'] = brain.entry_session
     1112        dsc['current_session'] = es
    11091113        studycourse.getContent().edit(mapping=dsc)
    11101114        self.do_timing()
  • WAeUP_SRP/trunk/Widgets.py

    r3897 r3961  
    295295            v = str(value)
    296296        except ValueError:
    297             datastructure.setError(widget_id, "'%s' not a valid session key" % value)
     297            datastructure.setError(widget_id, "'%s' not a valid mode key" % value)
    298298            return 0
    299299        studymodes = self._getStudyModes()
     
    302302        #import pdb;pdb.set_trace()
    303303        if not studymodes.has_key(value):
    304             datastructure.setError(widget_id, "'%s' not a valid session key" % v)
     304            datastructure.setError(widget_id, "'%s' not a valid mode key" % v)
    305305            return 0
    306306        if self.is_required and not len(v):
    307             datastructure.setError(widget_id, "session key required")
     307            datastructure.setError(widget_id, "mode key required")
    308308            return 0
    309309
  • WAeUP_SRP/trunk/skins/waeup_utilities/checkApprovedAmount.py

    r3935 r3961  
    4242        continue
    4343    counter +=1
    44     if counter == 5:
    45         break
    4644    logger.info('%s, %s, %s, %s, %s ,%s' % (payment.student_id, payment.order_id, payment.amount, payment.resp_approved_amount, payment.surcharge, payment.resp_desc))
    4745
Note: See TracChangeset for help on using the changeset viewer.