Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
eoa-1.5/src/eoa/cms_apps.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
18 lines (14 sloc)
578 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from cms.app_base import CMSApp | |
from cms.apphook_pool import apphook_pool | |
@apphook_pool.register | |
class EOASeriesApphook(CMSApp): | |
app_name = "eoaseries" # must match the application namespace | |
name = "EOA Series Apphook" | |
def get_urls(self, page=None, language=None, **kwargs): | |
return ["eoaseries.urls"] | |
@apphook_pool.register | |
class EOAAuthorsApphook(CMSApp): | |
app_name = "eoaauthors" # must match the application namespace | |
name = "EOA Authors Apphook" | |
def get_urls(self, page=None, language=None, **kwargs): | |
return ["eoaauthors.urls"] |