On Wednesday, April 6, 2011 11:33:14 AM UTC-4, Richard wrote:
>
> Hello,
>
> I try to figure out how works the help bubbles of admin app...
>
> I try to bring this line into my own app view then I get helpicon() not
> define...
> <span class="tooltip">{{=helpicon()}} <span>{{=T("The data representation,
> define database tables and sets")}}</span></span>
>
> I can't find this var or function no where...
>
There's a model file called 'buttons.py' in the models folder that defines
the helpicon() function. It may seem odd to put that in the "models" folder,
but one useful thing about model files is that they are executed on every
request, so everything in them is available in all controllers and views.
Because of that, some people put site-wide helper functions in model files.
Anthony