1) Get trunk
2) make a group called 'wiki_editor', make ourself member of the group
using appadmin
3) def index(): return auth.wiki()
4) visit index().
I get the new menu but cannot edit pages

http://127.0.0.1:8000/auth_wiki/default/index/_edit/index

<type 'exceptions.SyntaxError'> Object exists and cannot be redefined: can_read

Traceback (most recent call last):
  File "/web2py_github/gluon/restricted.py", line 205, in restricted
    exec ccode in environment
File "/web2py_github/applications/auth_wiki/controllers/default.py", line 13, in <module>
  File "/web2py_github/gluon/globals.py", line 182, in <lambda>
    self._caller = lambda f: f()
File "/web2py_github/applications/auth_wiki/controllers/default.py", line 8, in index
    return auth.wiki()
  File "/web2py_github/gluon/tools.py", line 3087, in wiki
    return self._wiki.read(slug)['content'] if slug else self._wiki()
  File "/web2py_github/gluon/tools.py", line 4451, in __call__
    return self.edit(request.args(1) or 'index')
  File "/web2py_github/gluon/tools.py", line 4532, in edit
    db.wiki_page.can_read = [Wiki.everybody]
  File "/web2py_github/gluon/dal.py", line 7443, in __setattr__
    raise SyntaxError, 'Object exists and cannot be redefined: %s' % key
SyntaxError: Object exists and cannot be redefined: can_read


--



Reply via email to