Changeset 5202 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
23 May 2010, 04:26:23 (14 years ago)
Author:
Henrik Bettermann
Message:

add metadata firstname, middlename and lastname in students_catalog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_utilities/fillMetadata.py

    r5200 r5202  
    3636        continue
    3737    #from Products.zdb import set_trace;set_trace()
    38     marit_stat = per.getContent().marit_stat
     38    per_doc = per.getContent()
     39    marit_stat = per_doc.marit_stat
    3940    if marit_stat == True:
    4041        ms = 'married'
     
    4344    else:
    4445        ms = 'undefined'
     46    fn = per_doc.firstname
     47    mn = per_doc.middlename
     48    ln = per_doc.lastname
    4549       
    4650    clear = getattr(student,'clearance',None)
     
    5357        bd = ''
    5458               
    55     context.students_catalog.modifyRecord(id = sbrain.id,marit_stat = ms, date_of_birth = bd)
     59    context.students_catalog.modifyRecord(id = sbrain.id,marit_stat = ms, date_of_birth = bd,firstname = fn, middlename = mn,lastname = ln)
    5660return 'ready'
    5761   
Note: See TracChangeset for help on using the changeset viewer.