On Mar 14, 2011, at 9:57 AM, mattynoce wrote:
> woah! i just found it. 
> 
> i neglected to mention that i was running on gae, using the mac sdk. i didn't 
> think to mention it. but it looks like that's an important piece here.
> 
> i had been checking my log file and it was telling me it was returning 404 
> errors. unfortunately, i took that to mean that i was screwing up the routing 
> somehow.
> 
> as it turns out, when i downloaded web2py from the server, it apparently 
> created an extra line (as compared to my last version) in the app.yaml file 
> that told it to skip appadmin:

Ah, good. (More below.)

> 
> [snip]
> skip_files: |
>  ^(.*/)?(
>  (app\.yaml)|
>  (app\.yml)|
>  (index\.yaml)|
>  (index\.yml)|
>  (#.*#)|
>  (.*~)|
>  (.*\.py[co])|
>  (.*/RCS/.*)|
>  (\..*)|
>  (applications/(admin|examples)/.*)|
>  ((admin|examples|welcome)\.(w2p|tar))|
>  (applications/.*?/(cron|databases|errors|cache|sessions)/.*)|
>  (applications/.*?/controllers/appadmin\.py)|
>  ((logs|scripts)/.*)|
> [/snip]
> 
> that's why it couldn't find the controller. by simply removing that line, 
> saving the file and restarting the server, appadmin worked. sorry for sending 
> us down a different road by thinking it was routes.
> 
> i'm not sure why that line was added, but i would suggest we remove it unless 
> there's a particular reason it's in there. otherwise people like me will have 
> to go in and delete it every time we upgrade.

The real problem is that app.yaml needs to be renamed app.example.yaml; 
otherwise it's always going to be getting clobbered. (The same is true of 
queue.yaml and options_std.py, seems to me.)

But appadmin is excluded by default out of an abundance (overabundance?) of 
caution over security, and it could probably be left in the app by default. 
That was my change, assuming that any user will be editing app.yaml as required 
(at the very least to change the application & version), and forgetting how 
easily it gets clobbered.

Massimo, I don't care whether the appadmin line stays or goes, but the file 
really needs to change names, and the documentation updated, and maybe a 
comment line added in app.example.yaml explaining that it needs to be copied to 
app.yaml.





> 
> thanks for the help,
> 
> matt


Reply via email to