IRC logs of #tryton for Wednesday, 2013-02-06 #tryton log beginning Wed Feb 6 00:00:01 CET 2013
2013-02-06 00:17 <plantian> Is there a way to speed up the tests?
2013-02-06 00:23 <cedk> plantian: sqlite runs faster
2013-02-06 00:24 <plantian> cedk: It determines that from the configuration file in etc/trytond.conf? Is there a way to override that just for testing?
2013-02-06 00:25 <cedk> plantian: I think there is a -c option on tryton_tests but not on individual one
2013-02-06 03:18 <iamnoob> good day, does any one have an idea what a "ValueError: invalid literal for int() with bas 10:" is?
2013-02-06 03:25 <plantian> iamnoob: Can you pastebin the full traceback?
2013-02-06 03:28 <iamnoob> plantian: hi there, here's the trace back
2013-02-06 03:32 <plantian> iamnoob: I think there might be a line where you call browse and pass in something other than a list of ids.
2013-02-06 03:35 <iamnoob> plantian: here is where its happening in my .py file its on my on_change event can you check it? im using 2.6 now
2013-02-06 03:48 <plantian> iamnoob: can you post the field that is using that? I think you want to return an id and not str()
2013-02-06 03:51 <iamnoob> plantian: i think i solved my problem.. i just want to get what's inside my _rec_name of a model, and yet im still browsing it when its already in the _rec_name. i just return an empty 'rec = {}' and its ok now.
2013-02-06 03:52 <iamnoob> plantian: but thanks again. your reply gave me the idea where to check.. thanks again plantia :)
2013-02-06 04:09 <plantian> iamnoob: okay, glad its working
2013-02-06 04:10 <plantian> iamnoob: I can't see how the on_change would work though if it just resets the thing that changed.
2013-02-06 09:41 <plantian> Is it possible to call a regular method on a model class in a doctest file? I guess using proteus which seems to proxy the methods/attrs to the actual class on the server. It seems that only special methods are proxied.
2013-02-06 09:44 <jcav> plantian: Only methods which are explicitely defined in the model's __rpc__ attribute (in the setup) and some special methods (which are automatically added in __rpc__) are callable from proteus
2013-02-06 09:45 <jcav> plantian: They are the same methods that are callable from the gtk client
2013-02-06 09:46 <plantian> jcav: So it seems I must test the method in a pure python test then, thanks.
2013-02-06 18:27 <marc0s> hi
2013-02-06 18:28 <marc0s> what's a valid value for ssl_jsonrpc in trytond.conf? i have *:8081 and nothing seems to listen there...
2013-02-06 18:29 <marc0s> i'm using trytond 2.6.2 and already set up the privatekey and certificate variables at conf as well
2013-02-06 18:32 <cedk> marc0s: True
2013-02-06 18:35 <marc0s> cedk: ok thanks; anything else should i take into account? I'm getting this error Error: [('SSL routines', 'SSL23_GET_CLIENT_HELLO', 'http request')] at the server log and remote closed connection at the client
2013-02-06 18:36 <cedk> marc0s: check the known_hosts of the client
2013-02-06 18:37 <cedk> marc0s:
2013-02-06 18:38 <marc0s> cedk: thanks for the link! i'm looking into it...
2013-02-06 18:40 <marc0s> cedk: the host:port had no fingerprint, removing its line and connecting again did the trick
2013-02-06 18:42 <cedk> marc0s: yes, no fingerprint means no ssl
2013-02-06 18:47 <marc0s> cedk: i understand, the point was that i previously had no ssl enabled and now i do :)
2013-02-06 23:14 <plantian> When I'm running tests is the user considered the admin user for access rules?
2013-02-06 23:17 <cedk> plantian: depends which tests?
2013-02-06 23:17 <cedk> plantian: unittest or scenario?
2013-02-06 23:18 <plantian> cedk: unittest
2013-02-06 23:18 <plantian> but I guess in case of further problems I'd like to know both anyways
2013-02-06 23:19 <cedk> plantian: USER is admin
2013-02-06 23:19 <cedk> plantian: but it is up to you to use an other one when starting the Transaction
2013-02-06 23:19 <cedk> plantian: for scenario, it depends of what you pass to set_trytond call
2013-02-06 23:28 <plantian> cedk: Okay thanks, the issue seemed to be that the user was not part of the company. Fixed, and I found my first bug from unit testing besides test_depends() errors.

Generated by 2.17.3 by Marius Gedminas - find it at!