Tryton - Issues



Title 'Clipboard' object has no attribute 'set_with_data'
Priority bug Status chatting
Superseder Nosy List angel, ced
Type crash Components tryton
Assigned To Keywords easy

Created on 2018-07-24.16:09:42 by angel, last changed by ced.

msg42272 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2018-07-24.16:47:18
Indeed the method is not exposed for introspection:
So I guess we have to use always set_text which is slower and blocking for large data.
msg42271 (view) Author: [hidden] (angel) Date: 2018-07-24.16:09:42
Version 4.8

To reproduce:
On products (1400 products), just Ctrl + A  and Ctrl + c

Traceback (most recent call last):
  File "/home/aaaaa/projectes/bbbb/tryton/tryton/gui/window/view_form/view/", line 647, in on_keypress
  File "/home/aaaa/projectes/bbbb/tryton/tryton/gui/window/view_form/view/", line 696, in on_copy
    clipboard.set_with_data(targets, self.copy_get_func,
AttributeError: 'Clipboard' object has no attribute 'set_with_data'
Date User Action Args
2018-08-04 12:59:01cedsetkeyword: + easy
2018-07-24 16:47:18cedsetstatus: unread -> chatting
nosy: + ced
messages: + msg42272
2018-07-24 16:09:42angelcreate

Showing 10 items. Show all history (warning: this could be VERY long)