--- 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()