From 54aa65a3dab029f28741875eb11a40adb06aff51 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 30 Dec 2014 10:31:39 +0200 Subject: introduce commit_and_tx_diff__topo & commit_diff__topo Multiple fixes / changes. _bugs introduced_ Changes: graph has two change functions (i.e. the internal API): - commit_and_tx_diff_topo This currently transmits, later will optimistically apply first - commit_diff__topo This only applies. Used on the ajax success path for commit_and_tx_diff__topo and when changes are only local. It signals on the diffBus - diffBus - a Bacon.Bus that all UI listens to - selection UI - node/link dialogs - main view (rz_core/update_view__graph) Small changes: whitespace rename filer->filter Completely broken: - text entry. should use commit_diff__topo Problems introduced: selection doesn't work correctly. editing not verified yet --- src/server/model/graph.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server/model/graph.py') diff --git a/src/server/model/graph.py b/src/server/model/graph.py index 87c0a8b0..76368a24 100644 --- a/src/server/model/graph.py +++ b/src/server/model/graph.py @@ -106,9 +106,9 @@ class Topo_Diff(object): def to_json_dict(self): ret = {k: getattr(self, k) for k in ['link_set_rm', - 'node_set_rm', - 'node_set_add', - 'link_set_add'] } + 'node_set_rm', + 'node_set_add', + 'link_set_add'] } return ret def __init__(self, link_set_rm=[], -- cgit v1.3.1