03-26-2020, 03:06 PM
Hey sorry bit of a pause but back at it :-)
Here is the full error:
Error: 'dict_keys' object is not subscriptable
File "/opt/tactic/tactic/src/pyasm/prod/service/api_xmlrpc.py", line 5401, in get_widget
html = widget.get_buffer_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 480, in get_buffer_display
buffer = self.get_buffer(cls)
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 471, in get_buffer
self.explicit_display(cls)
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 438, in explicit_display
widget = child.get_display()
File "/opt/tactic/tactic/src/pyasm/web/html_wdg.py", line 807, in get_display
super(HtmlElement,self).get_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 459, in get_display
widget.explicit_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 429, in explicit_display
child = self.get_display()
File "/opt/tactic/tactic/src/pyasm/web/html_wdg.py", line 1810, in get_display
return super(Table,self).get_display()
File "/opt/tactic/tactic/src/pyasm/web/html_wdg.py", line 807, in get_display
super(HtmlElement,self).get_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 459, in get_display
widget.explicit_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 429, in explicit_display
child = self.get_display()
File "/opt/tactic/tactic/src/pyasm/web/html_wdg.py", line 807, in get_display
super(HtmlElement,self).get_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 459, in get_display
widget.explicit_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 429, in explicit_display
child = self.get_display()
File "/opt/tactic/tactic/src/pyasm/web/html_wdg.py", line 807, in get_display
super(HtmlElement,self).get_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 459, in get_display
widget.explicit_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 429, in explicit_display
child = self.get_display()
File "/opt/tactic/tactic/src/pyasm/web/html_wdg.py", line 807, in get_display
super(HtmlElement,self).get_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 459, in get_display
widget.explicit_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 429, in explicit_display
child = self.get_display()
File "/opt/tactic/tactic/src/pyasm/web/html_wdg.py", line 807, in get_display
super(HtmlElement,self).get_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 459, in get_display
widget.explicit_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 429, in explicit_display
child = self.get_display()
File "/opt/tactic/tactic/src/pyasm/web/html_wdg.py", line 807, in get_display
super(HtmlElement,self).get_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 459, in get_display
widget.explicit_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 438, in explicit_display
widget = child.get_display()
File "/opt/tactic/tactic/src/pyasm/web/html_wdg.py", line 807, in get_display
super(HtmlElement,self).get_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 459, in get_display
widget.explicit_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 429, in explicit_display
child = self.get_display()
File "/opt/tactic/tactic/src/tactic/ui/widget/file_browser_wdg.py", line 1189, in get_display
self.handle_paths(self.paths, base_dir, inner, depth=depth, all_open=all_open, open_depth=open_depth)
File "/opt/tactic/tactic/src/tactic/ui/widget/file_browser_wdg.py", line 1319, in handle_paths
dir_item_div = self.handler._get_dir_item(dirname, basename, is_open=xis_open)
File "/opt/tactic/tactic/src/tactic/ui/widget/file_browser_wdg.py", line 620, in _get_dir_item
self.add_dir_behaviors(div, dir, item)
File "/opt/tactic/tactic/src/tactic/ui/tools/repo_browser_wdg.py", line 2700, in add_dir_behaviors
search_type = search_types[search_types.keys()[0]]
What I am trying to do, is add a tab to a custom dashboard for my search type lpc/tenant. I want to be able to use a file browser to display the files checked into a particular tenant. Here is the snippet I am trying at the moment:
<element name="file_browser2">
<display class="tactic.ui.tools.RepoBrowserWdg">
<search_types>lpc/tenant</search_types><!-- Not sure about the requirement of this option? -->
<search_type>lpc/tenant</search_type>
<search_key>${tenant_sk}</search_key>
</display>
</element>
Thanks!
-Dan
Here is the full error:
Error: 'dict_keys' object is not subscriptable
File "/opt/tactic/tactic/src/pyasm/prod/service/api_xmlrpc.py", line 5401, in get_widget
html = widget.get_buffer_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 480, in get_buffer_display
buffer = self.get_buffer(cls)
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 471, in get_buffer
self.explicit_display(cls)
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 438, in explicit_display
widget = child.get_display()
File "/opt/tactic/tactic/src/pyasm/web/html_wdg.py", line 807, in get_display
super(HtmlElement,self).get_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 459, in get_display
widget.explicit_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 429, in explicit_display
child = self.get_display()
File "/opt/tactic/tactic/src/pyasm/web/html_wdg.py", line 1810, in get_display
return super(Table,self).get_display()
File "/opt/tactic/tactic/src/pyasm/web/html_wdg.py", line 807, in get_display
super(HtmlElement,self).get_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 459, in get_display
widget.explicit_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 429, in explicit_display
child = self.get_display()
File "/opt/tactic/tactic/src/pyasm/web/html_wdg.py", line 807, in get_display
super(HtmlElement,self).get_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 459, in get_display
widget.explicit_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 429, in explicit_display
child = self.get_display()
File "/opt/tactic/tactic/src/pyasm/web/html_wdg.py", line 807, in get_display
super(HtmlElement,self).get_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 459, in get_display
widget.explicit_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 429, in explicit_display
child = self.get_display()
File "/opt/tactic/tactic/src/pyasm/web/html_wdg.py", line 807, in get_display
super(HtmlElement,self).get_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 459, in get_display
widget.explicit_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 429, in explicit_display
child = self.get_display()
File "/opt/tactic/tactic/src/pyasm/web/html_wdg.py", line 807, in get_display
super(HtmlElement,self).get_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 459, in get_display
widget.explicit_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 429, in explicit_display
child = self.get_display()
File "/opt/tactic/tactic/src/pyasm/web/html_wdg.py", line 807, in get_display
super(HtmlElement,self).get_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 459, in get_display
widget.explicit_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 438, in explicit_display
widget = child.get_display()
File "/opt/tactic/tactic/src/pyasm/web/html_wdg.py", line 807, in get_display
super(HtmlElement,self).get_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 459, in get_display
widget.explicit_display()
File "/opt/tactic/tactic/src/pyasm/web/widget.py", line 429, in explicit_display
child = self.get_display()
File "/opt/tactic/tactic/src/tactic/ui/widget/file_browser_wdg.py", line 1189, in get_display
self.handle_paths(self.paths, base_dir, inner, depth=depth, all_open=all_open, open_depth=open_depth)
File "/opt/tactic/tactic/src/tactic/ui/widget/file_browser_wdg.py", line 1319, in handle_paths
dir_item_div = self.handler._get_dir_item(dirname, basename, is_open=xis_open)
File "/opt/tactic/tactic/src/tactic/ui/widget/file_browser_wdg.py", line 620, in _get_dir_item
self.add_dir_behaviors(div, dir, item)
File "/opt/tactic/tactic/src/tactic/ui/tools/repo_browser_wdg.py", line 2700, in add_dir_behaviors
search_type = search_types[search_types.keys()[0]]
What I am trying to do, is add a tab to a custom dashboard for my search type lpc/tenant. I want to be able to use a file browser to display the files checked into a particular tenant. Here is the snippet I am trying at the moment:
<element name="file_browser2">
<display class="tactic.ui.tools.RepoBrowserWdg">
<search_types>lpc/tenant</search_types><!-- Not sure about the requirement of this option? -->
<search_type>lpc/tenant</search_type>
<search_key>${tenant_sk}</search_key>
</display>
</element>
Thanks!
-Dan