If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!


  • 0
    rochacbruno  12 years ago

    You can import Auth from movuca in controllers/plugin_wiki.py

     

    from movuca import DataBase, User
    db = DataBase([User])
    auth = db.auth

     

    replies (2)
    • offray 12 years ago

      Wow that was fast! Thanks. At first I edited the file in controllers/plugin_wiki.py but got the same error, so I edited /models/plugin_wiki.py adding the lines you told me and now I can go to login page, but I get a <type 'exceptions.KeyError'> 'plugin_wiki_page' after login. Seems that I'm making progress, but still no complete joy. Any pointer to a solution would be appreciated.

    • rochacbruno 12 years ago

      Add this to the top of file controllers/plugin_wiki.py

Commented on:

Recently in the local hackerspace we have a small discussion about which tools use to reshape our website. Most of them voted for a "tested solution" including Wiki and a CMS, but I'm proposing web2py + Movuca + plugin_wiki, wich I think will be easier to understand,  extend and hack, instead of just install and use. I have installed Movuca and I've made some initial tests, but now I want to use it with plugin_wiki to offer the same of the same functionality of CMS + wiki. So I made the installation but I get an error when plugin_wiki is trying to use "auth.user". I tryed importing Auth from gluon and even "from gloun import *" but still I get the same error. There is any way to use plugin_wiki with Movuca?


Hosting graciously provided by:
Python Anywhere