)]}'
{"tacker_horizon/openstack_dashboard/dashboards/nfv/vnffgcatalog/tabs.py":[{"author":{"_account_id":12455,"name":"bharaththiruveedula","email":"bharath_ves@hotmail.com","username":"bharaththiruveedula"},"change_message_id":"e28a9f6a7ea3bef3457be27770211f92e67a654b","unresolved":false,"context_lines":[{"line_number":68,"context_line":"    template_name \u003d (\"nfv/vnffgcatalog/template.html\")"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    def get_context_data(self, request):"},{"line_number":71,"context_line":"        return {\u0027vnffgd\u0027: self.tab_group.kwargs[\u0027vnffgd\u0027]}"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"class VNFFGDDetailTabs(tabs.TabGroup):"}],"source_content_type":"text/x-python","patch_set":8,"id":"7a8ec9b2_2f4991b7","line":71,"range":{"start_line":71,"start_character":8,"end_line":71,"end_character":58},"updated":"2016-09-16 18:08:34.000000000","message":"this will return template in dict form. You have to convert this unicode or str to render it correctly","commit_id":"af418f9e972e0dee4f0c3178aeaf4c2e03fa36e2"},{"author":{"_account_id":20866,"name":"Janki Chhatbar","email":"jchhatba@redhat.com","username":"janki"},"change_message_id":"1eac20658994dd95c3ea5d687c65608f6add0171","unresolved":false,"context_lines":[{"line_number":68,"context_line":"    template_name \u003d (\"nfv/vnffgcatalog/template.html\")"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    def get_context_data(self, request):"},{"line_number":71,"context_line":"        return {\u0027vnffgd\u0027: self.tab_group.kwargs[\u0027vnffgd\u0027]}"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"class VNFFGDDetailTabs(tabs.TabGroup):"}],"source_content_type":"text/x-python","patch_set":8,"id":"7a8ec9b2_b893e9ff","line":71,"range":{"start_line":71,"start_character":8,"end_line":71,"end_character":58},"in_reply_to":"7a8ec9b2_185a33f2","updated":"2016-09-19 13:53:59.000000000","message":"I understand and have the same concern about the single line dict. What I meant was get_context_data\u0027s return type has to be a dictionary [1]. So can\u0027t make it to return a string. I tried json too but in vain. Dictionary in a single line is because of the server returning that format IMO. You can see the difference from CLI by tacker vnffgd-show \u003cvnffgd\u003e and tacker vnfd-show \u003cvnfd\u003e at [2].\n\n[1]. http://docs.openstack.org/developer/horizon/ref/tabs.html#horizon.tabs.Tab.get_context_data\n\n[2]. http://paste.openstack.org/show/580994/","commit_id":"af418f9e972e0dee4f0c3178aeaf4c2e03fa36e2"},{"author":{"_account_id":20866,"name":"Janki Chhatbar","email":"jchhatba@redhat.com","username":"janki"},"change_message_id":"8c86b1ae012d38e5e9fcd2d3bcea33fc07a85c26","unresolved":false,"context_lines":[{"line_number":68,"context_line":"    template_name \u003d (\"nfv/vnffgcatalog/template.html\")"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    def get_context_data(self, request):"},{"line_number":71,"context_line":"        return {\u0027vnffgd\u0027: self.tab_group.kwargs[\u0027vnffgd\u0027]}"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"class VNFFGDDetailTabs(tabs.TabGroup):"}],"source_content_type":"text/x-python","patch_set":8,"id":"7a8ec9b2_e02eaf41","line":71,"range":{"start_line":71,"start_character":8,"end_line":71,"end_character":58},"in_reply_to":"7a8ec9b2_2f4991b7","updated":"2016-09-19 07:19:26.000000000","message":"the method requires dict to be returned. IMO, the output depends on the way it is returned from server. I have tried tweaking this to convert to string but in vain.","commit_id":"af418f9e972e0dee4f0c3178aeaf4c2e03fa36e2"},{"author":{"_account_id":12455,"name":"bharaththiruveedula","email":"bharath_ves@hotmail.com","username":"bharaththiruveedula"},"change_message_id":"c77c193e89b86f846c69da02c49eb1d3cd657427","unresolved":false,"context_lines":[{"line_number":68,"context_line":"    template_name \u003d (\"nfv/vnffgcatalog/template.html\")"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    def get_context_data(self, request):"},{"line_number":71,"context_line":"        return {\u0027vnffgd\u0027: self.tab_group.kwargs[\u0027vnffgd\u0027]}"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"class VNFFGDDetailTabs(tabs.TabGroup):"}],"source_content_type":"text/x-python","patch_set":8,"id":"7a8ec9b2_13ce7eb4","line":71,"range":{"start_line":71,"start_character":8,"end_line":71,"end_character":58},"in_reply_to":"7a8ec9b2_b893e9ff","updated":"2016-09-19 14:28:23.000000000","message":"That\u0027s what I was saying. self.tab_group.kwargs[\u0027vnffgd\u0027] is a dict right? In that dict \u0027template\u0027 is the key that contains the template which you want to display. So either make the value of self.tab_group.kwargs[\u0027vnffgd\u0027][\u0027template\u0027] string or add another key to the same dict with string version of the template. So at the end you will return only dict and in template.html access that using vnffgd.template\n\nOr\n\nreturn {\u0027vnffgd\u0027: self.tab_group.kwargs[\u0027vnffgd\u0027], \u0027template\u0027: \u003cstring version of template\u003e} access \"template\" in template.html","commit_id":"af418f9e972e0dee4f0c3178aeaf4c2e03fa36e2"},{"author":{"_account_id":12455,"name":"bharaththiruveedula","email":"bharath_ves@hotmail.com","username":"bharaththiruveedula"},"change_message_id":"2bf43df4f13f90d102424fdaf94a041d7546d2ab","unresolved":false,"context_lines":[{"line_number":68,"context_line":"    template_name \u003d (\"nfv/vnffgcatalog/template.html\")"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    def get_context_data(self, request):"},{"line_number":71,"context_line":"        return {\u0027vnffgd\u0027: self.tab_group.kwargs[\u0027vnffgd\u0027]}"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"class VNFFGDDetailTabs(tabs.TabGroup):"}],"source_content_type":"text/x-python","patch_set":8,"id":"7a8ec9b2_185a33f2","line":71,"range":{"start_line":71,"start_character":8,"end_line":71,"end_character":58},"in_reply_to":"7a8ec9b2_e02eaf41","updated":"2016-09-19 08:27:56.000000000","message":"No, I was talking about vnffgd.template. In the current implementation, I see the VNFFGD template in single line as dict. So convert the template into string and render","commit_id":"af418f9e972e0dee4f0c3178aeaf4c2e03fa36e2"}]}
