Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Add data to tables


I am trying to add a panel in OpenStack which displays some hard coded values. However when I am trying to access that data from the dashboard, I am getting the below error.

File "/usr/lib/python2.6/site-packages/horizon/tables/", line 1498, in get_object_id
TemplateSyntaxError: 'str' object has no attribute 'id'

Below is the extract from my file

 def get_data(self):
                L = ["test","test1","test3","test4","test5","test6"]
                return L

Any idea on what could go wrong?

Thanks Toby