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.
> 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.
>
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
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
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
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
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
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:
>>
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
9 matches
Mail list logo