[web2py] email logging

2012-11-21 Thread Brian Blais
Hello everyone,

I can't seem to find this in the docs anywhere: how can I make it so that a log 
of every event done on an app (adding a user, uploading a file, etc...) is sent 
via email to a specified place?  


thanks,

    Brian Blais

-- 
Brian Blais
bbl...@gmail.com
http://web.bryant.edu/~bblais
http://brianblais.wordpress.com/



-- 





default vs not-default (was Re: [web2py] perhaps a silly question about index)

2012-11-21 Thread Brian Blais
On Nov 21, 2012, at 4:55 AM, lyn2py wrote:

> You can remap this using routes.py
> 
> On Tuesday, November 20, 2012 9:44:37 PM UTC+8, Brian Blais wrote:
> Hello, 
> 
> Is there a reason to have the controllers all in default.py, or is there some 
> reason to have certain controllers in default.py and others not?  When you 
> want to point to your actual app, I will want to give a url that is 
> http:///appname/ 
> 
> not with the /default/ in it.  Is that remapped later? 
> 

Okay, so I can reroute it afterword, but is there any reason why I would want 
to do this:

all controllers in models/default.py
remap to http:///appname/ with routes.py

versus this:

all controllers in models/ in their own files
no need to remap with routes.py


It seems odd to have all the controllers in one big file, rather than breaking 
them up, but perhaps there is a design reason for this. 

    thanks,

    Brian Blais




-- 
Brian Blais
bbl...@gmail.com
http://web.bryant.edu/~bblais
http://brianblais.wordpress.com/



-- 





[web2py] perhaps a silly question about index

2012-11-20 Thread Brian Blais
Hello,

I was just started using web2py, and came across this organizational question.  
It seems as if the default application points to 

http://127.0.0.1:8000/appname/default/index

why doesn't it point to:

http://127.0.0.1:8000/appname/index

Is there a reason to have the controllers all in default.py, or is there some 
reason to have certain controllers in default.py and others not?  When you want 
to point to your actual app, I will want to give a url that is 
http:///appname/

not with the /default/ in it.  Is that remapped later?

thanks, and I hope this isn't too silly a question!


    Brian Blais


-- 
Brian Blais
bbl...@gmail.com
http://web.bryant.edu/~bblais
http://brianblais.wordpress.com/



--