Changeset 1261 for WAeUP_SRP


Ignore:
Timestamp:
10 Jan 2007, 23:44:44 (18 years ago)
Author:
joachim
Message:

getCredential fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTool.py

    r1255 r1261  
    7171    ###)
    7272
    73     security.declareProtected(ModifyPortalContent,'getCredential')
     73    security.declareProtected(ModifyPortalContent,'getCredential') ###(
    7474    def getCredential(self,student_id):
    7575        "return a student password"
     
    7777        if student_entry is None:
    7878            return None
    79         else:
    80             return student_entry.password
     79        return getattr(student_entry.password,"not set")
     80    ###)
    8181
    8282    security.declareProtected(ModifyPortalContent,'createOne') ###(
     
    138138        member = membership.getMemberById(sid)
    139139        self.portal_registration.afterAdd(member, sid, password, None)
    140         self.manage_setLocalRoles(sid, ['Owner',])
     140        #self.manage_setLocalRoles(sid, ['Owner',])
    141141    ###)
    142142
Note: See TracChangeset for help on using the changeset viewer.