Ah. It's AppConfig (see 
http://web2py.com/books/default/chapter/29/13/deployment-recipes?search=AppConfig#AppConfig-module).
 
The values are stored in .ini format in the /private directory, which is 
not supposed to be part of the Git repo.

On Thursday, May 3, 2018 at 1:40:44 AM UTC-7, Tom Campbell wrote:
>
> Trying to set up the mailer for Gmail. After a spell a way from web2py I 
> see code like this in db.py
> mail.settings.login = configuration.get('smtp.login')
> 1. What is "configuration.get()"? I'm assuming it's a function that reads 
> a file with configuration info? When I searched the web2py source 
> <https://github.com/web2py/web2py/search?p=4&q=configuration&type=&utf8=%E2%9C%93>
>  
> on GitHub I found no function named configuration.get defined anywhere.
> 2. Where does it look for the file, and what format is the file in? I 
> assume the current directory but I don't know what that means. The 
> application's directory, maybe?
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to