diff -r 6cebeb1f386a -r ad0eeb0f7a8d hooks/syncsession.py --- a/hooks/syncsession.py Thu Sep 29 14:07:37 2011 +0200 +++ b/hooks/syncsession.py Thu Sep 29 14:47:04 2011 +0200 @@ -40,7 +40,8 @@ class _GroupOperation(hook.Operation): """base class for group operation""" - geid = None + cnxuser = None # make pylint happy + def __init__(self, session, *args, **kwargs): """override to get the group name before actual groups manipulation: @@ -55,6 +56,7 @@ class _DeleteGroupOp(_GroupOperation): """synchronize user when a in_group relation has been deleted""" + def postcommit_event(self): """the observed connections set has been commited""" groups = self.cnxuser.groups @@ -117,9 +119,9 @@ # CWProperty hooks ############################################################# - class _DelCWPropertyOp(hook.Operation): """a user's custom properties has been deleted""" + cwpropdict = key = None # make pylint happy def postcommit_event(self): """the observed connections set has been commited""" @@ -131,6 +133,7 @@ class _ChangeCWPropertyOp(hook.Operation): """a user's custom properties has been added/changed""" + cwpropdict = key = value = None # make pylint happy def postcommit_event(self): """the observed connections set has been commited""" @@ -139,6 +142,7 @@ class _AddCWPropertyOp(hook.Operation): """a user's custom properties has been added/changed""" + cwprop = None # make pylint happy def postcommit_event(self): """the observed connections set has been commited"""