src/pyams_skin/interfaces/__init__.py
changeset 69 a361355b55c7
parent 41 c2adb9c9c4f0
child 84 25cf058f7e1d
equal deleted inserted replaced
68:fd8fb93e1b6a 69:a361355b55c7
    75 
    75 
    76 class IInnerPage(Interface):
    76 class IInnerPage(Interface):
    77     """Inner page marker interface"""
    77     """Inner page marker interface"""
    78 
    78 
    79 
    79 
       
    80 class IWidgetInnerPage(IInnerPage):
       
    81     """Inner page with widget marker interface"""
       
    82 
       
    83 
    80 class IModalPage(Interface):
    84 class IModalPage(Interface):
    81     """Modal page marker interface"""
    85     """Modal page marker interface"""
    82 
    86 
    83 
    87 
    84 class IDialog(IModalPage):
    88 class IDialog(IModalPage):
   100 
   104 
   101     icon_class = TextLine(title='Icon CSS class')
   105     icon_class = TextLine(title='Icon CSS class')
   102 
   106 
   103     title = TextLine(title='Page title')
   107     title = TextLine(title='Page title')
   104 
   108 
       
   109     title_badge = TextLine(title="Title badge")
       
   110 
       
   111     title_badge_class = TextLine(title="Title badge class")
       
   112 
   105     subtitle = TextLine(title='Page sub-title')
   113     subtitle = TextLine(title='Page sub-title')
       
   114 
       
   115     subtitle_badge = TextLine(title="Sub-title badge")
       
   116 
       
   117     subtitle_badge_class = TextLine(title="Sub-title badge class")
   106 
   118 
   107 
   119 
   108 class IContentHelp(Interface):
   120 class IContentHelp(Interface):
   109     """Content help block"""
   121     """Content help block"""
   110 
   122 
   120 
   132 
   121     message_format = Choice(title='Help message format',
   133     message_format = Choice(title='Help message format',
   122                             vocabulary='PyAMS HTML renderers')
   134                             vocabulary='PyAMS HTML renderers')
   123 
   135 
   124 
   136 
       
   137 class IContentTitle(Interface):
       
   138     """Content title interface"""
       
   139 
       
   140     title = Attribute("Content title")
       
   141 
       
   142 
   125 class IContentSearch(Interface):
   143 class IContentSearch(Interface):
   126     """Content search interface"""
   144     """Content search interface"""
   127 
   145 
   128     def get_search_results(self, data):
   146     def get_search_results(self, data):
   129         """Extract search results from given data
   147         """Extract search results from given data