summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/urls.py
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-09-28 21:45:12 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-29 14:11:36 +0100
commit340b3983dbced604d6e9affc7fd5ccfdcc379e61 (patch)
tree36c174d6387e72311d2716e8b99020692b851c11 /bitbake/lib/toaster/toastergui/urls.py
parente1851fe04c812d226b0d612732c0579a2bd83822 (diff)
downloadpoky-340b3983dbced604d6e9affc7fd5ccfdcc379e61.tar.gz
bitbake: toaster: tables Move the title and name into the widget
For historical reasons this was being set in the urls definition. We can set this in the actual definition of the table and defaults in the widget. (Bitbake rev: 2f7949caec3c9194328c35b2e075eaae85409efe) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/urls.py')
-rw-r--r--bitbake/lib/toaster/toastergui/urls.py22
1 files changed, 13 insertions, 9 deletions
diff --git a/bitbake/lib/toaster/toastergui/urls.py b/bitbake/lib/toaster/toastergui/urls.py
index 46e5761443..55f325d0d6 100644
--- a/bitbake/lib/toaster/toastergui/urls.py
+++ b/bitbake/lib/toaster/toastergui/urls.py
@@ -87,15 +87,21 @@ urlpatterns = patterns('toastergui.views',
87 # the table pages that have been converted to ToasterTable widget 87 # the table pages that have been converted to ToasterTable widget
88 url(r'^project/(?P<pid>\d+)/machines/$', 88 url(r'^project/(?P<pid>\d+)/machines/$',
89 tables.MachinesTable.as_view(template_name="generic-toastertable-page.html"), 89 tables.MachinesTable.as_view(template_name="generic-toastertable-page.html"),
90 { 'table_name': tables.MachinesTable.__name__.lower(),
91 'title' : 'Compatible machines' },
92 name="projectmachines"), 90 name="projectmachines"),
93 91
94 url(r'^project/(?P<pid>\d+)/recipes/$', 92 url(r'^project/(?P<pid>\d+)/softwarerecipes/$',
95 tables.RecipesTable.as_view(template_name="generic-toastertable-page.html"), 93 tables.SoftwareRecipesTable.as_view(template_name="generic-toastertable-page.html"),
96 { 'table_name': tables.RecipesTable.__name__.lower(), 94 name="projectsoftwarerecipes"),
97 'title' : 'Compatible recipes' }, 95
98 name="projecttargets"), 96 url(r'^project/(?P<pid>\d+)/images/$',
97 tables.ImageRecipesTable.as_view(template_name="generic-toastertable-page.html"), name="projectimagerecipes"),
98
99 url(r'^project/(?P<pid>\d+)/customimages/$',
100 tables.CustomImagesTable.as_view(template_name="generic-toastertable-page.html"), name="projectcustomimages"),
101
102 url(r'^project/(?P<pid>\d+)/newcustomimage/$',
103 tables.NewCustomImagesTable.as_view(template_name="newcustomimage.html"),
104 name="newcustomimage"),
99 105
100 url(r'^project/(?P<pid>\d+)/availablerecipes/$', 106 url(r'^project/(?P<pid>\d+)/availablerecipes/$',
101 tables.ProjectLayersRecipesTable.as_view(template_name="generic-toastertable-page.html"), 107 tables.ProjectLayersRecipesTable.as_view(template_name="generic-toastertable-page.html"),
@@ -105,8 +111,6 @@ urlpatterns = patterns('toastergui.views',
105 111
106 url(r'^project/(?P<pid>\d+)/layers/$', 112 url(r'^project/(?P<pid>\d+)/layers/$',
107 tables.LayersTable.as_view(template_name="generic-toastertable-page.html"), 113 tables.LayersTable.as_view(template_name="generic-toastertable-page.html"),
108 { 'table_name': tables.LayersTable.__name__.lower(),
109 'title' : 'Compatible layers' },
110 name="projectlayers"), 114 name="projectlayers"),
111 115
112 url(r'^project/(?P<pid>\d+)/layer/(?P<layerid>\d+)$', 116 url(r'^project/(?P<pid>\d+)/layer/(?P<layerid>\d+)$',