another minimal wiki with versioning and auth

48 views
Skip to first unread message

mdipierro

unread,
Sep 6, 2009, 11:14:13 PM9/6/09
to web2py-users
As an exercise, I have redone the following wiki:

http://werkzeug.pocoo.org/wiki30/

using web2py:

http://web2py.com/examples/static/web2py.app.wiki3.w2p

Same tables and same actions.

The web2py version of the wiki has versioning like the original but,
unlike the original, it has user authentication too. The web2py
version uses markdown wiki syntax.

We take the people at werkzeug for providing such a clean and simple
wiki design.

I apologize I did no have time to make a scree cast but perhaps some
of you can help with that.

Massimo

mr.freeze

unread,
Sep 6, 2009, 11:49:16 PM9/6/09
to web2py-users
I think a real jaw-dropper video tutorial would be 'How to create a
wiki with web2py in 2 minutes' :)

mdipierro

unread,
Sep 7, 2009, 12:01:03 AM9/7/09
to web2py-users
The web2py code is significatively shorter than the original (although
I did not measure the number of lines).
With some fast typing this can be done in 2 minutes.

Are you volunteering to record it? ;-)

Massimo

mdipierro

unread,
Sep 7, 2009, 12:14:34 AM9/7/09
to web2py-users
the original version is 113 lines of python code and 30 lines of html

the web2py version is 59 lines of python code and 17 lines of html
code

In both cases I am not including the layout.html. In the web2py case I
am including the extra code in db.py for authentication and the extra
checks required to make it work on the google app engine.

mr.freeze

unread,
Sep 7, 2009, 12:34:59 AM9/7/09
to web2py-users
I think I could pull it off in 5 minutes with narration. I'll take a
crack at it and email you when I have something.

mdipierro

unread,
Sep 7, 2009, 11:36:44 AM9/7/09
to web2py-users
I reposted it. I had made a mistake.

mdipierro

unread,
Sep 7, 2009, 8:54:11 PM9/7/09
to web2py-users
Hope it is clear to everybody that I rewrote the original wiki only
because I really like it.

Massimo
Reply all
Reply to author
Forward
0 new messages