chat.freenode.net #tryton log beginning Thu Aug 8 00:00:01 CEST 2013 | ||
2013-08-08 00:05 <plantian> hi guys, I'm trying to access data in a tryton 1.8 database and BrowseRecords do not seem to be freed, is there a way to clear any sort of cache? I'm trying to do Cache.clean(db_name) but that seems to have no effect. | ||
2013-08-08 00:24 <cedk> plantian: there is a cache on cursor | ||
2013-08-08 00:32 <plantian> cedk: okay, it seems like using "with Transaction().new_cursor():" around the tryton calls will prevent the cursor from accumulating records then, does that sound correct? | ||
2013-08-08 01:30 <cedk> plantian: probably | ||
2013-08-08 01:43 <plantian> cedk: it seems to be working, thanks for the hint | ||
2013-08-08 10:03 <shalabhaggarwal> Hi, I am trying to write a domain where i want to check if a O2M field is None. | ||
2013-08-08 10:04 <shalabhaggarwal> i wrote something like [('field_name', '=', None)] but it does not work | ||
2013-08-08 10:04 <shalabhaggarwal> i tried [('field_name', '=', Eval(0))], this works from frontend but fails the depends testcase | ||
2013-08-08 10:05 <shalabhaggarwal> any idea whats the right way to do it? | ||
2013-08-08 10:05 <cedk> shalabhaggarwal: Why don't you write what you just said | ||
2013-08-08 10:08 <shalabhaggarwal> cedk: I dint get you. Is [('field_name', '=', None)] not same as "field is None"? | ||
2013-08-08 10:08 <cedk> shalabhaggarwal: it depends | ||
2013-08-08 10:09 <cedk> shalabhaggarwal: of the type of the field | ||
2013-08-08 10:10 <shalabhaggarwal> cedk: ok, so i guess this would work fine for simple fields but not for relational ? | ||
2013-08-08 10:12 <cedk> shalabhaggarwal: for relational it is converted in something else | ||
2013-08-08 10:12 <cedk> shalabhaggarwal: a subquery | ||
2013-08-08 10:14 <shalabhaggarwal> cedk: i understand | ||
2013-08-08 10:19 <shalabhaggarwal> cedk: but the right way to do this is still not clear to me :( | ||
2013-08-08 10:20 <shalabhaggarwal> cedk: does Eval always require a field_name? | ||
2013-08-08 10:24 <cedk> shalabhaggarwal: yes it is the purpose of Eval | ||
2013-08-08 10:24 <cedk> shalabhaggarwal: why don't use use the domain you first give ? | ||
2013-08-08 10:24 <cedk> [('field_name', '=', None)] | ||
2013-08-08 10:27 <shalabhaggarwal> cedk: would this work if i try to do a negative domain on this, i.e., [('field_name', '!=', None)] | ||
2013-08-08 10:27 <shalabhaggarwal> i actually need both | ||
2013-08-08 10:27 <shalabhaggarwal> the first case works but on negative condition also it yields the same result | ||
2013-08-08 10:28 <cedk> shalabhaggarwal: normally yes, why not test before asking? | ||
2013-08-08 10:28 <shalabhaggarwal> cedk: did test. the first case works but the negative does not | ||
2013-08-08 10:31 <shalabhaggarwal> cedk: [('field_name', 'not in', [])] solves the issue | ||
2013-08-08 10:31 <shalabhaggarwal> thanks for the help and explanation :) | ||
2013-08-08 10:32 <cedk> shalabhaggarwal: it will be fixed in python-sql | ||
2013-08-08 10:33 <shalabhaggarwal> cedk: i am waiting for that to complete, good to see the great progress on that | ||
2013-08-08 12:40 -!- elmo40(~eliveuser@CPEc8fb26459924-CMc8fb26459921.cpe.net.cable.rogers.com) has left #tryton | ||
2013-08-08 16:42 <pokoli> cedk: I have a doubt about review989002, can we talk about it? | ||
2013-08-08 18:04 <cedk> pokoli: yes | ||
2013-08-08 18:07 <pokoli> cedk: when you enter a search text in the search option in WinSearch, which code is executed? | ||
2013-08-08 18:07 <pokoli> cedk: because the exclude_ids aper if you search by their name, and IMHO they shouldn't apear | ||
2013-08-08 18:08 <cedk> pokoli: screen search_filter | ||
2013-08-08 18:09 <pokoli> cedk: but who is calling it? because it seems that excluded id's are not passed on this case | ||
2013-08-08 18:09 <cedk> pokoli: WinSearch.response | ||
2013-08-08 18:11 <pokoli> cedk: yes i have excluded ids passing there, but now filtering on when you have a search in the upper box | ||
2013-08-08 18:12 <pokoli> cedk: so it's seems that this screen is calling the search_filter from other line, but i can't not find it | ||
2013-08-08 18:13 <cedk> pokoli: I guess it is the do_search of ScreenContainer | ||
2013-08-08 18:13 <pokoli> cedk: thanks, will have a look over that | ||
2013-08-08 22:28 -!- katr(~m@chello080109051236.3.14.vie.surfer.at) has left #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!