forked from ungleich-public/dynamicweb
16 lines
547 B
Python
16 lines
547 B
Python
# -*- coding: utf-8 -*-
|
|
from django.conf import settings # NOQA
|
|
from appconf import AppConf
|
|
|
|
|
|
class CmspluginFilerFolderAppConf(AppConf):
|
|
STYLE_CHOICES = (
|
|
# ('default', _('Default')), # define your styles here.
|
|
)
|
|
DEFAULT_STYLE = ''
|
|
|
|
def configure(self):
|
|
# set DEFAULT_STYLE to '' if it is not in STYLE_CHOICES
|
|
if not self.configured_data['DEFAULT_STYLE'] in [s for s, l in self.configured_data['STYLE_CHOICES']]:
|
|
self.configured_data['DEFAULT_STYLE'] = ''
|
|
return self.configured_data
|