Changeset 2304


Ignore:
Timestamp:
3 Oct 2007, 14:57:35 (17 years ago)
Author:
Henrik Bettermann
Message:

add group StudentsReaders? and allow to send password reminders

Location:
WAeUP_SRP/base
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPTool.py

    r2300 r2304  
    338338###)
    339339
    340     security.declareProtected(ModifyPortalContent,'getCredential') ###(
     340    security.declareProtected(View,'getCredential') ###(
    341341    def getCredential(self,student_id):
    342342        "return a student password"
  • WAeUP_SRP/base/exportimport.py

    r2258 r2304  
    8787                                         roles=('SectionOfficer',))
    8888        if students is not None:
     89            students.manage_setLocalGroupRoles(groupid = 'StudentsReaders',
     90                                              roles=('SectionReader',))
    8991            students.manage_setLocalGroupRoles(groupid = 'ClearanceOfficers',
    9092                                              roles=('SectionReader',))
     
    130132    importWAeUPTable(site.portal_catalog, '', context,'portal_catalog')
    131133    importWAeUPTable(site.portal_catalog_real, '', context,'portal_catalog_real')
    132    
     134
    133135    site.portal_catalog.id = 'portal_catalog'
    134136    site.portal_catalog_real.id = 'portal_catalog_real'
    135    
     137
    136138
    137139from Products.CPSCore.exportimport.catalog import CatalogToolXMLAdapter
  • WAeUP_SRP/base/skins/waeup_student/student_view.pt

    r2059 r2304  
    104104     
    105105               
    106       <span tal:condition="python:info['member'].id in
    107                          ('admin','joachim','kehindesamuel','med','isouaba','obadejo',
    108                           'ehioaiks','despej','shinakale','igadoghe','benamechi','edafeohwo')">
    109106      <br />
    110107      <form action="mail_password_form" method="post" class="group"
     
    112109         <input type="submit" class="context" value="Send Email with Authentication Data" />
    113110      </form>
    114       </span>
    115111
    116112
  • WAeUP_SRP/base/skins/waeup_student/students_index.py

    r2030 r2304  
    2424
    2525if "ClearanceOfficers" in member.getGroups() or\
     26   "StudentsReaders" in member.getGroups() or\
    2627   "CourseAdvisers" in member.getGroups():
    2728    return redirect("%s/campus/students/search_students" % context.portal_url())
     
    3132    id = str(member)
    3233    return redirect("%s/%s/student_view" % (students_url, id))
    33    
     34
    3435return redirect("%s/srp_invalid_access" % context.portal_url())
Note: See TracChangeset for help on using the changeset viewer.