On Tuesday, March 20, 2018 at 3:49:35 AM UTC-4, [email protected] wrote: > > Hi Anthony , > > We have defined that variable in python controller.py as exmple below. > Its broadcasted to index file using locals(); > > *def adhar():* > * response.view = "angular/adhar/index.html"* > * return locals()* >
I don't see the variable in question in the above function, so perhaps you mean you have defined it at the top level of the controller. If that is the case, it will not be available in any views -- locals() is a dictionary including only variables defined locally within the function that contains it. Anthony -- 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.

