Univention Bugzilla – Attachment 9248 Details for
Bug 45540
univention.admin.modules.update() is not thread safe
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
udm_init_thread_save.py
udm_init_thread_save.py (text/x-python), 509 bytes, created by
Florian Best
on 2017-10-13 18:04:57 CEST
(
hide
)
Description:
udm_init_thread_save.py
Filename:
MIME Type:
Creator:
Florian Best
Created:
2017-10-13 18:04:57 CEST
Size:
509 bytes
patch
obsolete
>import univention.admin.modules >univention.admin.modules.update() > >import threading >import time >running = True >def reload(): > while running: > time.sleep(0.5) > univention.admin.modules.update() > >thread = threading.Thread(target=reload) >thread.start() >lo, po = univention.admin.uldap.getMachineConnection() >while True: > time.sleep(0.2) > try: > univention.admin.modules.init(lo, po, univention.admin.modules.get('users/user')) > except: > running = False > print univention.admin.modules.modules.keys() > raise
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 45540
: 9248 |
9249