# Path: elephantblog/navigation_extensions/common.py
# def date_of_first_entry():
# def date_tree():
#     def children(self, page, **kwargs):
# class BlogCategoriesNavigationExtension(NavigationExtension):


from django.conf import settings
from django.utils.translation import gettext as _, gettext_lazy
from .common import Category, NavigationExtension, PagePretender, all_months, date_tree
""" optimized for use with the feincms_nav and recursetree template tag. """





class RBlogDateNavigationExtension(NavigationExtension):
    """
    Special version optimized for recursetree template tag
    """

    name = gettext_lazy("Blog date")

    def children(self, page, **kwargs):
        for year, months in date_tree():

            def return_months():
                for month in months:

# Path: elephantblog/navigation_extensions/common.py
# def date_of_first_entry():
# def date_tree():
#     def children(self, page, **kwargs):
# class BlogCategoriesNavigationExtension(NavigationExtension):


# Path: elephantblog/navigation_extensions/recursetree.py
from django.conf import settings
from django.utils.translation import gettext as _, gettext_lazy
from .common import Category, NavigationExtension, PagePretender, all_months, date_tree

""" optimized for use with the feincms_nav and recursetree template tag. """





class RBlogDateNavigationExtension(NavigationExtension):
    """
    Special version optimized for recursetree template tag
    """

    name = gettext_lazy("Blog date")

    def children(self, page, **kwargs):
        for year, months in date_tree():

            def return_months():
                for month in months:

                    yield PagePretender(