the same exact thing happens also without "compilation". all models are 
exeecuted alphabetically (that's why usually database definitions are in 
0_db.py ;-) )

On Wednesday, June 25, 2014 10:51:17 AM UTC+2, [email protected] wrote:
>
>
> web2py users,
>
> I've recently started using web2py for some web apps and am convinced its 
> an awesome tool - i wanted to check if any of you came across an 
> interesting behavior i noticed.  
>
> When i create three model files as "db.py" (defines variable 'db'), 
> "menu.py" and "scheduler.py" (access variable 'db'), everything works well 
> - but, when i rename "scheduler.py" to "a_scheduler.py", i get "db is not 
> defined" error.  I guessed its probably because of alphabetical order of 
> compilation, but wasn't sure.  
>
> Is this expected behaviour?
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to