diff --git a/organize/browser/configure.zcml b/organize/browser/configure.zcml index 3548bed..3aa0336 100644 --- a/organize/browser/configure.zcml +++ b/organize/browser/configure.zcml @@ -152,4 +152,12 @@ permission="zope.ManageServices" menu="zmi_views" title="Prefix" /> + + + + diff --git a/organize/browser/member.py b/organize/browser/member.py index 8abb2d0..7aabe80 100644 --- a/organize/browser/member.py +++ b/organize/browser/member.py @@ -500,3 +500,15 @@ class PasswordReset(PasswordChange): mailhost = component.getUtility(IMailDelivery, 'Mail') mailhost.send(sender, recipients, msg.as_string()) + +class FixPersonRoles(object): + + def __call__(self): + concepts = self.context['concepts'] + for p in concepts['person'].getChildren([concepts['hasType']]): + person = adapted(p) + userId = person.userId + print '***', userId + person.userId = userId + return 'blubb' +