# 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 django.contrib import admin
from easy_news.redsolution_setup.models import EasyNewsSettings
from redsolutioncms.admin import CMSBaseAdmin

class EasyNewsSettingsAdmin(CMSBaseAdmin):
    model = EasyNewsSettings

try:

# 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/admin.py
from django.contrib import admin
from easy_news.redsolution_setup.models import EasyNewsSettings
from redsolutioncms.admin import CMSBaseAdmin


class EasyNewsSettingsAdmin(CMSBaseAdmin):
    model = EasyNewsSettings

try:

    admin.site.register(EasyNewsSettings)