Ignore:
Timestamp:
16 May 2006, 12:50:17 (19 years ago)
Author:
joachim
Message:

=added doc

Location:
waeup_product/trunk/skins
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • waeup_product/trunk/skins/waeup_default/logged_in.pt

    r125 r204  
    3939                   >
    4040          <tal:block
    41               condition="python:'Students' in member.getGroups()"
     41              condition="python:1 or 'Student' in member.getRoles()"
    4242              tal:define="dummy python: context.process_waeup_login(member=member,sc_pin=request.get('sc_pin'))" />
    4343          <tal:block condition="first_time">
  • waeup_product/trunk/skins/waeup_student/create_jamb.py

    r173 r204  
    5252    try:
    5353        #pr.addMember(s_id, 'UnSeT',roles=('Member','CPSMember','Student','Contributor'))
    54         pr.addMember(s_id, '123456',roles=('Member','CPSMember','Student','Contributor'))
     54        pr.addMember(s_id, '123456',roles=('Member','CPSMember','Student'))
    5555    except:
    5656        noCPSMember = True
    5757    if noCPSMember:
    5858        #pr.addMember(s_id, 'UnSeT',roles=('Member','Student','Contributor'))
    59         pr.addMember(s_id, '123456',roles=('Member','Student','Contributor'))
    60     student.manage_setLocalRoles(s_id, ['Owner'])
    61     jamb.manage_setLocalRoles(s_id, ['Owner'])
    62 ##    student.getContent().setOwnership(s_id)
    63 ##    jamb.getContent().setOwnership(s_id)
    64 ##    groups = context.portal_directories.groups
    65 ##    gm = list(groups.getEntry('Students')['members'])
    66 ##    gm.extend((s_id,))
    67 ##    groups.editEntry({'group': 'Students',
    68 ##                      'members': gm}) 
     59        pr.addMember(s_id, '123456',roles=('Member','Student'))
     60    student.manage_setLocalRoles(s_id, ['Owner',])
     61    jamb.manage_setLocalRoles(s_id, ['Owner',])
    6962    return context.students_folder_view_manager(psm=psm)
    7063
  • waeup_product/trunk/skins/waeup_student/process_waeup_login.py

    r182 r204  
    88response=request.response
    99
    10 if request.form.get('submit') == 'Login':
    11     #waeup = context.portal_catalog(id = 'demouni')[0]
    12     waeup = context.portal_catalog(portal_type = 'University')[0]
    13     if "Manager" in member.getRoles():
    14         return
    15     return response.redirect(waeup.getURL())
     10##if request.form.get('submit') == 'Login':
     11##    #waeup = context.portal_catalog(id = 'demouni')[0]
     12##    waeup = context.portal_catalog(portal_type = 'University')[0]
     13##    if "Manager" in member.getRoles():
     14##        return
     15##    return response.redirect(waeup.getURL())
    1616
    1717member_id = str(member)
Note: See TracChangeset for help on using the changeset viewer.