<div dir="ltr"><div><div><div><div>Please let me add one detail.<br></div>When I add this instruction: eventlet.sleep(5) after this line: print 'Detected', change_type, 'of entry:', dn (or this one print 'Detected deletion of entry:', self.__data[uuid]['dn']) the other threads (evt2 and evt3) are executed as well for some time.<br></div>After few seconds the program is blocked an other time in evt1 untill a new update is triggered from the ldap data base.<br><br></div>Please tell me how shall I fix this issue.<br></div>Thanks in advance.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-12 1:27 GMT-08:00 David Gabriel <span dir="ltr"><<a href="mailto:davidgab283@gmail.com" target="_blank">davidgab283@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div>Dear Michael and all<br><br></div>Thank you very much for your help ...<br></div>Kindy find attached my source file.<br></div>I replaced all tabs and I fixed the bugs related to this modification.<br></div>Please note the presence of 3 threads including the syncrepl one.<br></div>When I disable the creation of the syncrepl thread (comment the evt1 lines) the program is alternating the execution of evt3 and evt2. However when I enable it the program is executing only the syncrepl thread and not the 3 threads.<br><br></div>Please help me to fix this issue.<br></div>Thanks in advance.<br></div>Regards<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-01-11 5:51 GMT-08:00 Michael Ströder <span dir="ltr"><<a href="mailto:michael@stroeder.com" target="_blank">michael@stroeder.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>Michael Ströder wrote:<br>
> David Gabriel wrote:<br>
>> Thanks Michael.<br>
>> Kindly find attached my source code.<br>
><br>
> This results in:<br>
><br>
> python -tt tmp/syncrepl3.py 'ldapi://dc=stroeder,dc=de'<br>
>   File "tmp/syncrepl3.py", line 58<br>
>     previous_attributes = dict()<br>
>                                ^<br>
> TabError: inconsistent use of tabs and spaces in indentation<br>
><br>
> Don't use tabs (see PEP-8).<br>
<br>
</span>And opening LDAP connection in the while-loop (line 138) looks also bogus.<br>
<br>
Ciao, Michael.<br>
<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>