Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Apphook work for django CMS 3.4 #65

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use Apphook implementation approach from current CMS docs
  • Loading branch information
bittner committed Nov 15, 2016
commit 411ce171c54925af04e52c81fbe66225146a2546
10 changes: 7 additions & 3 deletions cmsplugin_zinnia/cms_apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from cmsplugin_zinnia.settings import APP_URLS
from cmsplugin_zinnia.settings import APP_MENUS


app_menus = []
for menu_string in APP_MENUS:
try:
Expand All @@ -28,8 +27,13 @@ class ZinniaApphook(CMSApp):
Zinnia's Apphook
"""
name = _('Zinnia Weblog')
urls = APP_URLS
menus = app_menus
app_name = 'zinnia'

def get_urls(self, page=None, language=None, **kwargs):
return APP_URLS

def get_menus(self, page=None, language=None, **kwargs):
return app_menus


apphook_pool.register(ZinniaApphook)