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.

Any ideas what characteristics of my app may cause this behavior?
Since it does not seem to be the default behavior (at least not on a
fresh app, as described in previous post)

Thanks
Vincent

On Jul 18, 4:01 pm, Vincent <[email protected]> wrote:
> Hi,
>
> I have an existing web2py app called "dispersion" to which I am trying
> to add the plugin_wiki.
>
> I added the plugin through the design interface, created an editor
> group and added my user to it. I can now navigate to [site]/dispersion/
> plugin_wiki and create a page, however when I try to submit it I get
> the following error:
>
> Traceback (most recent call last):
>   File "F:\programs\web2py\gluon\restricted.py", line 192, in
> restricted    exec ccode in environment
>   File "F:\programs\web2py\applications\dispersion\views\plugin_wiki/
> page.html", line 113, in <module>
>   NameError: name 'prettydate' is not defined
>
> If I create a new default application from scratch and install the
> plugin_wiki it works without problem. An online video tutorial
> regarding plugin_wiki by Massimo mentions the date is delivered
> through ajax. I have zero ajax experience.
>
> I'm running on Windows, from source, with the built-in server.
>
> Anybody have any ideas how to address/debug this?
>
> thanks
> Vincent

Reply via email to