Exemplo n.º 1
0
 def GET_wiki_settings(self, page):
     settings = {'permlevel': page._get('permlevel', 0)}
     mayedit = page.get_editor_accounts()
     restricted = (not page.special) and page.restricted
     show_editors = not restricted
     return WikiSettings(settings, mayedit, show_settings=not page.special,
                         page=page.name, show_editors=show_editors,
                         restricted=restricted,
                         may_revise=True).render()
Exemplo n.º 2
0
 def GET_wiki_settings(self, page):
     """Retrieve the current permission settings for `page`"""
     settings = {'permlevel': page._get('permlevel', 0),
                 'listed': page.listed}
     VNotInTimeout().run(action_name="pageview",
             details_text="wikisettings", target=page)
     mayedit = page.get_editor_accounts()
     restricted = (not page.special) and page.restricted
     show_editors = not restricted
     return WikiSettings(settings, mayedit, show_settings=not page.special,
                         page=page.name, show_editors=show_editors,
                         restricted=restricted,
                         may_revise=True).render()
Exemplo n.º 3
0
 def GET_wiki_settings(self, page):
     """Retrieve the current permission settings for `page`"""
     settings = {
         'permlevel': page._get('permlevel', 0),
         'listed': page.listed
     }
     mayedit = page.get_editor_accounts()
     restricted = (not page.special) and page.restricted
     show_editors = not restricted
     return WikiSettings(settings,
                         mayedit,
                         show_settings=not page.special,
                         page=page.name,
                         show_editors=show_editors,
                         restricted=restricted,
                         may_revise=True).render()
Exemplo n.º 4
0
 def GET_wiki_settings(self, page):
     settings = {'permlevel': page._get('permlevel', 0)}
     mayedit = page.get_editors()
     return WikiSettings(settings, mayedit,
                         show_settings=not page.special).render()