Re: [web2py] Calling function from view not working

2014-01-02 Thread Federico Ferraro
El ene 2, 2014 1:11 p.m., "Ruud Schroen" escribió: > Hi, > > I want to add a class to the body depending on the controller and function > (like Drupal does for example). > > My function (in db.py): > def get_page_class(): > page_class = 'page-%s-%s' % (request.controller, request.function) >

[web2py] Calling function from view not working

2014-01-02 Thread Ruud Schroen
Hi, I want to add a class to the body depending on the controller and function (like Drupal does for example). My function (in db.py): def get_page_class(): page_class = 'page-%s-%s' % (request.controller, request.function) return page_class And in my view: Now when i load the page, t