Repurpose the installtion app for it's original intent which was let apps report on their dependencies and if they were met. This commit removes two more Python dependencies: GitPython and psutil.

This commit is contained in:
Roberto Rosario
2015-04-01 13:20:35 -04:00
parent 3f8fe90787
commit 57fd943c9d
8 changed files with 49 additions and 164 deletions
-5
View File
@@ -8,14 +8,11 @@ from permissions.models import Permission
from .classes import PropertyNamespace
from .permissions import PERMISSION_INSTALLATION_DETAILS
from .models import Installation
def namespace_list(request):
Permission.objects.check_permissions(request.user, [PERMISSION_INSTALLATION_DETAILS])
Installation().get_properties()
return render_to_response('appearance/generic_list.html', {
'object_list': PropertyNamespace.get_all(),
'title': _('Installation property namespaces'),
@@ -26,8 +23,6 @@ def namespace_list(request):
def namespace_details(request, namespace_id):
Permission.objects.check_permissions(request.user, [PERMISSION_INSTALLATION_DETAILS])
Installation().get_properties()
namespace = PropertyNamespace.get(namespace_id)
object_list = namespace.get_properties()
title = _('Installation namespace details for: %s') % namespace.label