This is a good question, maybe there should be more direct web2py support for it, as usability wise it's a nice feature.
A wrapper is just a function that calls the other for you, like a decorator. In your case you could have something like this in your models. def TURL(**kwargs): if 'c' in kwargs: kwargs['c'] = T(kwargs['c'], lazy=False) if 'f' in kwargs: kwargs['f'] = T(kwargs['f'], lazy=False) return URL(**kwargs) Then you could use it in the views {{=TURL(r=request, c='articles', f='search'))}} Could Francisco use pattern based routing just for this app if he puts it in the application's folder routes.py? -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.