Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(15)  |  Call(0)  |  Derive(8)  |  Import(7)

src/f/e/feincms-HEAD/example/models.py   feincms(Download)
from feincms.content.medialibrary.models import MediaFileContent
from feincms.content.application.models import ApplicationContent
from feincms.module.page.extensions.navigation import (
    NavigationExtension, PagePretender)
from feincms.content.application.models import app_reverse
class BlogEntriesNavigationExtension(NavigationExtension):
    """
    Extended navigation for blog entries.
 
    It would be added to 'Blog' page properties in admin.

src/f/e/feincms-feincmsext-HEAD/example/models.py   feincms-feincmsext(Download)
from feincms.content.medialibrary.models import MediaFileContent
from feincms.content.application.models import ApplicationContent
from feincms.module.page.extensions.navigation import NavigationExtension, PagePretender
from feincms.content.application.models import reverse
 
class BlogEntriesNavigationExtension(NavigationExtension):
    """
    Extended navigation for blog entries.
 
    It would be added to 'Blog' page properties in admin.

src/w/o/woodstock-HEAD/woodstock/feincms_extensions/navigation.py   woodstock(Download)
from woodstock.models.event import Event
from feincms.module.page.extensions.navigation import NavigationExtension, PagePretender
from feincms.content.application.models import reverse
 
from woodstock import settings
 
 
class EventNavigationExtension(NavigationExtension):

src/f/e/feincms-elephantblog-0.3.3/elephantblog/navigation_extensions/common.py   feincms-elephantblog(Download)
from django.conf import settings
 
from feincms.module.page.extensions.navigation import (
    NavigationExtension, PagePretender)
 
class BlogCategoriesNavigationExtension(NavigationExtension):
    """
    Navigation extension for FeinCMS which lists all available categories
    """
 

src/f/e/feincms-elephantblog-HEAD/elephantblog/navigation_extensions/common.py   feincms-elephantblog(Download)
from django.conf import settings
 
from feincms.module.page.extensions.navigation import (
    NavigationExtension, PagePretender)
 
class BlogCategoriesNavigationExtension(NavigationExtension):
    """
    Navigation extension for FeinCMS which lists all available categories
    """
 

src/f/e/feincms-HEAD/tests/testapp/navigation_extensions.py   feincms(Download)
from __future__ import absolute_import, unicode_literals
 
from feincms.module.page.extensions.navigation import (
    NavigationExtension, PagePretender)
 
 
class PassthroughExtension(NavigationExtension):
class PretenderExtension(NavigationExtension):
    name = 'pretender extension'
 
    def children(self, page, **kwargs):
        return [PagePretender(title='blabla', url='/asdsa/')]

src/f/e/feincms-HEAD/tests/testapp/models.py   feincms(Download)
from feincms.content.medialibrary.models import MediaFileContent
from feincms.content.application.models import ApplicationContent
from feincms.module.page.extensions.navigation import (
    NavigationExtension, PagePretender)
from feincms.content.application.models import reverse
class BlogEntriesNavigationExtension(NavigationExtension):
    """
    Extended navigation for blog entries.
 
    It would be added to 'Blog' page properties in admin.