I don't know, but see suggestion 
here<https://groups.google.com/d/msg/web2py/Rguuny9E3X8/-a976Tjx4EIJ>to help 
diagnose. I don't think it's related to being in the view (as 
opposed to in the controller).

Anthony

On Tuesday, August 14, 2012 3:15:19 PM UTC-4, Pystar wrote:
>
> 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 
>>>
>>

-- 



Reply via email to