diff options
| author | Michael Wood <michael.g.wood@intel.com> | 2014-11-14 18:12:20 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-11-21 11:49:23 +0000 |
| commit | 5b8a62dad7d429034c52290385da570c5ca1da34 (patch) | |
| tree | 7102d4169f81f41aa64abd591084efe09c00528d /bitbake/lib/toaster/toastergui/views.py | |
| parent | fa9206e42710772b8aac918b7aba01e126e993ce (diff) | |
| download | poky-5b8a62dad7d429034c52290385da570c5ca1da34.tar.gz | |
bitbake: toaster: libtoaster: Add getProjectInfo utility function
Add a utility function to return a specified project's info/config
This re-uses the existing server code path for the project edit
except that it allows any project id to be used as a parameter
(Bitbake rev: af42ea5f006c5cf55a7c57a42904f412639d261f)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
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/views.py')
| -rwxr-xr-x | bitbake/lib/toaster/toastergui/views.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 1b4bb9ff69..9f214bb677 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py | |||
| @@ -2057,8 +2057,11 @@ if toastermain.settings.MANAGED: | |||
| 2057 | except Exception as e: | 2057 | except Exception as e: |
| 2058 | return HttpResponse(jsonfilter({"error":str(e) + "\n" + traceback.format_exc()}), content_type = "application/json") | 2058 | return HttpResponse(jsonfilter({"error":str(e) + "\n" + traceback.format_exc()}), content_type = "application/json") |
| 2059 | 2059 | ||
| 2060 | def xhr_projectinfo(request): | ||
| 2061 | if request.POST.has_key("project_id") == False: | ||
| 2062 | raise BadParameterException("invalid project id") | ||
| 2060 | 2063 | ||
| 2061 | 2064 | return xhr_projectedit(request, request.POST['project_id']) | |
| 2062 | 2065 | ||
| 2063 | def xhr_projectedit(request, pid): | 2066 | def xhr_projectedit(request, pid): |
| 2064 | try: | 2067 | try: |
