'clearsilver' dependencies

This commit is contained in:
age 2006-10-31 15:07:13 +00:00
parent 9990c5ec9f
commit 662be231b9
2 changed files with 8 additions and 2 deletions

View file

@ -79,7 +79,10 @@ class WebInterfaceDataset(dict):
def __getLanguageName(self, lang):
import neo_cgi, neo_util, neo_cs
try:
import neo_cgi, neo_util, neo_cs
except:
raise CryptoBoxExceptions.CBEnvironmentError("couldn't import 'neo_*'! Try 'apt-get install python-clearsilver'.")
hdf_path = os.path.join(self.prefs["Locations"]["LangDir"], lang + ".hdf")
hdf = neo_util.HDF()
hdf.readFile(hdf_path)