[bitbake-devel] [PATCH 13/27] toaster: machines Fix undefined variables
Alex DAMIAN
alexandru.damian at intel.com
Mon Feb 9 18:01:43 UTC 2015
From: Michael Wood <michael.g.wood at intel.com>
pagesize and orderby were undefined causing an error to be thrown when
browsing to the all machines page
Signed-off-by: Michael Wood <michael.g.wood at intel.com>
---
lib/toaster/toastergui/views.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/toaster/toastergui/views.py b/lib/toaster/toastergui/views.py
index 9567e62..73a5c7e 100755
--- a/lib/toaster/toastergui/views.py
+++ b/lib/toaster/toastergui/views.py
@@ -2774,6 +2774,7 @@ if toastermain.settings.MANAGED:
# define here what parameters the view needs in the GET portion in order to
# be able to display something. 'count' and 'page' are mandatory for all views
# that use paginators.
+ (pagesize, orderby) = _get_parameters_values(request, 10, 'updated:+')
mandatory_parameters = { 'count': 10, 'page' : 1, 'orderby' : 'name:+' };
retval = _verify_parameters( request.GET, mandatory_parameters )
if retval:
--
1.9.1
More information about the bitbake-devel
mailing list