Skip to Content
Menu
This question has been flagged
1 Reply
3794 Views

https://github.com/antonylesuisse/qweb/issues/17


Hi !

Are some builtin Python functions not available in qweb templates ? Because getattr(object, attr_name) returns a QWebException: "'NoneType' object is not callable".

Thanks.

Avatar
Discard
Author Best Answer

Found an ugly workaround that takes place in the controller. When returning the function, to call the template engine which will render the qweb view, just pass 'getattr': getattr in the dictionnary of values.


Avatar
Discard
Related Posts Replies Views Activity
0
Oct 24
117
1
Apr 24
965
7
Sep 24
22445
1
Mar 24
275
0
Feb 24
410