In my controller, I do this: ######################################## def index(): rows = db().select(db.post.ALL, orderby=~db.post.timestamp) return locals()
In my view I do this: ######################################## for item in rows: {{=prettydate(item.timestamp)}} it fails quietly without any errors. What am I doing wrong? On Tuesday, August 14, 2012 8:11:49 PM UTC+1, Pystar wrote: > > it works in the controller and shell but if I try calling it in the view, > it fails silently. > > On Tuesday, August 14, 2012 7:47:09 PM UTC+1, Anthony wrote: >> >> I am having issues calling the prettydate function in my views as its not >>> working, I pull the datetime variable stored in my database and when I call >>> the prettydate function, it fails quietly without throwing any errors. >> >> >> Are you saying it only fails in the view? I know it worked in the shell >> for you, but how about in a controller or model. >> >> Anthony >> > --