[web2py] Re: Forcing download of generated PDF

2014-12-08 Thread Andy Pardue
I put the output of the pdf generation tool into a StringIO object which is request.body the output never touches the filesystem. (web2py's request.body is an StringIO object) This controller will run in the background and download the document. The headers below are what you need in your

[web2py] Re: Loading modules fails - web2py 2.1.1(and earlier) / python 2.7.1 / Mac OS X

2014-12-08 Thread Andy Pardue
Massimo, This has happened to me a few times it seems that an error in the module just proclaims it is not there instead of raising the error through the custom_import. I have not tried to fix it in web2py because I am under deadlines, I just know that there is a import error or something like

[web2py] Re: web2py and pylint

2014-12-08 Thread Andy Pardue
When I was using sublime to develop web2py I would do imports under a False. This would help with auto complete as well. I use the pycharm now and it has web2py support that takes care of the way web2py use the libs. if 0: # for IDE's to find the imports for the globals from gluon.globals

[web2py] Re: running web2py in a subdirectory

2014-06-10 Thread Andy Pardue
Yes I do it all the time. Here is the config I use on Ubuntu in /etc/apache2/conf.d START OF FILE # most people use /home/www-data I just happend to use /home/web2py instead this time # I put this file in /etc/apache2/conf.d/, This makes it global to the apache install. # the key here is

[web2py] Re: this must be asked a 1000 times, but I couldn't find the answer

2010-08-04 Thread Andy Pardue
Everyone at some point has this thought. But there is a big down side to generating all the html in code, it makes the application hard to skin. I can skin a web2py application in half and hour not including cleaning up the menus with any template I come across. I do like generate the html I am

[web2py:38089] Re: New Windows Python IDE

2009-12-30 Thread Andy Pardue
I played with it, and it looks like nothing will replace eric4 for me. I have been using eric back in the 3 days for PyQt apps. A lot of people poo poo eric because of not getting breakpoints to work. One can force a breakpoint every time by importing sys on the file and inserting sys.breakpoint()

[web2py:38091] Re: Cron job at WebFaction

2009-12-30 Thread Andy Pardue
Sorry I have not replied sooner. the cron job is for apache When you use wsgi apache runs the web2py. Andy On Dec 25, 8:19 am, annet annet.verm...@gmail.com wrote: Andy, I think your guess is right, to be sure I asked support the same question. Here is their answer: There is a Control

[web2py:37817] Re: Cron job at WebFaction

2009-12-24 Thread Andy Pardue
I'm just guessing but of you run it as a wsgi app it will all be all be good. I have it behind mod_wsgi on my own server (not webfaction) and apache takes care of it. On Dec 24, 6:28 am, annet annet.verm...@gmail.com wrote: In the WebFaction documentation about creating an application, I read