diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/tables.py')
-rw-r--r-- | bitbake/lib/toaster/toastergui/tables.py | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py index e4cbec193e..cf0e5ac6bb 100644 --- a/bitbake/lib/toaster/toastergui/tables.py +++ b/bitbake/lib/toaster/toastergui/tables.py | |||
@@ -19,7 +19,7 @@ | |||
19 | # with this program; if not, write to the Free Software Foundation, Inc., | 19 | # with this program; if not, write to the Free Software Foundation, Inc., |
20 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 20 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
21 | 21 | ||
22 | from toastergui.widgets import ToasterTable, ToasterTemplateView | 22 | from toastergui.widgets import ToasterTable |
23 | from orm.models import Recipe, ProjectLayer, Layer_Version, Machine, Project | 23 | from orm.models import Recipe, ProjectLayer, Layer_Version, Machine, Project |
24 | from django.db.models import Q, Max | 24 | from django.db.models import Q, Max |
25 | from django.conf.urls import url | 25 | from django.conf.urls import url |
@@ -202,28 +202,6 @@ class LayersTable(ToasterTable): | |||
202 | computation = lambda x: x.layer.name) | 202 | computation = lambda x: x.layer.name) |
203 | 203 | ||
204 | 204 | ||
205 | |||
206 | |||
207 | class LayerDetails(ToasterTemplateView): | ||
208 | def get_context_data(self, **kwargs): | ||
209 | context = super(LayerDetails, self).get_context_data(**kwargs) | ||
210 | from toastergui.views import _lv_to_dict | ||
211 | |||
212 | context['project'] = Project.objects.get(pk=kwargs['pid']) | ||
213 | context['layerversion'] = Layer_Version.objects.get(pk=kwargs['layerid']) | ||
214 | context['layerdict'] = _lv_to_dict(context['project'], context['layerversion']) | ||
215 | context['layerdeps'] = {"list": [ | ||
216 | [ {"id": y.id, | ||
217 | "name": y.layer.name, | ||
218 | "layerdetailurl": reverse('layerdetails', args=(kwargs['pid'], y.id)), | ||
219 | } for y in x.depends_on.get_equivalents_wpriority(context['project'])][0] for x in context['layerversion'].dependencies.all()]} | ||
220 | context['projectlayers'] = map(lambda prjlayer: prjlayer.layercommit.id, ProjectLayer.objects.filter(project=context['project'])) | ||
221 | |||
222 | self.context_entries = ['project', 'layerversion', 'projectlayers', 'layerdict', 'layerdeps'] | ||
223 | |||
224 | return context | ||
225 | |||
226 | |||
227 | class MachinesTable(ToasterTable, ProjectFiltersMixin): | 205 | class MachinesTable(ToasterTable, ProjectFiltersMixin): |
228 | """Table of Machines in Toaster""" | 206 | """Table of Machines in Toaster""" |
229 | 207 | ||