Show famfamfam ticks or crosses for existing or missing paths or executables in settings details view

This commit is contained in:
Roberto Rosario
2011-03-03 21:55:28 -04:00
parent d73f4d881e
commit 3c54afcdac

View File

@@ -90,7 +90,10 @@ def _return_type(value):
def _exists(path):
try:
return os.path.exists(path)
if os.path.exists(path):
return '<span class="famfam active famfam-tick"></span>'
else:
return '<span class="famfam active famfam-cross"></span>'
except Exception, exc:
return exc