In addition to putting auth.wiki(resolve=False) in db.py, I have a refresh 
function as follows (because I couldn't get auth.wiki.get_renderer to work.)

import string
@auth.requires_membership('administrator')
def refreshWiki():
    print "\n"
    for row in db(db.wiki_page).select():
        newhtml =str(auth.wiki(slug=row.slug,force_render=True))
        # replace topic 'refreshWiki' with 'index'
        newhtml = string.replace(newhtml,'refreshWiki/','index/')
        row.update_record(html=newhtml)
    db.commit()
    redirect (URL("Help","index"))

On Wednesday, September 9, 2015 at 11:14:16 AM UTC-4, [email protected] 
wrote:
>
> Upgrading didn't change the problem. But I found this link:
> http://www.web2pyslices.com/slice/show/1565/wikifying-web2py-apps
>
> I added the line:
> auth.wiki(resolve=False)
> to my db.py document and then I was able to reference the db.wiki_page 
> object. So the issue is resolved. Thanks all for helping.
> Peter
>
> On Monday, September 7, 2015 at 4:44:53 PM UTC-4, 黄祥 wrote:
>>
>> please tried web2py latest version in your local first, after it's 
>> running well then please update the web2py in pythonanywhere
>> please backup your application first before doing the update and for 
>> pythonanywhere update please check this link
>>
>> http://www.web2pyslices.com/slice/show/1942/upgrade-web2py-on-pythonanywhere
>>
>> best regards,
>> stifan
>>
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to