Changeset 519


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

set local role Owner also for Student

Location:
WAeUP_SRP/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Students.py

    r512 r519  
    335335            logger.info('%(tr_count)s: Creating Student with ID %(sid)s REG-NO %(jamb_reg_no)s ' % vars())
    336336            student = getattr(self,sid)
     337            student.manage_setLocalRoles(sid, ['Owner',])
    337338            student.invokeFactory('StudentApplication','application')
    338339            da = {'Title': 'Application Data'}
  • WAeUP_SRP/trunk/Widgets.py

    r513 r519  
    277277
    278278        )
    279     valid_pins = ['12345678',
    280                   '23456789',
    281                   '34567890',
    282                   '45678901',
    283                   ]
    284279    prefix = ''
    285280    reference = ''
     
    330325                    break
    331326                s_id = student.getId()
    332                 if self.portal_workflow.getInfoFor(student,
    333                                                    'review_state',
    334                                                    None) =="created":
    335                     student.content_status_modify(workflow_action="enter_application_pin")
    336327                if ok == 2:
    337328                    break
     329##                if self.portal_workflow.getInfoFor(student,
     330##                                                   'review_state',
     331##                                                   None) == "created":
     332##                    student.content_status_modify(workflow_action="enter_application_pin")
    338333                student.getContent().makeStudentMember(s_id,password=pin[4:])
    339334            break
  • WAeUP_SRP/trunk/skins/waeup_default/process_waeup_login.py

    r511 r519  
    1616student = getattr(context.students,member_id)
    1717application = student.application
    18 ##student.content_status_modify(workflow_action="enter_application_pin")
     18student.content_status_modify(workflow_action="enter_application_pin")
    1919da = {}
    2020pin = request.get('pin')
Note: See TracChangeset for help on using the changeset viewer.