diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2015-04-23 14:24:59 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2015-06-12 06:57:13 +0200 |
commit | f1b7007883bb4a12d93ecf7de48560e9703cbf36 (patch) | |
tree | 288d58cee9df689a7b2d1cb36cd4d6458eab9e7e /python | |
parent | c73a5713533a2d33b11fe26d4459af36869eb396 (diff) | |
download | samba-f1b7007883bb4a12d93ecf7de48560e9703cbf36.tar.gz |
KCC: add a warning about side-effects in RepsFromTo.__setattr__
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/kcc/kcc_utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
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', |