Pystar, In the admin, add a group named 'wiki_editor' and put yourself in that group. Logout (if you were logged in the application), login and normally voilà! That's what I did and it worked.
On Monday, August 20, 2012 7:43:34 AM UTC+2, Pystar wrote: > > Max, > Tried it, still gives me the "401 unauthorized" error. > > On Monday, August 20, 2012 5:45:34 AM UTC+1, Massimo Di Pierro wrote: >> >> Try login into admin, then visit the page again. >> >> It should create a group "wiki_editor" and make you member automatically. >> >> On Sunday, 19 August 2012 20:17:29 UTC-5, Pystar wrote: >>> >>> I just gave it a try and it didnt work as stated. >>> In my index.py file I have the return auth.wiki() directive there but >>> whenever I try to view the page I get a login page and after that a 401 >>> unauthorized error. >>> >>> On Monday, August 20, 2012 12:45:34 AM UTC+1, Massimo Di Pierro wrote: >>>> >>>> ...this is now a core web2py feature. Give it a try: >>>> >>>> 1) create a new app >>>> 2) edit default.py so that >>>> >>>> def index(): return auth.wiki() >>>> >>>> 3) navigate to http://..../yourappname >>>> >>>> As you can see you have a wiki. Pages have permissions (group that can >>>> read, groups that can write, tags, and corresponding menu items). Each >>>> page >>>> has associated media files (accessible if you have permission to access >>>> the >>>> page). >>>> >>>> It understands the oembed protocol. If you just type the link of a >>>> youtube page, it embeds the video for example. >>>> >>>> wiki media are embedded with @////5/slug.jpg where 5 is the id of the >>>> media file. >>>> >>>> You can embed components with @{component:controller/function/args) -> >>>> LOAD('controller','function',args=args) >>>> (not sure about this syntax, may still change it) >>>> >>>> You can make multiple users groups wiki_editor and wiki_author. You can >>>> force authors to create pages with a prefix which is their username. >>>> >>>> def index(): return auth.wiki(force_prefix='%(username)s') >>>> >>>> The plan is to deprecate plugin_wiki since this handles most of it and >>>> better. >>>> >>>> Give it a try. >>>> >>> > On Monday, August 20, 2012 5:45:34 AM UTC+1, Massimo Di Pierro wrote: >> >> Try login into admin, then visit the page again. >> >> It should create a group "wiki_editor" and make you member automatically. >> >> On Sunday, 19 August 2012 20:17:29 UTC-5, Pystar wrote: >>> >>> I just gave it a try and it didnt work as stated. >>> In my index.py file I have the return auth.wiki() directive there but >>> whenever I try to view the page I get a login page and after that a 401 >>> unauthorized error. >>> >>> On Monday, August 20, 2012 12:45:34 AM UTC+1, Massimo Di Pierro wrote: >>>> >>>> ...this is now a core web2py feature. Give it a try: >>>> >>>> 1) create a new app >>>> 2) edit default.py so that >>>> >>>> def index(): return auth.wiki() >>>> >>>> 3) navigate to http://..../yourappname >>>> >>>> As you can see you have a wiki. Pages have permissions (group that can >>>> read, groups that can write, tags, and corresponding menu items). Each >>>> page >>>> has associated media files (accessible if you have permission to access >>>> the >>>> page). >>>> >>>> It understands the oembed protocol. If you just type the link of a >>>> youtube page, it embeds the video for example. >>>> >>>> wiki media are embedded with @////5/slug.jpg where 5 is the id of the >>>> media file. >>>> >>>> You can embed components with @{component:controller/function/args) -> >>>> LOAD('controller','function',args=args) >>>> (not sure about this syntax, may still change it) >>>> >>>> You can make multiple users groups wiki_editor and wiki_author. You can >>>> force authors to create pages with a prefix which is their username. >>>> >>>> def index(): return auth.wiki(force_prefix='%(username)s') >>>> >>>> The plan is to deprecate plugin_wiki since this handles most of it and >>>> better. >>>> >>>> Give it a try. >>>> >>> --