Esempio n. 1
0
 def _get_schema(self, resource, context):
     return merge_dicts(
         BaseTheme_Edit._get_schema(self, resource, context),
         custom_data=String,
         banner_title=Multilingual,
         banner_path=PathDataType(multilingual=True, parameters_schema={"lang": String}),
         class_skin=NeutralClassSkin(mandatory=True),
     )
Esempio n. 2
0
File: theme.py Progetto: hforge/itws
 def _get_widgets(self, resource, context):
     # Remove logo widget
     return freeze(
         BaseTheme_Edit._get_widgets(self, resource, context)[:2]
         + [MultilineWidget('custom_data', title=MSG(u"Custom data"),
                            rows=19, cols=69),
            TextWidget('banner_title', title=MSG(u'Banner title'),
                   tip=MSG(u'(Use as banner if there is no image banner)')),
            ImageSelectorWidget('banner_path', title=MSG(u'Banner path'),
                                width=640),
            SelectWidget('class_skin', title=MSG(u'Skin'),
                         has_empty_option=False)])