Mercurial > libervia-backend
comparison src/core/sat_main.py @ 388:a617af506154
core: progress callback now use id as first parameter
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 29 Sep 2011 12:14:19 +0200 |
parents | efbfccfed623 |
children | c34fd9d6242e |
comparison
equal
deleted
inserted
replaced
387:e66d300c5d42 | 388:a617af506154 |
---|---|
577 data['position'] : current possition | 577 data['position'] : current possition |
578 data['size'] : end_position | 578 data['size'] : end_position |
579 """ | 579 """ |
580 data = {} | 580 data = {} |
581 try: | 581 try: |
582 self.__progress_cb_map[id](data) | 582 self.__progress_cb_map[id](id, data) |
583 except KeyError: | 583 except KeyError: |
584 pass | 584 pass |
585 #debug("Requested progress for unknown id") | 585 #debug("Requested progress for unknown id") |
586 return data | 586 return data |
587 | 587 |