Changeset 13801 for main


Ignore:
Timestamp:
5 Apr 2016, 20:00:44 (9 years ago)
Author:
Henrik Bettermann
Message:

See r13181 and r13182.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/authentication.py

    r12189 r13801  
    485485        return
    486486
     487    def delEntry(self, row, site):
     488        user = self.getEntry(row, site)
     489        if user is not None:
     490            parent = self.getParent(row, site)
     491            grok.getSite().logger.info('%s - %s - User removed'
     492                % (self.name, row['name']))
     493            del parent[user.name]
     494        pass
     495
    487496    def updateEntry(self, obj, row, site, filename):
    488497        """Update obj to the values given in row.
     
    520529            UserProcessor, self).checkConversion(row, mode=mode)
    521530        # We need to check if roles exist.
    522         roles = row.get('roles', None)
     531        roles = row.get('roles', IGNORE_MARKER)
    523532        all_roles = [i[0] for i in get_all_roles()]
    524533        if roles not in ('', IGNORE_MARKER):
Note: See TracChangeset for help on using the changeset viewer.