Changeset 3967 for WAeUP_SRP


Ignore:
Timestamp:
19 Feb 2009, 10:54:25 (16 years ago)
Author:
Henrik Bettermann
Message:

session, level, and mode widgets must not allow empty strings
So far, the mode vocabulary has only been changed for FUT Minna. Should be changed for other portals too.

Location:
WAeUP_SRP/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Widgets.py

    r3961 r3967  
    351351    def _getSessions(self):
    352352        current_year = DateTime().year()
    353         d = {'': ''}
     353        #d = {'': ''}
     354        d = {}
    354355        for y in range(current_year - 10,current_year + 1):
    355356            d['%s' % str(y)[-2:]] = '%4d/%4d' % (y,y+1)
     
    424425
    425426    def _getLevels(self):
    426         d = {'':'','000':'Pre-Studies'}
     427        #d = {'':'','000':'Pre-Studies'}
     428        d = {'000':'Pre-Studies'}
    427429        for y in range(100,800,100):
    428430            d['%s' % str(y)] = 'Year %1d (%3d Level)' % (y/100,y)
  • WAeUP_SRP/trunk/profiles/futminna/vocabularies/entry_modes.xml

    r3900 r3967  
    66 <property name="description"></property>
    77 <property name="acl_write_roles">Manager</property>
    8  <item key="" msgid=""></item>
    98 <item key="ume_ft" msgid="">UME Full Time</item>
    109 <item key="de_ft" msgid="">Direct Entry Full Time</item>
  • WAeUP_SRP/trunk/skins/waeup_epayment/purgeSFPayments.py

    r3965 r3967  
    3030paid_status = ('school_fee_paid','courses_registered','courses_validated')
    3131students = context.students_catalog(review_state = paid_status)
     32student_total = len(students)
    3233counter = 0
    3334counter_unpaid = 0
    3435commit_after = 100
    3536records_to_del = []
     37student_count = 0
    3638for student in students:
     39    student_count += 1
    3740    to_del = []
    3841    student_id = student.id
     
    4952        if getattr(payments_folder,pid,False):
    5053            to_del += pid,
    51             logger.info('object deleted: %s, %s' % (payment.student_id, pid))
     54            logger.info('object deleted: %s (%d of %d), %s' % (payment.student_id, student_count, student_total, pid))
    5255        else:
    5356            logger.info('no object: %s, %s' % (payment.student_id, pid))
Note: See TracChangeset for help on using the changeset viewer.