diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2013-12-18 19:50:45 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-10 15:20:24 +0000 |
commit | 47621ecb24eedd803f17a551230a524193089c9a (patch) | |
tree | d972454f7ea2dfaf2c4da519d4f36d00c5a37044 /bitbake/lib/toaster/toastergui/urls.py | |
parent | 8172f24b62ed65cb7267b13b01024c1b1e891119 (diff) | |
download | poky-47621ecb24eedd803f17a551230a524193089c9a.tar.gz |
bitbake: toaster: clone Simple UI as base for Toaster GUI
This patch clones the Simple UI to provide the base code for
the development of the Toaster GUI. The clone takes the place
of the application that was reserved for Javascript MVC code.
The templates used for Simple UI are renamed to start with
an "simple_" to prevent name resolution conflict with the
Toaster GUI templates.
Minor changes are made to the settings.py and urls.py in the
toaster main section to account for the newly enabled application.
(Bitbake rev: e2fde84f16da017ba0d71aef6a1fa8e2b9255db4)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.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.py | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/bitbake/lib/toaster/toastergui/urls.py b/bitbake/lib/toaster/toastergui/urls.py index 6dbf0c5a56..b84c95f08b 100644 --- a/bitbake/lib/toaster/toastergui/urls.py +++ b/bitbake/lib/toaster/toastergui/urls.py | |||
@@ -16,12 +16,17 @@ | |||
16 | # with this program; if not, write to the Free Software Foundation, Inc., | 16 | # with this program; if not, write to the Free Software Foundation, Inc., |
17 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 17 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
18 | 18 | ||
19 | import os | ||
20 | |||
21 | from django.conf import settings | ||
22 | from django.conf.urls import patterns, include, url | 19 | from django.conf.urls import patterns, include, url |
20 | from django.views.generic import RedirectView | ||
23 | 21 | ||
24 | 22 | urlpatterns = patterns('bldviewer.views', | |
25 | urlpatterns = patterns('toastergui.views', | 23 | url(r'^builds/$', 'build', name='all-builds'), |
26 | url(r'^$', 'guihome', name='guihome'), | 24 | url(r'^build/(?P<build_id>\d+)/task/$', 'task', name='task'), |
25 | url(r'^build/(?P<build_id>\d+)/packages/$', 'bpackage', name='bpackage'), | ||
26 | url(r'^build/(?P<build_id>\d+)/package/(?P<package_id>\d+)/files/$', 'bfile', name='bfile'), | ||
27 | url(r'^build/(?P<build_id>\d+)/target/(?P<target_id>\d+)/packages/$', 'tpackage', name='tpackage'), | ||
28 | url(r'^build/(?P<build_id>\d+)/configuration/$', 'configuration', name='configuration'), | ||
29 | url(r'^layers/$', 'layer', name='all-layers'), | ||
30 | url(r'^layerversions/(?P<layerversion_id>\d+)/recipes/.*$', 'layer_versions_recipes', name='layer_versions_recipes'), | ||
31 | url(r'^$', RedirectView.as_view( url= 'builds/')), | ||
27 | ) | 32 | ) |