IRC logs of #tryton for Friday, 2019-01-25

chat.freenode.net #tryton log beginning Fri Jan 25 00:00:01 CET 2019
-!- rpit(~rpit@p200300C88F26900083E3609496DE5132.dip0.t-ipconnect.de) has joined #tryton23:02
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:36
-!- udono1(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton00:10
-!- udono(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton00:18
-!- udono1(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton02:57
-!- yangoon(~mathiasb@i59F4A872.versanet.de) has joined #tryton03:24
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton06:59
-!- piyfy(~cj@178.197.233.221) has joined #tryton07:05
-!- piyfy(~cj@178.197.233.221) has left #tryton07:23
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton07:31
-!- rpit(~rpit@p200300C88F269000716E79431B282C28.dip0.t-ipconnect.de) has joined #tryton07:32
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:07
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:15
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton08:16
-!- udono(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton08:23
-!- nzaniela(~nzaniela@41.80.77.95) has joined #tryton08:26
-!- nzaniela(~nzaniela@41.80.77.95) has joined #tryton08:47
-!- nzaniela(~nzaniela@41.80.77.95) has left #tryton08:50
-!- nzaniela(~nzaniela@41.80.77.95) has joined #tryton08:50
-!- nzaniela(~nzaniela@41.80.77.95) has left #tryton08:52
-!- nzaniela(~nzaniela@41.80.77.95) has joined #tryton08:57
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton09:13
-!- nicoe(~nicoe@2a02:2788:54:1b6:7e2a:31ff:fe5e:b25d) has joined #tryton09:22
Timitosi there. i need to search on a multivalue field. is there already some code how to implement search on a multivalue field?09:35
-!- thaneor(~lenovo3@r167-56-170-105.dialup.adsl.anteldata.net.uy) has joined #tryton09:39
-!- udono1(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton09:49
-!- smorillo(3e5248ee@gateway/web/cgi-irc/kiwiirc.com/ip.62.82.72.238) has joined #tryton09:56
-!- smorillo(8965fb35@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.251.53) has joined #tryton09:59
pokoliTimitos: i do not think so but probably joining with the target table and filtering out dose records that do not match the multivalue pattern should do the trick10:04
pokoliTimitos: there is also https://bugs.tryton.org/issue7637 which may be usefull to convert the pattern to a domain and avoid the filtering10:07
Timitospokoli: so if i understand that correctly this means that search on multivalue fields is not yet supported by the framework and a workaround would be to search on the target table repecting the multivalue pattern.10:11
pokoliTimitos: multivalue is especific case of functional fields which does not have a searcher implemented: http://hg.tryton.org/trytond/file/7f7d89424789/trytond/model/fields/function.py#l12710:13
Timitospokoli: ok. thx10:14
pokolibecause it's hard to implement a generic one that works for all cases and all patterns10:14
pokoliTimitos: I think it's easier to implement a specific searcher for the field you need to search that trying to implement a generic solution for all cases10:15
Timitosi agree10:15
pokoliTimitos: a generic solution will be a good addition to the framework but I'm not sure if it's possible to work for all cases10:16
pokoliTimitos: also knowing the pattern that will be used for the searcher will ease the implementation10:17
pokoliTimitos: so I think it will be doable to implement a generic searcher for all Multivalue fields if you only use the company field in patterns10:17
pokoliTimitos: registering a mixin that sets the searcher of all multivalue fields should be doable also: http://docs.tryton.org/projects/server/en/latest/ref/pool.html?highlight=pool#trytond.pool.Pool.register_mixin10:18
Timitosnice10:20
nzanielahi10:23
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton10:24
nzanielaon the sao this error appears in terminal10:24
nzaniela29723 140059927402240 [2019-01-25 10:22:58,646] ERROR werkzeug Error on request:10:24
nzanielaTraceback (most recent call last):10:24
nzaniela  File "/home/nzaniela/apps/CODING_DEV_APPS/VIRTUALENV_PROJECTS/garage/lib/python3.7/site-packages/werkzeug/serving.py", line 270, in run_wsgi10:24
nzaniela    execute(self.server.app)10:24
nzaniela  File "/home/nzaniela/apps/CODING_DEV_APPS/VIRTUALENV_PROJECTS/garage/lib/python3.7/site-packages/werkzeug/serving.py", line 258, in execute10:24
nzaniela    application_iter = app(environ, start_response)10:24
nzaniela  File "/home/nzaniela/Garage/trytond/trytond/wsgi.py", line 149, in __call__10:24
nzaniela    return self.wsgi_app(environ, start_response)10:24
nzaniela  File "/home/nzaniela/Garage/trytond/trytond/wsgi.py", line 155, in __call__10:24
nzaniela    return self.app(environ, start_response)10:24
nzaniela  File "/home/nzaniela/Garage/trytond/trytond/wsgi.py", line 134, in wsgi_app10:24
nzaniela    response.headers['Access-Control-Allow-Origin'] = origin10:24
nzanielaAttributeError: 'NotImplemented' object has no attribute 'headers'10:24
cedknzaniela: please fill an issue on https://bugs.tryton.org/ it is a bug introduced with the recent CORS support10:25
nzanielaokay cedk10:26
nzanieladone10:38
cedknzaniela: Please set a meaningful title and the traceback in the comment10:48
cedknzaniela: without comment nobody is notify10:49
-!- mariomop(~quassel@host164.186-109-210.telecom.net.ar) has joined #tryton10:49
nzanielaokay10:49
-!- smorillo(3e5248ee@gateway/web/cgi-irc/kiwiirc.com/ip.62.82.72.238) has joined #tryton11:04
-!- smorillo(8965fb35@gateway/web/cgi-irc/kiwiirc.com/ip.137.101.251.53) has joined #tryton11:22
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton11:48
-!- rpit(~rpit@p5B22B44D.dip0.t-ipconnect.de) has joined #tryton13:20
-!- sluggo23(515f195e@gateway/web/freenode/ip.81.95.25.94) has joined #tryton13:32
-!- csotelo(~csotelo@2800:200:f410:adb:2d8a:7caa:d18d:8442) has joined #tryton14:31
-!- smorillo(258799fc@gateway/web/cgi-irc/kiwiirc.com/ip.37.135.153.252) has joined #tryton15:16
-!- udono(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton15:37
-!- csotelo_(~csotelo@190.113.215.94) has joined #tryton17:25
-!- csotelo__(~csotelo@2800:200:f410:adb:2d8a:7caa:d18d:8442) has joined #tryton17:28
-!- csotelo(~csotelo@2800:200:f410:adb:2d8a:7caa:d18d:8442) has joined #tryton17:32
-!- udono1(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton18:19
-!- mariomop(~quassel@181.111.64.225) has joined #tryton20:04
-!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton21:00
-!- thaneor(~lenovo3@r186-48-21-62.dialup.adsl.anteldata.net.uy) has joined #tryton21:41
-!- udono(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton22:25

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!