Ignore:
Timestamp:
26 Nov 2007, 19:18:09 (17 years ago)
Author:
joachim
Message:

M skins/waeup_student/create_level.py
use course_results for carry_overs

M skins/waeup_pins/pins_view.pt
M skins/waeup_pins/search_pins.py
sort batches in select-box

M Widgets.py
M WAeUPTables.py
M WAeUPTool.py
mass_(create,edit)_courseresults edits verdict in level.

M profiles/default/layouts/application_cest.xml
M profiles/default/applicants_catalog.xml
new meta_data field "serial", index must be added manually

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/Widgets.py

    r2738 r2766  
    2424#from Products.ExtFile.ExtFile import ExtFile
    2525import logging,os,re
     26import random
    2627import operator
    2728p_home = Globals.package_home(globals())
     
    3132
    3233
    33 class WAeUPPasswordWidget(CPSPasswordWidget):
     34class WAeUPPasswordWidget(CPSPasswordWidget): ###(
    3435    """WAeUP Password Widget"""
    3536    meta_type = 'WAeUP Password Widget'
     
    117118
    118119widgetRegistry.register(WAeUPPasswordWidget)
    119 
     120###)
    120121
    121122class CPSSelectWidgetForRecord(CPSSelectWidget): ###(
     
    13201321
    13211322        while do:
    1322             ok = pins.searchAndSetRecord(pin,ref,prefix)
     1323            ok,record = pins.searchAndSetRecord(pin,ref,prefix)
    13231324            if ok < -2 or ok > 2:
    13241325                err = 'Unknown error, please report!'
     
    14731474    def validate(self, datastructure, **kw): ###(
    14741475        """Validate datastructure and update datamodel."""
    1475         #import pdb;pdb.set_trace()
    14761476        s_logger = logging.getLogger('Widgets.ScratchcardPinWidget.validate')
    14771477        widget_id = self.getWidgetId()
     
    15191519                s_logger.info('%s/%s entered wrong data together with PIN %s' % (member_id,ref,pin_str))
    15201520        while do:
    1521             ok = pins.searchAndSetRecord(pin,ref,prefix)
     1521            ok,pin_record = pins.searchAndSetRecord(pin,ref,prefix)
    15221522            if ok < -2 or ok > 2:
    15231523                err = 'Unknown error, please report!'
     
    15561556                        d['reg_no'] = applicant.reg_no
    15571557                        d['pin'] = pin_str
     1558                        d['serial'] = "%c%05d" % (pin_record.prefix_batch[-1],
     1559                                                  pin_record.serial)
    15581560                        #d['screening_type'] = screening_type
    15591561                        #d['status'] = 'entered'
Note: See TracChangeset for help on using the changeset viewer.