WIKI or plugin wiki?

425 views
Skip to first unread message

Simon Carr

unread,
Oct 26, 2012, 3:30:25 PM10/26/12
to web...@googlegroups.com
I notice in Web2Py 2.x the index function in Default offers the suggestion of returning auth.wiki

I was assuming that this was just plugin wiki now built into the core. But I notice that there is no widget option and no WYSIWYG editor when creating a new page.

Should I continue to plugin wiki if I still want these extra features, or am I missing something?

Thanks
Simon

Niphlod

unread,
Oct 26, 2012, 4:57:29 PM10/26/12
to web...@googlegroups.com
can't say if plugin_wiki is going to be updated further, but auth.wiki() is embedding quite a pack of features nonetheless. If you need more features, stick with plugin_wiki.
PS: plugin_wiki never had a WYSIWYG editor, just an editor with shortcuts buttons for bold, italics, list, etc. Markmin evolved into supporting nested lists, autolinks, etc, and the editor used (markitup) hasn't catched with the new improvements. On web2py > 2.1.1 there's the preview, though.

HittingSmoke

unread,
Oct 26, 2012, 6:47:54 PM10/26/12
to web...@googlegroups.com
I feel like I read Massimo say somewhere that plugin_wiki will be deprecated when auth.wiki is more complete and documented but don't quote me on that.

Simon Carr

unread,
Oct 26, 2012, 6:49:19 PM10/26/12
to web...@googlegroups.com
Many Thanks for the response,

After doing more reading and trying both of them, I am starting to see the benefit of auth.wiki(). 

I would like to say thanks to everyone working on Web2Py for making it all so accessible and easy to use. I am looking forward to finding something I can do as a way of giving back to this great framework.

Simon 

Massimo Di Pierro

unread,
Oct 27, 2012, 1:27:05 AM10/27/12
to web...@googlegroups.com
auth.wiki is better because of integration with oembed, web2py components and group based permissions. It is not documented at all yet.

Simon Carr

unread,
Oct 27, 2012, 8:51:20 AM10/27/12
to web...@googlegroups.com
Hi Massimo,

I do like auth.wiki, but I am sure there is a bug in the creation of links. I have logged a an issue here.


I would have a look myself, but after a lot of searching, I cant even find the code for auth.wiki

Simon

Niphlod

unread,
Oct 27, 2012, 9:36:21 AM10/27/12
to web...@googlegroups.com
Small trick to see where in web2py a class lives. the 99% of imports is in gluon/__init__.py. In your case, you are searching for auth.wiki(), so is in auth. auth is defined as from tools import Auth, so it's in gluon/tools.py .
The "grep way" is faster, if you have grep at hand (couldn't live without it)

grep -nR 'def wiki(' .
./gluon/tools.py:3280:    def wiki(self,

3280 is the line number

Simon Carr

unread,
Oct 27, 2012, 9:50:46 AM10/27/12
to web...@googlegroups.com
Thanks mate,

Your always there when someone needs you. Your like Batman!

Simon

Massimo Di Pierro

unread,
Oct 27, 2012, 3:46:10 PM10/27/12
to web...@googlegroups.com
LOL

Niphlod

unread,
Oct 27, 2012, 4:45:46 PM10/27/12
to web...@googlegroups.com
lol ^ 2 .
Someone taught me to be Batman before (Anthony, Bruno, Massimo, Jonathan, etc).... I'm only trying to give back something and push others to take the mantle (we need Supermans all around :P)

Alan Etkin

unread,
Oct 27, 2012, 6:17:57 PM10/27/12
to web...@googlegroups.com
El sábado, 27 de octubre de 2012 17:45:46 UTC-3, Niphlod escribió:
lol ^ 2 .
Someone taught me to be Batman before (Anthony, Bruno, Massimo, Jonathan, etc).... I'm only trying to give back something and push others to take the mantle (we need Supermans all around :P)


Holy helpers and validators, Niphlodman!

That grep command is really a time saver. Thanks
Reply all
Reply to author
Forward
0 new messages