# HG changeset patch # User Thierry Florac # Date 1528462263 -7200 # Node ID 303800c113f2cc8dd1987c6f43dfc3551f98dc2a # Parent 48697c7b632ceb6819acc0d6ae8dfdc45ca924fb Check parent of "get_ajax_output" method diff -r 48697c7b632c -r 303800c113f2 src/pyams_form/form.py --- a/src/pyams_form/form.py Fri Jun 08 10:52:49 2018 +0200 +++ b/src/pyams_form/form.py Fri Jun 08 14:51:03 2018 +0200 @@ -723,7 +723,7 @@ new_class = type('AJAX' + ob.__name__, (base, ob), cdict) try: # check if current form is overriding "get_ajax_output" method - if ob.get_ajax_output.__qualname__.startswith(ob.__name__ + '.'): # redefined method + if not ob.get_ajax_output.__qualname__.startswith('AJAXForm.'): # redefined method new_class.get_ajax_output = ob.get_ajax_output except AttributeError: pass