• Julien Muchembled's avatar
    Fix {Field,Widget}.render_view API so that Listbox's non-editable cells can access 'cell' in TALES: · ba489a0f
    Julien Muchembled authored
     * add a 'REQUEST=None' parameter to every render_view method:
       * new patches in FormulatorPatch to fix render_view of Field, Widget,
         MultiItemsWidget, LabelWidget, FileWidget, PasswordWidget and RadioWidget
       * reorder parameters in OOoChartWidget.render_view
       * add a 'REQUEST=None' parameter to DurationField.render_sub_field_view
     * forward REQUEST to field.get_value in:
       * ListWidget_render_view (my goal)
       * TALESWidget_render_view (why not?)
     * PatchedLinkWidget.render_view and
       MultiRelationStringFieldWidget.render_view
       needn't call get_request anymore if REQUEST isn't None
     * PatchedLinkWidget.render_view: change REQUEST.get('cell') into
       getattr(REQUEST,'cell',None) since 'cell' may be an attribute of REQUEST
     * add a unit test to check the signature of all registered fields/widgets
    
    git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21048 20353a03-c40f-0410-a6d1-a30d3c3de9de
    ba489a0f
MultiRelationField.py 34.4 KB