[web2py] Re: Setting up wiki is not as simple as stated in default.py

2014-05-18 Thread Hi Toni
Hi Rufus,

I think it should be* auth.wiki() *instead of auth_wiki().

In views/index.html add {{=content}}.

If you are logged in as admin it should work now.


-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Setting up wiki is not as simple as stated in default.py

2014-05-17 Thread Anthony
From the book:

At this point no page has been created and in order to create pages you 
 must be logged-in and you must be member of a group called wiki_editor or 
 wiki_author. If you are logged-in as administrator the wiki_editor 
 group is created automatically and you are made a member.


Also, it's auth.wiki() rather than auth_wiki().

Anthony

On Saturday, May 17, 2014 2:27:49 AM UTC-4, Rufus wrote:

 I wanted to create a wiki on PythonAnywhere, so I did the most 
 straightforward thing.
 I went to my site manager, said create simple app.   MyWiki.
   
 edited default.py and changed the index controller to:
 return auth_wiki()

 save and view

 got:

 401 UNAUTHORIZED

 any clues?




-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Setting up wiki is not as simple as stated in default.py

2014-05-17 Thread Rufus
Thanks for the tips Anthony!

After  I added the groups wiki_editor and wiki_author and put my
signon into those groups, the wiki started working (it appears I have
a bit more to learn about how the wiki works now that it's working),  but
I thought I was administrator at the time and it didn't automatically
set up those groups.

I think a one-sentence additional comment in default.py should mention
these additonal requirements.  (or refer to the documentation in the
manual).

(And yeah, the underscore in auth_wiki() was just a posting typo, of 
course)

Rufus



On Saturday, May 17, 2014 9:58:27 AM UTC-4, Anthony wrote:

 From the book:

 At this point no page has been created and in order to create pages you 
 must be logged-in and you must be member of a group called wiki_editor or 
 wiki_author. If you are logged-in as administrator the wiki_editor 
 group is created automatically and you are made a member.


 Also, it's auth.wiki() rather than auth_wiki().

 Anthony

 On Saturday, May 17, 2014 2:27:49 AM UTC-4, Rufus wrote:

 I wanted to create a wiki on PythonAnywhere, so I did the most 
 straightforward thing.
 I went to my site manager, said create simple app.   MyWiki.
   
 edited default.py and changed the index controller to:
 return auth_wiki()

 save and view

 got:

 401 UNAUTHORIZED

 any clues?




-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Setting up wiki is not as simple as stated in default.py

2014-05-17 Thread Anthony


 I thought I was administrator at the time and it didn't automatically
 set up those groups.


You have to be logged into the admin app at the time.

Anthony

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.