/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to html_server/html_server.py

  • Committer: Vasilii Chernov
  • Date: 2016-02-25 16:02:35 UTC
  • mto: This revision was merged to the branch mainline in revision 367.
  • Revision ID: vchernov@inr.ru-20160225160235-g9zkhg8ngg2o12zj
Move html_server to separate folder. Update html server templates.

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
   return render_template('property_info.html',
159
159
                          value = value,
160
160
                          branch = branch,
161
 
                          properties = prop_info,
162
 
                          json = json
 
161
                          properties = prop_info
163
162
                         )
164
163
                         
165
164
@app.route("/")
168
167
                          device = device,
169
168
                          model = model)
170
169
 
171
 
@app.route('/<path:path>')
172
 
def send_file(path):
173
 
    return send_from_directory('static', path)
174
 
 
175
170
if __name__ == "__main__":
176
 
   #parce command line options
 
171
   #parse command line options
177
172
   parser = OptionParser()
178
173
   parser.add_option("-p", "--port",  action="store",
179
174
                     type="int", dest="port", default=5000,
192
187
   device = opts.device
193
188
   model = opts.model
194
189
   
 
190
   app.debug = True
 
191
   
195
192
   pcilib = pcipywrap.Pcipywrap(device, model)
196
193
   pcipywrap.__redirect_logs_to_exeption()
197
194
   app.run(host = HOST_NAME, port = PORT_NUMBER)