From f1b7007883bb4a12d93ecf7de48560e9703cbf36 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Thu, 23 Apr 2015 14:24:59 +1200 Subject: [PATCH] KCC: add a warning about side-effects in RepsFromTo.__setattr__ Signed-off-by: Douglas Bagnall Reviewed-by: Garming Sam Reviewed-by: Andrew Bartlett --- python/samba/kcc/kcc_utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/samba/kcc/kcc_utils.py b/python/samba/kcc/kcc_utils.py index 2f6eed7d188..f20122e9dd3 100644 --- a/python/samba/kcc/kcc_utils.py +++ b/python/samba/kcc/kcc_utils.py @@ -1915,7 +1915,11 @@ class RepsFromTo(object): return text def __setattr__(self, item, value): + """Set an attribute and chyange update flag. + Be aware that setting any RepsFromTo attribute will set the + drsuapi.DRSUAPI_DRS_UPDATE_ADDRESS update flag. + """ if item in ['schedule', 'replica_flags', 'transport_guid', 'source_dsa_obj_guid', 'source_dsa_invocation_id', 'consecutive_sync_failures', 'last_success',