diff options
author | Michael Wood <michael.g.wood@intel.com> | 2016-04-06 17:46:30 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-04-06 23:10:29 +0100 |
commit | eead032aca1592de9a764b530f9c436ff57cee21 (patch) | |
tree | cc6f60e468aaa758555f203cac598dacc9b271ca /bitbake/lib/toaster/toastergui/urls.py | |
parent | f5aa97067f0955b6be5e69b5859d1f3c5624c2da (diff) | |
download | poky-eead032aca1592de9a764b530f9c436ff57cee21.tar.gz |
bitbake: toaster: Move xhr calls for starting and stopping builds
Move the backend xhr implementation of the build request changes
into it's own file and out of the ToasterTable definition.
It used to live in the views.py but in a hope of starting to collate logical
groups of views move this to a new file called api.
(Bitbake rev: 29572f0e6bd3b5e8315f3b93d55bdb8967b86bc3)
Signed-off-by: Michael Wood <michael.g.wood@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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/urls.py b/bitbake/lib/toaster/toastergui/urls.py index 400580a235..27b0baabfb 100644 --- a/bitbake/lib/toaster/toastergui/urls.py +++ b/bitbake/lib/toaster/toastergui/urls.py | |||
@@ -22,6 +22,7 @@ from django.views.generic import RedirectView, TemplateView | |||
22 | from django.http import HttpResponseBadRequest | 22 | from django.http import HttpResponseBadRequest |
23 | from toastergui import tables | 23 | from toastergui import tables |
24 | from toastergui import typeaheads | 24 | from toastergui import typeaheads |
25 | from toastergui import api | ||
25 | 26 | ||
26 | urlpatterns = patterns('toastergui.views', | 27 | urlpatterns = patterns('toastergui.views', |
27 | # landing page | 28 | # landing page |
@@ -180,6 +181,10 @@ urlpatterns = patterns('toastergui.views', | |||
180 | url(r'^xhr_customrecipe/', 'xhr_customrecipe', | 181 | url(r'^xhr_customrecipe/', 'xhr_customrecipe', |
181 | name='xhr_customrecipe'), | 182 | name='xhr_customrecipe'), |
182 | 183 | ||
184 | url(r'^xhr_buildrequest/project/(?P<pid>\d+)$', | ||
185 | api.XhrBuildRequest.as_view(), | ||
186 | name='xhr_buildrequest'), | ||
187 | |||
183 | # default redirection | 188 | # default redirection |
184 | url(r'^$', RedirectView.as_view(url='landing', permanent=True)), | 189 | url(r'^$', RedirectView.as_view(url='landing', permanent=True)), |
185 | ) | 190 | ) |