◄ ► | Muuda | Home | Admin | en de fr et | Sign in

#3673 (somtimes reply to errors)

by tonis · in Developers · assigned to tonis

Kokkuvõte

 File "/home/tonis/Projects/lino/py3/lib/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response

   response = wrapped_callback(request, *callback_args, **callback_kwargs)

 File "/home/tonis/Projects/lino/py3/lib/python3.7/site-packages/django/views/generic/base.py", line 71, in view

   return self.dispatch(request, *args, **kwargs)

 File "/home/tonis/Projects/lino/py3/lib/python3.7/site-packages/django/views/generic/base.py", line 97, in dispatch

   return handler(request, *args, **kwargs)

 File "/home/tonis/Projects/lino/src/react/lino_react/react/views.py", line 218, in post

   return settings.SITE.kernel.run_action(ar)

 File "/home/tonis/Projects/lino/src/lino/lino/core/kernel.py", line 787, in run_action

   a.run_from_ui(ar)

 File "/home/tonis/Projects/lino/src/lino/lino/core/actions.py", line 1155, in run_from_ui

   elem = ar.create_instance_from_request(**kwargs)

 File "/home/tonis/Projects/lino/src/lino/lino/core/requests.py", line 1298, in create_instance_from_request

   self.ah.store.form2obj(self, self.request.POST or self.rqdata, elem, True)

 File "/home/tonis/Projects/lino/src/lino/lino/core/store.py", line 1187, in form2obj

   if f.form2obj(ar, instance, form_values, is_new):

 File "/home/tonis/Projects/lino/src/lino/lino/core/store.py", line 171, in form2obj

   v = self.parse_form_value(v, instance)

 File "/home/tonis/Projects/lino/src/lino/lino/core/store.py", line 129, in parse_form_value

   return self.field.to_python(v)


Children

Kommentaarid

  • 6 aastat, 4 kuud ago by tonis about #3673 (somtimes reply to errors) : No, that's not the right solution... The tests are failing due to no longer having FK links as cell values in lots of tables. However with a working parse_form_value, it still fails.
    Fixed, seems that the ar.request is passed to the full_value_from_object method, and it also failed on checking ar....
  • 6 aastat, 4 kuud ago by tonis about #3673 (somtimes reply to errors) : Seems the issue was with incomplete logic in the store of GFKS fields... Orignally to go from row to dict it ran obj2html on the GFKS object, resuling in an action button <a> element... And when running the parse_form_value method of a GFKS store failes, to do not having a 2python method in the field...