On Wednesday, July 20, 2011 8:11:56 AM UTC-4, Vincent wrote: 
>
> after some digging around I found the prettydate function in 
> gluon.tools. 
>
> If I "from gluon.tools import prettydate" directly in the page.html 
> view I no longer get an error. If I do the same thing but only in the 
> controller it still does not work.

 
The views are not run in the same context as the controller, so if you 
import a module in a controller, it will not be available in the view.
 
Anthony

Reply via email to