web/views/wdoc.py
branchtls-sprint
changeset 692 800592b8d39b
parent 431 18b4dd650ef8
child 731 ac4a94e50b60
--- a/web/views/wdoc.py	Tue Feb 17 20:56:45 2009 +0100
+++ b/web/views/wdoc.py	Tue Feb 17 21:29:58 2009 +0100
@@ -15,7 +15,7 @@
 from logilab.common.changelog import ChangeLog
 from logilab.mtconverter import CHARSET_DECL_RGX
 
-from cubicweb.common.selectors import match_form_params
+from cubicweb.selectors import match_form_params
 from cubicweb.common.view import StartupView
 from cubicweb.common.uilib import rest_publish
 from cubicweb.web import NotFound
@@ -85,8 +85,7 @@
 # help views ##################################################################
 
 class InlineHelpView(StartupView):
-    __selectors__ = (match_form_params,)
-    form_params = ('fid',)
+    __selectors__ = match_form_params('fid')
     id = 'wdoc'
     title = _('site documentation')
     
@@ -163,9 +162,8 @@
 
 
 class InlineHelpImageView(StartupView):
-    __selectors__ = (match_form_params,)
-    form_params = ('fid',)
     id = 'wdocimages'
+    __selectors__ = match_form_params('fid')
     binary = True
     templatable = False
     content_type = 'image/png'