backoffice: remove unused "forms/workflows in backoffice" classes (#6726)

This commit is contained in:
Frédéric Péters 2015-05-06 18:39:37 +02:00
parent cfcaf94467
commit 7ef5152323
1 changed files with 0 additions and 33 deletions

View File

@ -214,39 +214,6 @@ $(document).ready(function(){
return r.getvalue()
class FormDefPage(wcs.admin.forms.FormDefPage):
def html_top(self, title):
return html_top('forms', title)
class FormsDirectory(wcs.admin.forms.FormsDirectory):
formdef_page_class = FormDefPage
def html_top(self, title):
return html_top('forms', title)
@classmethod
def is_accessible(cls, *args):
if not get_cfg('admin-permissions', {}):
# if admin permissions are not set at all, don't expose forms
# in the backoffice.
return False
return is_accessible('forms')
class WorkflowsDirectory(wcs.admin.workflows.WorkflowsDirectory):
def html_top(self, title):
return html_top('workflows', title)
@classmethod
def is_accessible(cls, *args):
if not get_cfg('admin-permissions', {}):
# if admin permissions are not set at all, don't expose workflows
# in the backoffice.
return False
return is_accessible('workflows')
class RootDirectory(BackofficeRootDirectory):
_q_exports = ['', 'management', 'pending', 'statistics']