Merge lp:~bertrand-rousseau/gtg/bug-988235 into lp:~gtg/gtg/old-trunk
Proposed by
Bertrand Rousseau
Status: | Merged |
---|---|
Merged at revision: | 1217 |
Proposed branch: | lp:~bertrand-rousseau/gtg/bug-988235 |
Merge into: | lp:~gtg/gtg/old-trunk |
Diff against target: |
79 lines (+37/-0) 1 file modified
GTG/core/tag.py (+37/-0) |
To merge this branch: | bzr merge lp:~bertrand-rousseau/gtg/bug-988235 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Izidor Matušov | Approve | ||
Review via email: mp+104853@code.launchpad.net |
Description of the change
This branch fixes bug 988235 (task & tag refresh in the browser). This is coupled to another commit in liblarch: https:/
To test it you will need to checkout my liblarch branch on github: https:/
To post a comment you must log in.
You replace all occurrencies of get_n_nodes() with len(get_nodes()) I am against this step because get_n_nodes() allows speed optimizations on the side of liblarch.
I suggest to remove the line 'assert my_task is not None, "Unknown task id: %s" % task_id' - if my_task is None, python would discover that and raise an exception. The result would be the same, just a different name of exception. There shouldn't be any case to catch None at this place. In other words, it is a redundant line which doesn't add anything, just add a redundant check.