summaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui/urls.py
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-06-08 18:33:44 +0100
committerAlexandru DAMIAN <alexandru.damian@intel.com>2015-06-10 15:31:12 +0100
commita5bc29083d4f85a5695f3f62d5badb783c6f7224 (patch)
tree3ad2b07120e565e9a7dfa07692e5007561b29b81 /lib/toaster/toastergui/urls.py
parent33d2b87aca667d72262a3928deaf35414b46a7c1 (diff)
downloadbitbake-a5bc29083d4f85a5695f3f62d5badb783c6f7224.tar.gz
toaster: fixes after refactoring
This patch fixes issues brought in by refactoring: * the New Build button is working with pre-set projects * the xhr_datatypeahead is exposed for calls that are not mapable to the REST objects * a new table returing recipes provided by layers currently selected in the project is used to provide recipe suggestions * the field names in json are switched from "list" to "rows" as to maintain consistency with the ToasterTables * the "value" field in xhr_ calls is now named "search" to maintain consistency Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Diffstat (limited to 'lib/toaster/toastergui/urls.py')
-rw-r--r--lib/toaster/toastergui/urls.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/toaster/toastergui/urls.py b/lib/toaster/toastergui/urls.py
index 5a79f88eb..bd3eb401d 100644
--- a/lib/toaster/toastergui/urls.py
+++ b/lib/toaster/toastergui/urls.py
@@ -96,6 +96,12 @@ urlpatterns = patterns('toastergui.views',
'title' : 'All compatible recipes' },
name="projecttargets"),
+ url(r'^project/(?P<pid>\d+)/availablerecipes/$',
+ tables.ProjectLayersRecipesTable.as_view(template_name="generic-toastertable-page.html"),
+ { 'table_name': tables.ProjectLayersRecipesTable.__name__.lower(),
+ 'title' : 'Recipes available for layers in the current project' },
+ name="projectavailabletargets"),
+
url(r'^project/(?P<pid>\d+)/layers/$',
tables.LayersTable.as_view(template_name="generic-toastertable-page.html"),
{ 'table_name': tables.LayersTable.__name__.lower(),
@@ -118,6 +124,8 @@ urlpatterns = patterns('toastergui.views',
'title' : 'All machines in layer' },
name=tables.LayerMachinesTable.__name__.lower()),
+
+ url(r'^xhr_datatypeahead/(?P<pid>\d+)$', 'xhr_datatypeahead', name='xhr_datatypeahead'),
url(r'^xhr_configvaredit/(?P<pid>\d+)$', 'xhr_configvaredit', name='xhr_configvaredit'),
url(r'^xhr_importlayer/$', 'xhr_importlayer', name='xhr_importlayer'),