summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@intel.com>2014-03-28 19:28:45 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-05 14:55:28 +0100
commit86aefcdd4dc781afd002898ae557344e8218f28b (patch)
tree51201f9e9af5684804c777375508eb00c7cd4adf /bitbake
parent0d39bee035923186afc3c5c113a3d2e710e1820d (diff)
downloadpoky-86aefcdd4dc781afd002898ae557344e8218f28b.tar.gz
bitbake: toaster: Update API
Make sure the REST API includes the latest changes to the database schema. (Bitbake rev: fb3d1d189f010488a8726872b01313857697751b) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/bldviewer/api.py3
-rw-r--r--bitbake/lib/toaster/bldviewer/views.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/bldviewer/api.py b/bitbake/lib/toaster/bldviewer/api.py
index 76d45c7d2c..c4c6135584 100644
--- a/bitbake/lib/toaster/bldviewer/api.py
+++ b/bitbake/lib/toaster/bldviewer/api.py
@@ -25,12 +25,13 @@ from django.conf.urls import patterns, include, url
25urlpatterns = patterns('bldviewer.views', 25urlpatterns = patterns('bldviewer.views',
26 url(r'^builds$', 'model_explorer', {'model_name':'build'}, name='builds'), 26 url(r'^builds$', 'model_explorer', {'model_name':'build'}, name='builds'),
27 url(r'^targets$', 'model_explorer', {'model_name':'target'}, name='targets'), 27 url(r'^targets$', 'model_explorer', {'model_name':'target'}, name='targets'),
28 url(r'^target_files$', 'model_explorer', {'model_name':'target_file'}, name='target_file'),
28 url(r'^target_image_file$', 'model_explorer', {'model_name':'target_image_file'}, name='target_image_file'), 29 url(r'^target_image_file$', 'model_explorer', {'model_name':'target_image_file'}, name='target_image_file'),
29 url(r'^tasks$', 'model_explorer', {'model_name':'task'}, name='task'), 30 url(r'^tasks$', 'model_explorer', {'model_name':'task'}, name='task'),
30 url(r'^task_dependencies$', 'model_explorer', {'model_name':'task_dependency'}, name='task_dependencies'), 31 url(r'^task_dependencies$', 'model_explorer', {'model_name':'task_dependency'}, name='task_dependencies'),
31 url(r'^packages$', 'model_explorer', {'model_name':'package'}, name='package'), 32 url(r'^packages$', 'model_explorer', {'model_name':'package'}, name='package'),
32 url(r'^package_dependencies$', 'model_explorer', {'model_name':'package_dependency'}, name='package_dependency'), 33 url(r'^package_dependencies$', 'model_explorer', {'model_name':'package_dependency'}, name='package_dependency'),
33 url(r'^target_packages$', 'model_explorer', {'model_name':'target_package'}, name='target_packages'), 34 url(r'^target_packages$', 'model_explorer', {'model_name':'target_installed_package'}, name='target_packages'),
34 url(r'^target_installed_packages$', 'model_explorer', {'model_name':'target_installed_package'}, name='target_installed_package'), 35 url(r'^target_installed_packages$', 'model_explorer', {'model_name':'target_installed_package'}, name='target_installed_package'),
35 url(r'^package_files$', 'model_explorer', {'model_name':'build_file'}, name='build_file'), 36 url(r'^package_files$', 'model_explorer', {'model_name':'build_file'}, name='build_file'),
36 url(r'^layers$', 'model_explorer', {'model_name':'layer'}, name='layer'), 37 url(r'^layers$', 'model_explorer', {'model_name':'layer'}, name='layer'),
diff --git a/bitbake/lib/toaster/bldviewer/views.py b/bitbake/lib/toaster/bldviewer/views.py
index 6f863796db..c2e0c0c25d 100644
--- a/bitbake/lib/toaster/bldviewer/views.py
+++ b/bitbake/lib/toaster/bldviewer/views.py
@@ -25,7 +25,7 @@ from django.db.models import Q
25from django.shortcuts import render 25from django.shortcuts import render
26from orm.models import Build, Target, Task, Layer, Layer_Version, Recipe, LogMessage, Variable, Target_Installed_Package 26from orm.models import Build, Target, Task, Layer, Layer_Version, Recipe, LogMessage, Variable, Target_Installed_Package
27from orm.models import Task_Dependency, Recipe_Dependency, Package, Package_File, Package_Dependency 27from orm.models import Task_Dependency, Recipe_Dependency, Package, Package_File, Package_Dependency
28from orm.models import Target_Installed_Package, VariableHistory, Target_Image_File 28from orm.models import Target_Installed_Package, VariableHistory, Target_Image_File, Target_File
29from django.views.decorators.cache import cache_control 29from django.views.decorators.cache import cache_control
30from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger 30from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
31 31
@@ -159,6 +159,7 @@ def model_explorer(request, model_name):
159 model_mapping = { 159 model_mapping = {
160 'build': Build, 160 'build': Build,
161 'target': Target, 161 'target': Target,
162 'target_file': Target_File,
162 'target_image_file': Target_Image_File, 163 'target_image_file': Target_Image_File,
163 'task': Task, 164 'task': Task,
164 'task_dependency': Task_Dependency, 165 'task_dependency': Task_Dependency,