Mercurial > libervia-web
comparison libervia/server/utils.py @ 1509:106bae41f5c8
massive refactoring from camelCase -> snake_case. See backend commit log for more details
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 08 Apr 2023 13:44:11 +0200 |
parents | 822bd0139769 |
children |
comparison
equal
deleted
inserted
replaced
1508:ec3ad9abf9f9 | 1509:106bae41f5c8 |
---|---|
85 self.handlers[self.profile] | 85 self.handlers[self.profile] |
86 | 86 |
87 def register(self, started_cb=None, finished_cb=None, error_cb=None, timeout=30): | 87 def register(self, started_cb=None, finished_cb=None, error_cb=None, timeout=30): |
88 """register the signals to handle progression | 88 """register the signals to handle progression |
89 | 89 |
90 @param started_cb(callable, None): method to call when progressStarted signal is received | 90 @param started_cb(callable, None): method to call when progress_started signal is received |
91 @param finished_cb(callable, None): method to call when progressFinished signal is received | 91 @param finished_cb(callable, None): method to call when progress_finished signal is received |
92 @param error_cb(callable, None): method to call when progressError signal is received | 92 @param error_cb(callable, None): method to call when progress_error signal is received |
93 @param timeout(int): progress time out | 93 @param timeout(int): progress time out |
94 if nothing happen in this progression during this delay, | 94 if nothing happen in this progression during this delay, |
95 an exception is raised | 95 an exception is raised |
96 @return (D(dict[unicode,unicode])): a deferred called when progression is finished | 96 @return (D(dict[unicode,unicode])): a deferred called when progression is finished |
97 """ | 97 """ |