src/pyams_skin/interfaces/__init__.py
changeset 576 998a3b7cac64
parent 575 d9128c1432af
equal deleted inserted replaced
575:d9128c1432af 576:998a3b7cac64
    64                            default=True)
    64                            default=True)
    65 
    65 
    66     skin_parent = Attribute("Skin parent (local or inherited)")
    66     skin_parent = Attribute("Skin parent (local or inherited)")
    67 
    67 
    68     skin = Choice(title=_("Custom graphic theme"),
    68     skin = Choice(title=_("Custom graphic theme"),
    69                   description=_("This theme will be used to handle graphic design (colors and images)"),
    69                   description=_("This theme will be used to handle graphic design (colors and "
       
    70                                 "images)"),
    70                   vocabulary='PyAMS user skins',
    71                   vocabulary='PyAMS user skins',
    71                   required=False)
    72                   required=False)
    72 
    73 
    73     @invariant
    74     @invariant
    74     def check_skin(self):
    75     def check_skin(self):
    81     container_class = TextLine(title=_("Container class"),
    82     container_class = TextLine(title=_("Container class"),
    82                                description=_("Main page container class"),
    83                                description=_("Main page container class"),
    83                                required=False)
    84                                required=False)
    84 
    85 
    85     custom_stylesheet = FileField(title=_("Custom stylesheet"),
    86     custom_stylesheet = FileField(title=_("Custom stylesheet"),
    86                                   description=_("This custom stylesheet will be used to override selected theme styles"),
    87                                   description=_("This custom stylesheet will be used to override "
       
    88                                                 "selected theme styles"),
    87                                   required=False)
    89                                   required=False)
    88 
    90 
    89     editor_stylesheet = FileField(title=_("Editor stylesheet"),
    91     editor_stylesheet = FileField(title=_("Editor stylesheet"),
    90                                   description=_("Styles defined into this stylesheet will be available into HTML editor"),
    92                                   description=_("Styles defined into this stylesheet will be "
       
    93                                                 "available into HTML editor"),
    91                                   required=False)
    94                                   required=False)
    92 
    95 
    93     custom_script = FileField(title=_("Custom script"),
    96     custom_script = FileField(title=_("Custom script"),
    94                               description=_("This custom javascript file will be used to add dynamic features to "
    97                               description=_("This custom javascript file will be used to add "
    95                                             "selected theme"),
    98                                             "dynamic features to selected theme"),
    96                               required=False)
    99                               required=False)
    97 
   100 
    98 
   101 
    99 class IUserSkinnable(ISkinnable):
   102 class IUserSkinnable(ISkinnable):
   100     """User skinnable content interface"""
   103     """User skinnable content interface"""