Changeset 512


Ignore:
Timestamp:
13 Sep 2006, 10:56:29 (18 years ago)
Author:
joachim
Message:

fixed app_doc bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Students.py

    r511 r512  
    423423        """make the student a member"""
    424424        dp = {'Title': 'Personal Data'}
    425         names = self.application.getContent().jamb_lastname.split()
     425        app_doc = self.application.getContent()
     426        names = app_doc.jamb_lastname.split()
    426427        if len(names) == 3:
    427428            dp['firstname'] = names[0].capitalize()
     
    433434        else:
    434435            dp['lastname'] = app_doc.jamb_lastname
    435             dp['sex'] = app_doc.jamb_sex == 'F'
    436             dp['lga'] = "%s/%s" % (app_doc.jamb_state,app_doc.jamb_lga )
     436        dp['sex'] = app_doc.jamb_sex == 'F'
     437        dp['lga'] = "%s/%s" % (app_doc.jamb_state,app_doc.jamb_lga )
    437438        proxy = self.aq_parent
    438439        proxy.invokeFactory('StudentPersonal','personal')
    439440        per = proxy.personal
    440441        per_doc = per.getContent()
     442        per_doc.edit(mapping = dp)
    441443        per.manage_setLocalRoles(self.getId(), ['Owner',])
    442444        self.portal_workflow.doActionFor(per,'open',dest_container=per)
    443         per_doc.edit(mapping = dp)
    444445       
    445446###)
Note: See TracChangeset for help on using the changeset viewer.