Changeset 3385 for WAeUP_SRP


Ignore:
Timestamp:
27 Mar 2008, 14:03:10 (17 years ago)
Author:
joachim
Message:

fix for #516 enable now works without disabling first.
pins can now be entered with - and leading or trailing spaces
for search.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_pins/enable_pins.py

    r1582 r3385  
    3636    rec = res[0]
    3737    uid = rec.pin
    38     if not rec.student.startswith('disabled'):
    39         continue
     38    student_id = rec.student
     39    # if not rec.student.startswith('disabled'):
     40    #     continue
    4041    dict = {"pin": uid,
    4142            "student": ""
    4243            }
    4344    pincat.modifyRecord(**dict)
    44     logger.info('%s enabled pin %s' % (member,uid))
     45    logger.info('%s enabled pin %s for student %s' % (member,uid,student_id))
    4546return request.RESPONSE.redirect("%s/campus/pins/search_pins" % context.portal_url())
Note: See TracChangeset for help on using the changeset viewer.