From 8e7a2c3b125a34fd9d6fa0442ab13290137ecc51 Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Mon, 8 Jun 2015 13:36:56 +0100 Subject: toastergui: remove xhr_datatypeahead and xhr_XXXbuild We remove the endpoints for XHR on the toastergui application. The endpoints are now replaced with calls to the respective REST endpoints (i.e. projectlayers, projecttargets, projectmachines). Signed-off-by: Alexandru DAMIAN --- lib/toaster/toastergui/widgets.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/toaster/toastergui/widgets.py') diff --git a/lib/toaster/toastergui/widgets.py b/lib/toaster/toastergui/widgets.py index 8bc3d7f16..f5a1b3e7b 100644 --- a/lib/toaster/toastergui/widgets.py +++ b/lib/toaster/toastergui/widgets.py @@ -253,8 +253,8 @@ class ToasterTable(TemplateView): data = cache.get(cache_name) - if data: - return data + #if data: + # return data self.setup_columns(**kwargs) @@ -277,9 +277,9 @@ class ToasterTable(TemplateView): 'default_orderby' : self.default_orderby, 'columns' : self.columns, 'rows' : [], + 'error' : "ok", } - try: for row in page.object_list: #Use collection to maintain the order -- cgit 1.2.3-korg