web/views/ajaxedit.py
branchtls-sprint
changeset 742 99115e029dca
parent 692 800592b8d39b
child 1132 96752791c2b6
equal deleted inserted replaced
739:39721e56b56d 742:99115e029dca
    15 
    15 
    16     subclasses should define at least id, rtype and target
    16     subclasses should define at least id, rtype and target
    17     class attributes.
    17     class attributes.
    18     """
    18     """
    19     __registry__ = 'views'
    19     __registry__ = 'views'
    20     __selectors__ = (chainfirst(match_form_params, match_kwargs),)
    20     __select__ = (match_form_params('rtype', 'target')
       
    21                   | match_kwargs('rtype', 'target'))
    21     property_defs = {} # don't want to inherit this from Box
    22     property_defs = {} # don't want to inherit this from Box
    22     id = 'xaddrelation'
    23     id = 'xaddrelation'
    23     expected_kwargs = form_params = ('rtype', 'target')
    24     expected_kwargs = form_params = ('rtype', 'target')
    24 
    25 
    25     build_js = EditRelationBoxTemplate.build_reload_js_call
    26     build_js = EditRelationBoxTemplate.build_reload_js_call