wiki as global object

26 views
Skip to first unread message

Alan Etkin

unread,
Mar 12, 2013, 10:14:16 AM3/12/13
to web2py-d...@googlegroups.com
As of now, the wiki feature is used by directly returning the output of Auth.wiki in the controller

I think this would be more consistent with the usual scaffolding model

db.py

wiki = Wiki(args)

wiki
.settings.a = ...
wiki
.settings.b = ...
...


# default.py

# using wiki would override the global name
# although I'm not sure about the function name
def pages():
   
# this would replace auth.wiki()
   
return wiki()

Would not be better to enforce this syntax in the welcome app?

Reply all
Reply to author
Forward
0 new messages