Move implementation to get all properties to the module
This commit is contained in:
@@ -60,7 +60,7 @@ class Installation(Singleton):
|
||||
|
||||
def get_properties(self):
|
||||
self.set_properties()
|
||||
return self._properties
|
||||
return self._properties.values()
|
||||
|
||||
def set_properties(self):
|
||||
self._properties = SortedDict()
|
||||
|
||||
@@ -16,7 +16,7 @@ def installation_details(request):
|
||||
|
||||
paragraphs = []
|
||||
|
||||
for name, instance in Installation().get_properties().items():
|
||||
for instance in Installation().get_properties():
|
||||
paragraphs.append('%s: %s' % (unicode(instance.label), instance.value))
|
||||
|
||||
return render_to_response('generic_template.html', {
|
||||
|
||||
Reference in New Issue
Block a user