From: Thierry Parmentelat Date: Fri, 5 Dec 2008 08:33:10 +0000 (+0000) Subject: defining view_name in the Row class does not work, as Table does not know about its... X-Git-Tag: PLCAPI-4.3-3~35 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=44e71cdb8d8940e6ee245370072b79a479241b2a;p=plcapi.git defining view_name in the Row class does not work, as Table does not know about its Row class --- diff --git a/PLC/Nodes.py b/PLC/Nodes.py index a61e366..a1cea70 100644 --- a/PLC/Nodes.py +++ b/PLC/Nodes.py @@ -80,7 +80,7 @@ class Node(Row): 'slices_whitelist': [Mixed(Parameter(int, "Slice identifier"), Parameter(str, "Slice name"))] } - view_name = "view_nodes" + view_tags_name = "view_node_tags" tags = { # regular diff --git a/PLC/Table.py b/PLC/Table.py index eeac6c1..2ce8bb7 100644 --- a/PLC/Table.py +++ b/PLC/Table.py @@ -32,10 +32,6 @@ class Row(dict): # sync(). fields = {} - # Set this to the name of the view that gathers the row and its relations - # e.g. view_name = "view_nodes" - view_name = None - # The name of the view that extends objects with tags # e.g. view_tags_name = "view_node_tags" view_tags_name = None