Re: [web2py] Compile from command line
Le 29/08/2011 04:40, Mike Veltman a écrit : here: http://thadeusb.com/weblog/2010/4/21/compile_web2py_apps_externally python -c import gluon.compileapp; gluon.compileapp.compile_application('applications/appname') On Sun, Aug 28, 2011 at 10:05 PM, Mike Veltman mike.velt...@gmail.comwrote: Its pretty annoying because I did know it before. Does anybody know what the command is to compile from the command line ? Also is there are website or part of the book that will collect this so I can add it ? Thanks in advance. With regards, Mike Veltman That was it ! thanks :) With regards, Mike Veltman Sorry for this basic question about compiled apps: do we have to run web2py in a different way with a compiled app ? or does web2py detect that there is a compiled version ? Regards, Thomas
Re: [web2py] Compile from command line
On Monday, September 5, 2011 5:15:51 AM UTC-4, Thomas Bellembois wrote: Sorry for this basic question about compiled apps: do we have to run web2py in a different way with a compiled app ? or does web2py detect that there is a compiled version ? No, just run as usual -- web2py will figure it out. Side note: One thing that doesn't work with compiling is an {{include var}} statement in a view, where 'var' is a variable. When views are compiled, all the includes are handled at compile time, and because the value of 'var' isn't known at compile time, the view cannot be compiled properly. Anthony
[web2py] Compile from command line
Its pretty annoying because I did know it before. Does anybody know what the command is to compile from the command line ? Also is there are website or part of the book that will collect this so I can add it ? Thanks in advance. With regards, Mike Veltman
Re: [web2py] Compile from command line
All the functions available in the 'admin' app are available in /gluon/admin.py for command line use. The function for compiling the app is app_compile(app, request), which in turn calls gluon.compileapp.compile_application. I don't think this is documented in the book. Anthony On Sunday, August 28, 2011 9:05:11 PM UTC-4, Gwayne aka Mike Veltman wrote: Its pretty annoying because I did know it before. Does anybody know what the command is to compile from the command line ? Also is there are website or part of the book that will collect this so I can add it ? Thanks in advance. With regards, Mike Veltman
Re: [web2py] Compile from command line
here: http://thadeusb.com/weblog/2010/4/21/compile_web2py_apps_externally python -c import gluon.compileapp; gluon.compileapp.compile_application('applications/appname') On Sun, Aug 28, 2011 at 10:05 PM, Mike Veltman mike.velt...@gmail.comwrote: Its pretty annoying because I did know it before. Does anybody know what the command is to compile from the command line ? Also is there are website or part of the book that will collect this so I can add it ? Thanks in advance. With regards, Mike Veltman -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ] [ Consultoria em desenvolvimento web: http://www.blouweb.com ]
Re: [web2py] Compile from command line
On Sun, Aug 28, 2011 at 10:42 PM, Anthony abasta...@gmail.com wrote: All the functions available in the 'admin' app are available in /gluon/admin.py for command line use. The function for compiling the app is app_compile(app, request), which in turn calls gluon.compileapp.compile_application. I don't think this is documented in the book. All Thadeus articles from here: http://thadeusb.com/weblog/category/Web2py Should go somewhere in the book!
Re: [web2py] Compile from command line
here: http://thadeusb.com/weblog/2010/4/21/compile_web2py_apps_externally python -c import gluon.compileapp; gluon.compileapp.compile_application('applications/appname') On Sun, Aug 28, 2011 at 10:05 PM, Mike Veltman mike.velt...@gmail.comwrote: Its pretty annoying because I did know it before. Does anybody know what the command is to compile from the command line ? Also is there are website or part of the book that will collect this so I can add it ? Thanks in advance. With regards, Mike Veltman That was it ! thanks :) With regards, Mike Veltman