problems to find the error behind a message - how to find field name causing the error

13 views
Skip to first unread message

rawdesignhamburg

unread,
Jun 12, 2017, 2:35:07 AM6/12/17
to tryton
Hello

I try to update my tryton installation and I get an error. But it looks like there are to many error messages. So I cannot find the "root" of this Exception.

  File "/usr/local/tryton3.4/tryton/tryton/gui/window/view_form/view/list.py", line 1003, in __sig_switch
   
if not self.screen.row_activate() and self.children_field:

 
File "/usr/local/tryton3.4/tryton/tryton/gui/window/view_form/screen/screen.py", line 341, in default_row_activate
   
self.switch_view(view_type='form')

 
File "/usr/local/tryton3.4/tryton/tryton/gui/window/view_form/screen/screen.py", line 376, in switch_view
   
self.display()

 
File "/usr/local/tryton3.4/tryton/tryton/gui/window/view_form/screen/screen.py", line 730, in display
    view
.display()

 
File "/usr/local/tryton3.4/tryton/tryton/gui/window/view_form/view/form.py", line 469, in display
    widget
.display(record, field)

 
File "/usr/local/tryton3.4/tryton/tryton/gui/window/view_form/view/form_gtk/float.py", line 16, in display
   
super(Float, self).display(record, field)

 
File "/usr/local/tryton3.4/tryton/tryton/gui/window/view_form/view/form_gtk/integer.py", line 40, in display
   
self.entry.set_text(field.get_client(record, factor=self.factor))

 
File "/usr/local/tryton3.4/tryton/tryton/gui/window/view_form/model/field.py", line 318, in get_client
   
return locale.format('%.*f', (digit, value * factor), True)

-v for verbose and -d for debugging on client was enabled
-v for verbose on server also enabled but I did not get more information out of this.
Then I looked for http://tryton-documentation.readthedocs.io/en/latest/developer_guide/debugging.html and enabled all debugging options. Bug I cannot find the name of the field causing this error.

Would be very happe for some help, Thank you

Sergi Almacellas Abellana

unread,
Jun 12, 2017, 4:09:12 AM6/12/17
to try...@googlegroups.com
El 12/06/17 a les 02:20, rawdesignhamburg ha escrit:
You can print the field name (with self.name) on the last line of the
exception in order to know which field is failing.

Or you can comment the fields on the view to know which are failing :)

Hope it helps.

--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

rawdesignhamburg

unread,
Jun 12, 2017, 6:50:07 PM6/12/17
to tryton

Great, thank you very much.
Reply all
Reply to author
Forward
0 new messages