api.py 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #
  2. # BitBake Toaster Implementation
  3. #
  4. # Copyright (C) 2013 Intel Corporation
  5. #
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License version 2 as
  8. # published by the Free Software Foundation.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License along
  16. # with this program; if not, write to the Free Software Foundation, Inc.,
  17. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  18. from django.conf.urls import patterns, include, url
  19. urlpatterns = patterns('bldviewer.views',
  20. url(r'^builds$', 'model_explorer', {'model_name':'build'}, name='builds'),
  21. url(r'^targets$', 'model_explorer', {'model_name':'target'}, name='targets'),
  22. url(r'^tasks$', 'model_explorer', {'model_name':'task'}, name='task'),
  23. url(r'^task_dependencies$', 'model_explorer', {'model_name':'task_dependency'}, name='task_dependencies'),
  24. url(r'^packages$', 'model_explorer', {'model_name':'build_package'}, name='build_packages'),
  25. url(r'^package_dependencies$', 'model_explorer', {'model_name':'build_package_dependency'}, name='build_package_dependencies'),
  26. url(r'^target_packages$', 'model_explorer', {'model_name':'target_package'}, name='target_packages'),
  27. url(r'^package_files$', 'model_explorer', {'model_name':'build_file'}, name='build_files'),
  28. url(r'^layers$', 'model_explorer', {'model_name':'layer'}, name='layer'),
  29. url(r'^layerversions$', 'model_explorer', {'model_name':'layerversion'}, name='layerversion'),
  30. url(r'^recipes$', 'model_explorer', {'model_name':'recipe'}, name='recipe'),
  31. url(r'^recipe_dependencies$', 'model_explorer', {'model_name':'recipe_dependency'}, name='recipe_dependencies'),
  32. url(r'^variables$', 'model_explorer', {'model_name':'variable'}, name='variables'),
  33. url(r'^logmessages$', 'model_explorer', {'model_name':'logmessage'}, name='logmessages'),
  34. )