[web2py] Re: another compilation question

2010-04-19 Thread mdipierro
web2py does something clever for view but very stupid for controllers. The good: For each action is collapses its view, all extended views (layout for example) and included views into a single pyc file. The bad: For each action it generates one pyc that contains a copy of the entire controller.

[web2py] Re: another compilation question

2010-04-19 Thread mdipierro
> Why does the compiled version include the .pyc files in controllers/ (outside > of compiled/)? It doesn't seem like those get used, at least not by > run_controller_in. I think you refer to line 298 of compileapp.py. I do not recall why it is there. I will try remove it and see what breaks. >

[web2py] Re: another compilation question

2010-04-19 Thread mdipierro
I tried remove it and I an error in listdir. Massimo On Apr 19, 7:22 pm, Jonathan Lundell wrote: > On Apr 19, 2010, at 5:05 PM, mdipierro wrote: > > >> Why does the compiled version include the .pyc files in controllers/ > >> (outside of compiled/)? It doesn't seem like those get used, at least

[web2py] Re: another compilation question

2010-04-19 Thread mdipierro
I double checked. The problem was not listdir but the following path +file (should have been os.path.join(path,file). Fixed and reposting. Thank Jonathan! Massimo On Apr 19, 8:34 pm, Jonathan Lundell wrote: > On Apr 19, 2010, at 6:16 PM, mdipierro wrote: > > > I tried remove it and I an error in

[web2py] Re: another compilation question

2010-04-19 Thread mdipierro
of web2py user community. > > -Original Message- > From: web2py@googlegroups.com [mailto:web...@googlegroups.com] On Behalf Of > > mdipierro > Sent: Tuesday, April 20, 2010 8:48 AM > To: web2py-users > Subject: [web2py] Re: another compilation question > > I double chec

Re: [web2py] Re: another compilation question

2010-04-19 Thread Jonathan Lundell
On Apr 19, 2010, at 4:10 PM, mdipierro wrote: > web2py does something clever for view but very stupid for controllers. > > The good: > For each action is collapses its view, all extended views (layout for > example) and included views into a single pyc file. > > The bad: > For each action it gen

Re: [web2py] Re: another compilation question

2010-04-19 Thread Jonathan Lundell
On Apr 19, 2010, at 5:05 PM, mdipierro wrote: >> Why does the compiled version include the .pyc files in controllers/ >> (outside of compiled/)? It doesn't seem like those get used, at least not by >> run_controller_in. > > I think you refer to line 298 of compileapp.py. I do not recall why it

Re: [web2py] Re: another compilation question

2010-04-19 Thread Jonathan Lundell
On Apr 19, 2010, at 6:16 PM, mdipierro wrote: > I tried remove it and I an error in listdir. Odd, since listdir starts out with: if path[-1:] != '/': path = path + '/' Which one did you remove that caused the error? > > Massimo > > On Apr 19, 7:22 pm, Jonathan Lundell wrote: >>

RE: [web2py] Re: another compilation question

2010-04-19 Thread Fiko
Of mdipierro Sent: Tuesday, April 20, 2010 8:48 AM To: web2py-users Subject: [web2py] Re: another compilation question I double checked. The problem was not listdir but the following path +file (should have been os.path.join(path,file). Fixed and reposting. Thank Jonathan! Massimo On Apr 19, 8:34