Changeset 5202 for WAeUP_SRP


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

add metadata firstname, middlename and lastname in students_catalog

Location:
WAeUP_SRP/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTables.py

    r5200 r5202  
    861861                        'phone',
    862862                        'marit_stat',
     863                        'firstname',
     864                        'middlename',
     865                        'lastname',
    863866                       )
    864867                      },
  • WAeUP_SRP/trunk/profiles/default/students_catalog.xml

    r5200 r5202  
    8181 <column value="date_of_birth"/>
    8282 <column value="marit_stat"/>
     83 <column value="firstname"/>
     84 <column value="middlename"/>
     85 <column value="lastname"/>
    8386 
    8487</object>
  • 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.