diff --git a/extra/auquotidien.py b/extra/auquotidien.py index 60b95fb..91e11e8 100644 --- a/extra/auquotidien.py +++ b/extra/auquotidien.py @@ -7,6 +7,7 @@ import modules.admin import modules.backoffice import modules.links_ui import modules.announces_ui +import modules.categories_admin import modules.events_ui import modules.forms_ui import modules.payments_ui @@ -69,6 +70,11 @@ rdb.register_menu_item('payments/', _('Payments'), check_visibility) rdb.register_directory('strongbox', modules.strongbox_ui.StrongboxDirectory()) rdb.register_menu_item('strongbox/', _('Strongbox'), check_visibility) +rdb.register_directory('panel', modules.admin.PanelDirectory()) +rdb.register_menu_item('panel/', _('Control Panel')) + +rdb.register_directory('categories', modules.categories_admin.CategoriesDirectory()) + import wcs.fields wcs.fields.FileField.widget_class = modules.form.FileWithPreviewAndStrongboxWidget diff --git a/extra/modules/categories_admin.py b/extra/modules/categories_admin.py index ffcd568..5158a24 100644 --- a/extra/modules/categories_admin.py +++ b/extra/modules/categories_admin.py @@ -108,6 +108,3 @@ class CategoriesDirectory(wcs.admin.categories.CategoriesDirectory): def _q_lookup(self, component): get_response().breadcrumb.append( ('categories/', _('Categories')) ) return CategoryPage(component) - -from admin import AdminRootDirectory -AdminRootDirectory.register_page('categories', CategoriesDirectory())