Jesús wrote > Hi, > > You can also use the test server that offers qooxdoo. > > Run it like this: > python generate.py source-server > > In the console output you will see that it gives you a link, put this in > the web browser and go. > > Qooxdoo is lovely worth spending time at first, then you will find it very > flexible. > > Regards.
Yes, I knew, but I needed a full web server. And I founded the solution with CherryPy :) This is the script: 8<----------8<----------8<----------8<----------8<----------8<---------- import cherrypy from jinja2 import Environment, FileSystemLoader import os.path QXDEBUG = True if QXDEBUG: qxpath = 'source' else: qxpath = 'build' current_dir = os.path.join( os.path.dirname(os.path.abspath(__file__)), qxpath) env = Environment(loader=FileSystemLoader(qxpath)) conf = { 'global' : { 'server.socket_port' : 8080, }, '/' : { 'tools.staticdir.on': True, 'tools.staticdir.dir': current_dir + '/' } } if QXDEBUG: conf['/source'] = { 'tools.staticdir.on': True, 'tools.staticdir.dir': current_dir } class Root: @cherrypy.expose def index(self): tmpl = env.get_template('index.html') return tmpl.render() cherrypy.quickstart(Root(), config=conf) 8<----------8<----------8<----------8<----------8<----------8<---------- It works fine in in debug and in build environment, need only to switch the QXDEBUG variable on and off. In this case I use jinja2 as template system, but will be easy to use another or no template at all. P.S. Yes, qooxdoo seems to be great, but now I can use it only in my spare time, I hope it will be part of my developing strategy in the future. Best regards Claudio -- View this message in context: http://qooxdoo.678.n2.nabble.com/python-flask-server-qooxdoo-desktop-client-beginner-tp7585593p7585618.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Is your legacy SCM system holding you back? Join Perforce May 7 to find out: • 3 signs your SCM is hindering your productivity • Requirements for releasing software faster • Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel