logserverice initialised, fixed typos
This commit is contained in:
parent
4bcd42d615
commit
eaed2ffb9d
3 changed files with 47 additions and 12 deletions
|
@ -12,6 +12,18 @@ except:
|
|||
print "could not import clearsilver modules! Try apt-get install python-clearsilver."
|
||||
|
||||
|
||||
<<<<<<< .mine
|
||||
class RunCmd:
|
||||
def index(self):
|
||||
hdf = neo_util.HDF()
|
||||
#hdf.setValue("hdf.loadpaths.0","/my/path")
|
||||
hdf.readFile("../lang/de.hdf")
|
||||
hdf.setValue("Settings.TemplateDir","../templates")
|
||||
hdf.setValue("Settings.Stylesheet","cryptobox.css")
|
||||
hdf.setValue("Data.Action","show_status")
|
||||
cs = neo_cs.CS(hdf)
|
||||
cs.parseFile("../templates/main.cs")
|
||||
=======
|
||||
class clearsilver:
|
||||
def __init__(self):
|
||||
pass
|
||||
|
@ -33,6 +45,7 @@ class clearsilver:
|
|||
hdf.setValue(key,str(settings[key]))
|
||||
cs= neo_cs.CS(hdf)
|
||||
cs.parseFile(cs_path)
|
||||
>>>>>>> .r387
|
||||
return cs.render()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue