# Path: easy_news/redsolution_setup/models.py
# class EasyNewsSettings(BaseSettings):
#     MENU_PROXY_LEVELS = (
#         ('0', _('Show only root')),
# #        ('1', _('Show only years')),
# #        ('2', _('Show years and months')),
# #        ('3', _('Show years, months and days')),
#         ('4', _('Show years, months, days and detail list of news')),
#     )
# 
#     menu_proxy_level = models.CharField(verbose_name=_('Menu proxy level'),
#         max_length=1, choices=MENU_PROXY_LEVELS, default='0')
#     list_in_root = models.BooleanField(verbose_name=_('List of news in root of menu'),
#         blank=True, default=True)
# 
#     def show_archive(self):
#         return not self.list_in_root
# 
#     def show_root(self):
#         return int(self.menu_proxy_level) >= 0
# 
#     def show_years(self):
#         return int(self.menu_proxy_level) >= 1
# 
#     def show_monthes(self):
#         return int(self.menu_proxy_level) >= 2
# 
#     def show_days(self):
#         return int(self.menu_proxy_level) >= 3
# 
#     def show_details(self):
#         return int(self.menu_proxy_level) >= 4
# 
#     def show_list(self):
#         return self.show_years() and not self.list_in_root
# 
#     objects = EasyNewsSettingsManager()


from redsolutioncms.make import BaseMake
from redsolutioncms.models import CMSSettings
from easy_news.redsolution_setup.models import EasyNewsSettings
from os.path import dirname, join
            'easy_news_settings': easy_news_settings,
        })
        cms_settings.render_to('urls.py', 'easy_news/redsolutioncms/urls.pyt', {
            'easy_news_settings': easy_news_settings,
        })
        cms_settings.render_to(['..', 'templates', 'easy_news', 'news_detail.html'],
            'easy_news/redsolutioncms/news_detail.html', {
            'easy_news_settings': easy_news_settings,
        }, 'w')
        cms_settings.render_to(['..', 'templates', 'easy_news', 'news_archive.html'],
            'easy_news/redsolutioncms/news_archive.html', {
            'easy_news_settings': easy_news_settings,
        }, 'w')
        cms_settings.render_to(['..', 'templates', 'easy_news', 'news_archive_day.html'],
            'easy_news/redsolutioncms/news_archive_day.html', {
            'easy_news_settings': easy_news_settings,
        }, 'w')
        cms_settings.render_to(['..', 'templates', 'easy_news', 'news_archive_month.html'],
            'easy_news/redsolutioncms/news_archive_month.html', {
            'easy_news_settings': easy_news_settings,
        }, 'w')
        cms_settings.render_to(['..', 'templates', 'easy_news', 'news_archive_year.html'],
            'easy_news/redsolutioncms/news_archive_year.html', {
            'easy_news_settings': easy_news_settings,
        }, 'w')
        cms_settings.render_to(['..', 'templates', 'easy_news', 'news_list.html'],
            'easy_news/redsolutioncms/news_list.html', {
            'easy_news_settings': easy_news_settings,
        }, 'w')
        cms_settings.render_to(['..', 'templates', 'base_easy_news.html'],

# Path: easy_news/redsolution_setup/models.py
# class EasyNewsSettings(BaseSettings):
#     MENU_PROXY_LEVELS = (
#         ('0', _('Show only root')),
# #        ('1', _('Show only years')),
# #        ('2', _('Show years and months')),
# #        ('3', _('Show years, months and days')),
#         ('4', _('Show years, months, days and detail list of news')),
#     )
# 
#     menu_proxy_level = models.CharField(verbose_name=_('Menu proxy level'),
#         max_length=1, choices=MENU_PROXY_LEVELS, default='0')
#     list_in_root = models.BooleanField(verbose_name=_('List of news in root of menu'),
#         blank=True, default=True)
# 
#     def show_archive(self):
#         return not self.list_in_root
# 
#     def show_root(self):
#         return int(self.menu_proxy_level) >= 0
# 
#     def show_years(self):
#         return int(self.menu_proxy_level) >= 1
# 
#     def show_monthes(self):
#         return int(self.menu_proxy_level) >= 2
# 
#     def show_days(self):
#         return int(self.menu_proxy_level) >= 3
# 
#     def show_details(self):
#         return int(self.menu_proxy_level) >= 4
# 
#     def show_list(self):
#         return self.show_years() and not self.list_in_root
# 
#     objects = EasyNewsSettingsManager()


# Path: easy_news/redsolution_setup/make.py
from redsolutioncms.make import BaseMake
from redsolutioncms.models import CMSSettings
from easy_news.redsolution_setup.models import EasyNewsSettings
from os.path import dirname, join

            'easy_news_settings': easy_news_settings,
        })
        cms_settings.render_to('urls.py', 'easy_news/redsolutioncms/urls.pyt', {
            'easy_news_settings': easy_news_settings,
        })
        cms_settings.render_to(['..', 'templates', 'easy_news', 'news_detail.html'],
            'easy_news/redsolutioncms/news_detail.html', {
            'easy_news_settings': easy_news_settings,
        }, 'w')
        cms_settings.render_to(['..', 'templates', 'easy_news', 'news_archive.html'],
            'easy_news/redsolutioncms/news_archive.html', {
            'easy_news_settings': easy_news_settings,
        }, 'w')
        cms_settings.render_to(['..', 'templates', 'easy_news', 'news_archive_day.html'],
            'easy_news/redsolutioncms/news_archive_day.html', {
            'easy_news_settings': easy_news_settings,
        }, 'w')
        cms_settings.render_to(['..', 'templates', 'easy_news', 'news_archive_month.html'],
            'easy_news/redsolutioncms/news_archive_month.html', {
            'easy_news_settings': easy_news_settings,
        }, 'w')
        cms_settings.render_to(['..', 'templates', 'easy_news', 'news_archive_year.html'],
            'easy_news/redsolutioncms/news_archive_year.html', {
            'easy_news_settings': easy_news_settings,
        }, 'w')
        cms_settings.render_to(['..', 'templates', 'easy_news', 'news_list.html'],
            'easy_news/redsolutioncms/news_list.html', {
            'easy_news_settings': easy_news_settings,
        }, 'w')
        cms_settings.render_to(['..', 'templates', 'base_easy_news.html'],

            'easy_news/redsolutioncms/base_easy_news.html', {