diff options
author | shefali shetty <sshefali44@gmail.com> | 2012-05-09 14:16:09 +0530 |
---|---|---|
committer | shefali shetty <sshefali44@gmail.com> | 2012-05-09 14:16:09 +0530 |
commit | 06db97bafe284e9d974a869db4cb2b6bd86f39de (patch) | |
tree | f71faf7a5bccd8cdc8cd0842b578b308c153309b /gstudio/models.py | |
parent | be7765e07e626c8be1e3d433ddb2e4f84259cf59 (diff) | |
download | gnowsys-06db97bafe284e9d974a869db4cb2b6bd86f39de.tar.gz |
Arrow marker added to the links
Diffstat (limited to 'gstudio/models.py')
-rw-r--r-- | gstudio/models.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gstudio/models.py b/gstudio/models.py index 0b6886d..f4715a5 100644 --- a/gstudio/models.py +++ b/gstudio/models.py @@ -722,7 +722,8 @@ class Nodetype(Node): g_json = {} g_json["node_metadata"]= [] g_json["relations"]=[] - + g_json["relset"]=[] + global counter global attr_counter nbh = self.get_nbh @@ -737,7 +738,8 @@ class Nodetype(Node): this_node = {"_id":str(self.id),"title":self.title,"screen_name":self.title, "url":self.get_absolute_url(),"expanded":"true"} - g_json["node_metadata"].append(this_node) + g_json["node_metadata"].append(this_node) + g_json["relset"].append(self.id) for key in predicate_id.keys(): if nbh[key]: @@ -757,6 +759,8 @@ class Nodetype(Node): # create nodes g_json["node_metadata"].append({"_id":str(item.id),"screen_name":item.title,"title":self.title, "url":item.get_absolute_url(),"expanded":"false"}) + g_json["relset"].append(item.id) + # g_json[str(key)].append({"from":predicate_id[key] , "to":item.id ,"value":1 }) #create links |