sobjects/ldapparser.py
branchstable
changeset 8639 2fddbe32ae8b
parent 8638 9f95c2368b8b
child 8645 310040c668c0
child 8679 cf4dacc80976
--- a/sobjects/ldapparser.py	Tue Jan 08 15:53:22 2013 +0100
+++ b/sobjects/ldapparser.py	Wed Jan 09 14:29:29 2013 +0100
@@ -90,7 +90,8 @@
         if entity.__regid__ == 'CWUser':
             wf = entity.cw_adapt_to('IWorkflowable')
             if wf.state == 'deactivated':
-                self.warning('update on deactivated user %s', entity.login)
+                wf.fire_transition('activate')
+                self.warning('user %s reactivated', entity.login)
         mdate = attrs.get('modification_date')
         if not mdate or mdate > entity.modification_date:
             attrs = dict( (k, v) for k, v in attrs.iteritems()