web/views/wdoc.py
branchtls-sprint
changeset 731 ac4a94e50b60
parent 692 800592b8d39b
child 984 536e421b082b
equal deleted inserted replaced
730:9062cdc140a9 731:ac4a94e50b60
    83     return [child for child in node if child.tag == 'section']
    83     return [child for child in node if child.tag == 'section']
    84 
    84 
    85 # help views ##################################################################
    85 # help views ##################################################################
    86 
    86 
    87 class InlineHelpView(StartupView):
    87 class InlineHelpView(StartupView):
    88     __selectors__ = match_form_params('fid')
    88     __select__ = match_form_params('fid')
    89     id = 'wdoc'
    89     id = 'wdoc'
    90     title = _('site documentation')
    90     title = _('site documentation')
    91     
    91     
    92     def call(self):
    92     def call(self):
    93         fid = self.req.form['fid']
    93         fid = self.req.form['fid']
   161         
   161         
   162 
   162 
   163 
   163 
   164 class InlineHelpImageView(StartupView):
   164 class InlineHelpImageView(StartupView):
   165     id = 'wdocimages'
   165     id = 'wdocimages'
   166     __selectors__ = match_form_params('fid')
   166     __select__ = match_form_params('fid')
   167     binary = True
   167     binary = True
   168     templatable = False
   168     templatable = False
   169     content_type = 'image/png'
   169     content_type = 'image/png'
   170     
   170     
   171     def call(self):
   171     def call(self):