Ignore:
Timestamp:
6 Dec 2006, 10:46:32 (18 years ago)
Author:
joachim
Message:

edit app_ac_pin if not set (logged_in.py)
set default to all states (search students)

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/check_admission.py

    r997 r999  
    4848elif psm == 'valid':
    4949    s_id = ds.get('s_id')
     50<<<<<<< .mine
     51    if is_anon and not s_id:
     52        return context.check_admission_pin_form(rendered = res,
     53                                 psm = "You are not allowed to do this in this context",
     54                                 #psm = "%s, %s" % (psm,ds),
     55                                 firstlayout = True,
     56                                 lastlayout = True,
     57                                 ds = ds,
     58                                 )
     59    elif not is_anon:
     60        return context.check_admission_pin_form(rendered = res,
     61                                 psm = "You are logged in",
     62                                 #psm = "%s, %s" % (psm,ds),
     63                                 firstlayout = True,
     64                                 lastlayout = True,
     65                                 ds = ds,
     66                                 )
     67=======
    5068    if is_anon and not s_id:
    5169        return context.check_admission_pin_form(rendered = res,
     
    6482                                 ds = ds,
    6583                                 )
     84>>>>>>> .r998
    6685## 
    6786##    email = ds.get('app_email')
  • WAeUP_SRP/trunk/skins/waeup_student/search_students.py

    r985 r999  
    5050validate = request.has_key("cpsdocument_edit_button")
    5151default = {'search_mode': 'name',
    52         'review_state': 'clearance_requested',
     52        'review_state': 'all',
    5353        'search_string': ''
    5454        }
  • WAeUP_SRP/trunk/skins/waeup_student/student_index.py

    r903 r999  
    1616redirect = request.RESPONSE.redirect
    1717pm = context.portal_membership
     18member = pm.getAuthenticatedMember()
    1819
    1920if context.isStaff():
     
    2526        return context.clearance_view()
    2627    elif context.portal_type == 'Student':
    27         return redirect("%s/student_view" % context.absolute_url())
     28        return redirect("%s/student_view" % context.absolute_url())
    2829    return redirect("%s/waeup_document_view" % context.absolute_url())
    2930if context.isStudent():
    30     info = context.getStudentInfo()
    31     student = info['student']
     31    students = context.portal_url.getPortalObject().campus.students
     32    student = getattr(students,str(member))
    3233    return redirect("%s/student_view" % student.absolute_url())
    3334
Note: See TracChangeset for help on using the changeset viewer.