This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
2 changed files with
0 additions and
39 deletions
|
|
|
@ -4,7 +4,6 @@ from wcs.qommon import _
|
|
|
|
|
from wcs.qommon.publisher import get_publisher_class, get_request
|
|
|
|
|
from wcs.qommon.misc import get_cfg
|
|
|
|
|
|
|
|
|
|
from modules import backoffice
|
|
|
|
|
from modules import categories_admin
|
|
|
|
|
from modules import formpage
|
|
|
|
|
from modules import template
|
|
|
|
@ -15,10 +14,6 @@ from modules import connectors
|
|
|
|
|
get_publisher_class().register_translation_domain('auquotidien')
|
|
|
|
|
get_publisher_class().default_configuration_path = 'au-quotidien-wcs-settings.xml'
|
|
|
|
|
|
|
|
|
|
rdb = get_publisher_class().backoffice_directory_class
|
|
|
|
|
|
|
|
|
|
rdb.items = []
|
|
|
|
|
|
|
|
|
|
import wcs.admin.forms
|
|
|
|
|
|
|
|
|
|
wcs.admin.forms.FormsDirectory.categories = categories_admin.CategoriesDirectory()
|
|
|
|
|
|
|
|
@ -1,34 +0,0 @@
|
|
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
from quixote import get_publisher, redirect
|
|
|
|
|
from quixote.directory import Directory
|
|
|
|
|
from quixote.html import TemplateIO, htmltext
|
|
|
|
|
|
|
|
|
|
from wcs.qommon import _
|
|
|
|
|
from wcs.qommon.publisher import get_publisher_class
|
|
|
|
|
|
|
|
|
|
import wcs.backoffice.management
|
|
|
|
|
import wcs.root
|
|
|
|
|
from wcs.categories import Category
|
|
|
|
|
from wcs.formdef import FormDef
|
|
|
|
|
|
|
|
|
|
from wcs.qommon import get_cfg, errors
|
|
|
|
|
from wcs.qommon.form import *
|
|
|
|
|
|
|
|
|
|
CURRENT_USER = object()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BackofficeRootDirectory(wcs.backoffice.root.RootDirectory):
|
|
|
|
|
def get_intro_text(self):
|
|
|
|
|
return _('Welcome on Publik back office interface')
|
|
|
|
|
|
|
|
|
|
def _q_index(self):
|
|
|
|
|
if len(self.get_menu_items()) == 1:
|
|
|
|
|
return redirect(self.get_menu_items()[0]['url'])
|
|
|
|
|
return wcs.backoffice.root.RootDirectory._q_index(self)
|
|
|
|
|
|
|
|
|
|
def home(self):
|
|
|
|
|
return redirect('management/')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get_publisher_class().backoffice_directory_class = BackofficeRootDirectory
|