IRC logs of #tryton for Tuesday, 2015-04-28

chat.freenode.net #tryton log beginning Tue Apr 28 00:00:02 CEST 2015
2015-04-28 00:14 -!- lukio(~lukio@110-189-235-201.fibertel.com.ar) has left #tryton
2015-04-28 02:56 -!- digitalsatori(~Thunderbi@114.92.196.106) has joined #tryton
2015-04-28 04:37 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-04-28 04:46 -!- zodman_(~zodman@187.155.18.247) has joined #tryton
2015-04-28 04:47 -!- zodman_(~zodman@187.155.18.247) has joined #tryton
2015-04-28 05:24 -!- notzippy(~sabayonus@d207-216-251-90.bchsia.telus.net) has joined #tryton
2015-04-28 06:18 -!- sunny_dealmeida(~quassel@210.89.37.249) has joined #tryton
2015-04-28 06:40 -!- frispete_(~frispete@p54A9044D.dip0.t-ipconnect.de) has joined #tryton
2015-04-28 06:46 -!- digitalsatori(~Thunderbi@114.92.196.106) has joined #tryton
2015-04-28 07:01 -!- yangoon(~mathiasb@p549F0376.dip0.t-ipconnect.de) has joined #tryton
2015-04-28 07:03 -!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton
2015-04-28 07:58 -!- digitalsatori(~Thunderbi@114.92.196.106) has joined #tryton
2015-04-28 08:04 -!- Telesight(~anthony@4dafef36.ftth.telfortglasvezel.nl) has joined #tryton
2015-04-28 08:11 -!- mathsniper(1b6db22b@gateway/web/freenode/ip.27.109.178.43) has joined #tryton
2015-04-28 08:14 <mathsniper> Hi, I try "user, = User.create([{'name': 'myname', 'login': 'myname'}]); User.write([user], {'password': '123456'})" but the record is not saved in res_user table. Why?
2015-04-28 08:24 -!- michael-kohlhaas(~mk@p5DD46EF0.dip0.t-ipconnect.de) has joined #tryton
2015-04-28 08:24 -!- michael-kohlhaas(~mk@unaffiliated/michael-kohlhaas) has joined #tryton
2015-04-28 08:34 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton
2015-04-28 08:48 -!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton
2015-04-28 09:36 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton
2015-04-28 09:36 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton
2015-04-28 09:37 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton
2015-04-28 09:37 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton
2015-04-28 09:51 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-04-28 09:55 -!- Timitos(~kpreisler@2001:a60:162e:ef01:ae7b:a1ff:feaf:55f0) has joined #tryton
2015-04-28 09:57 -!- Jitesh_Nair(~jitesh@unaffiliated/jitesh-nair/x-6738125) has joined #tryton
2015-04-28 10:05 -!- munron(~AndChat68@197.211.216.214) has joined #tryton
2015-04-28 10:21 -!- michael-kohlhaas(~mk@p5DD46EF0.dip0.t-ipconnect.de) has joined #tryton
2015-04-28 10:21 -!- michael-kohlhaas(~mk@unaffiliated/michael-kohlhaas) has joined #tryton
2015-04-28 10:35 -!- udono(~udono@ip-37-201-196-116.hsi13.unitymediagroup.de) has joined #tryton
2015-04-28 12:03 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton
2015-04-28 12:24 -!- Telesight(~anthony@4dafef36.ftth.telfortglasvezel.nl) has joined #tryton
2015-04-28 12:47 -!- nicoe(~nicoe@balisto.wifi.b2ck.com) has joined #tryton
2015-04-28 13:00 -!- mariomop(~quassel@181.90.77.193) has joined #tryton
2015-04-28 13:17 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-04-28 13:47 -!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton
2015-04-28 13:59 -!- kstenger(~karla@200.124.209.158) has joined #tryton
2015-04-28 14:03 <Jitesh_Nair> how to verify res.user password?
2015-04-28 14:03 <Jitesh_Nair> i have created a user with password
2015-04-28 14:03 <Jitesh_Nair> and now i am trying to verify the password of the user
2015-04-28 14:05 -!- jcnorman(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton
2015-04-28 14:06 <pokoli> Jitesh_Nair: just call the get_login method on User class and check their return value
2015-04-28 14:07 <Jitesh_Nair> pokoli, i saw that function in source code.. but when i tried that AttributeError: type object 'res.user' has no attribute 'get_login'
2015-04-28 14:08 <pokoli> Jitesh_Nair: using proteus?
2015-04-28 14:08 <Jitesh_Nair> yes
2015-04-28 14:11 <pokoli> Jitesh_Nair: so you can specify the user/password on set_trytond
2015-04-28 14:12 <Jitesh_Nair> pokoli, but set_trytond in proteus 3.6.0 doesnt have password field
2015-04-28 14:17 <pokoli> Jitesh_Nair: you can set password using xml_rpc
2015-04-28 14:17 <pokoli> Jitesh_Nair: but i'm wondering that if you need to login/logout users, proteus is not the right library
2015-04-28 14:18 -!- mathsniper(3cf631cc@gateway/web/freenode/ip.60.246.49.204) has joined #tryton
2015-04-28 14:18 <Jitesh_Nair> pokoli, ohh... then how am i supposed to do that?
2015-04-28 14:19 <pokoli> Jitesh_Nair: why you need login?
2015-04-28 14:19 <pokoli> Jitesh_Nair: what do you want to achieve?
2015-04-28 14:19 <Jitesh_Nair> i am not using client...creating a small custom client
2015-04-28 14:20 <mathsniper> Hi, I am reading Tryton "Domain" chapter, it says "Is the name of a trytond.model.fields or a pyson statement, that evaluates to a string.". Could anyone give an example of pyson that evaluates to a string?
2015-04-28 14:20 <pokoli> mathsniper: could you post the link?
2015-04-28 14:21 <pokoli> Jitesh_Nair: small custom client? which type? web based? mobile? desktop?
2015-04-28 14:21 <mathsniper> http://doc.tryton.org/3.6/trytond/doc/topics/domain.html#topics-domain
2015-04-28 14:21 <Jitesh_Nair> pokoli, desktop
2015-04-28 14:21 <mathsniper> I know I can set the field name but I don't know how to get a pyson statement with string return.
2015-04-28 14:22 <pokoli> mathsniper: for example [(Eval('functional_field_name'), '=', True)] will be a valid domain
2015-04-28 14:22 -!- juanfe(~juanfe@190.85.115.49) has joined #tryton
2015-04-28 14:23 <pokoli> mathsniper: and functional_field_name should be a function field that return the name of another field, that will be evaluated to True on such domain
2015-04-28 14:23 <pokoli> Jitesh_Nair: so why not using the tryton client?
2015-04-28 14:26 <mathsniper> I try to set a variable test='name' in a function but print Eval('test') return empty
2015-04-28 14:26 <mathsniper> It expects to be "name"
2015-04-28 14:28 -!- Jitesh_Nair(~jitesh@116.68.97.199) has joined #tryton
2015-04-28 14:28 <pokoli> mathsniper: could you upload the code to some paste web and paste the link here?
2015-04-28 14:29 -!- Jitesh_Nair(~jitesh@unaffiliated/jitesh-nair/x-6738125) has joined #tryton
2015-04-28 14:29 <Jitesh_Nair> net disconnected sorry
2015-04-28 14:32 <pokoli> ACTION brb
2015-04-28 14:32 <mathsniper> Get back later, network very slow
2015-04-28 14:41 -!- jitesh_(~jitesh@116.68.97.199) has joined #tryton
2015-04-28 14:48 -!- Jitesh_Nair(~jitesh@unaffiliated/jitesh-nair/x-6738125) has joined #tryton
2015-04-28 14:55 <Jitesh_Nair> pokoli, there?
2015-04-28 15:01 <pokoli> Jitesh_Nair: yes :)
2015-04-28 15:08 <Jitesh_Nair> pokoli, you were telling me about the problems with proteus in logging
2015-04-28 15:20 <pokoli> Jitesh_Nair: i asked you why you don't use the tryton client
2015-04-28 15:24 <Jitesh_Nair> pokoli, ahh ya... i mentioned it but my net got disconnected
2015-04-28 15:24 <Jitesh_Nair> pokoli, i am trying to use a custom build client with trytond utilities
2015-04-28 15:24 <Jitesh_Nair> i am not gud with gtk so created a small interface with pyside
2015-04-28 15:24 <Jitesh_Nair> now iam trying to use trytond as a backend controller
2015-04-28 15:27 -!- jcnorman(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton
2015-04-28 15:27 <pokoli> Jitesh_Nair: but you will be missing a lot of interesting client features like domain inversion
2015-04-28 15:28 <Jitesh_Nair> yes...i am just learning, and i will soon learn them too :)
2015-04-28 15:29 <pokoli> Jitesh_Nair: why you want to use a custom build? I can not see any benefit on it
2015-04-28 15:29 <pokoli> Jitesh_Nair: nor benefits you, nor benefits tryton community
2015-04-28 15:29 <Jitesh_Nair> i am not trying to out grow tryton its just that iam trying to use it just as a backend (just trying to learn
2015-04-28 15:29 <Jitesh_Nair> )
2015-04-28 15:29 <Jitesh_Nair> use it in a different way..
2015-04-28 15:30 <pokoli> Jitesh_Nair: you're creating yourself a lot of problems, just don't understad why
2015-04-28 15:30 <Jitesh_Nair> well i guess that will make tryton more flexible as a standalone server and also as an application
2015-04-28 15:31 <Jitesh_Nair> pokoli, i do get your point that this thing iam trying to do is not worth
2015-04-28 15:32 <pokoli> Jitesh_Nair: you can use tryton as standalone server with your custom clients if you want. It's designed to work like this
2015-04-28 15:32 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton
2015-04-28 15:32 <pokoli> Jitesh_Nair: just saying that it's not an easy task to implement a custom client, with all the features
2015-04-28 15:32 <Jitesh_Nair> pokoli, but since i started this i dont want to drop it...
2015-04-28 15:32 <Jitesh_Nair> exactly....standalone
2015-04-28 15:33 <pokoli> Jitesh_Nair: so I wont recommend you to write one from scratch
2015-04-28 15:33 <Jitesh_Nair> hey as a beginer i wont try to implement all the features
2015-04-28 15:33 <Jitesh_Nair> just few of them as a test...lightweight stuff
2015-04-28 15:34 <Jitesh_Nair> just few of the things like inventory management etc
2015-04-28 15:35 <pokoli> Jitesh_Nair: just install the client, deploy a server, connect and install the stock module
2015-04-28 15:35 <pokoli> Jitesh_Nair: no need to code anything
2015-04-28 15:36 <Jitesh_Nair> pokoli, customizing the ui is what i tried...now i know an erp doesnt require much ui stuffs...as i said i was trying to learn
2015-04-28 15:37 -!- bvillasanti(~bvillasan@181.16.21.34) has joined #tryton
2015-04-28 15:39 <pokoli> Jitesh_Nair: if you want to learn how tryton works as ERP, install the client and test it
2015-04-28 15:39 <pokoli> Jitesh_Nair: if you want to learn how tryton internals work, it's not easy
2015-04-28 15:41 <Jitesh_Nair> yes i will be doing that for sure...last time when you told me to work on client and then learn how to work internal....i downloaded client and got it running
2015-04-28 15:42 <pokoli> Jitesh_Nair: so don't understand what issues do you have
2015-04-28 15:44 <Jitesh_Nair> well back to the issue how to authorize a user with proteus....i used res.user created a user and added password for it, saved it
2015-04-28 15:45 <Jitesh_Nair> now how to authenticate its password is what iam trying to do.
2015-04-28 15:48 <pokoli> Jitesh_Nair: User.get_login(username, password)
2015-04-28 15:49 <Jitesh_Nair> yes i read the source and did that but it failed and then came here to ask from you guys....the error was..AttributeError: type object 'res.user' has no attribute 'get_login'
2015-04-28 15:51 <pokoli> Jitesh_Nair: because get_login function is not available from RPC, so you can not call it directly from proteus
2015-04-28 15:57 <Jitesh_Nair> ohh kkk.....
2015-04-28 15:57 <Jitesh_Nair> thanks mate....
2015-04-28 16:01 <Jitesh_Nair> :)
2015-04-28 16:37 -!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has joined #tryton
2015-04-28 18:14 -!- mathsniper(1b6db22b@gateway/web/freenode/ip.27.109.178.43) has joined #tryton
2015-04-28 18:19 <mathsniper> Hi pokoli, this is the code I said before: http://tny.cz/01531e5b
2015-04-28 18:19 <mathsniper> pyson.Eval('test') is empty even "test" variable is set.
2015-04-28 18:28 <mathsniper> Does anyone know the issue?
2015-04-28 18:38 <cedk> mathsniper: why are you using a PYSON?
2015-04-28 18:38 <cedk> mathsniper: indeed, I even don't understand what you try to do
2015-04-28 18:39 <cedk> mathsniper: why don't you write: User.find([('login', '=', 'admin')])
2015-04-28 18:39 <mathsniper> http://doc.tryton.org/3.4/trytond/doc/topics/domain.html#topics-domain
2015-04-28 18:39 <mathsniper> <field name> Is the name of a trytond.model.fields or a pyson statement, that evaluates to a string.
2015-04-28 18:40 <mathsniper> I would like to know how pyson evaluates to a string
2015-04-28 18:40 <cedk> mathsniper: with the decoder
2015-04-28 18:41 <mathsniper> I try "test='abc'; print "eval %s " % pyson.PYSONDecoder().decode(pyson.PYSONEncoder().encode(pyson.Eval('test')))" but still return empty
2015-04-28 18:42 <cedk> mathsniper: you must set a context to the decoder
2015-04-28 18:44 <mathsniper> What does 'context' should be?
2015-04-28 18:48 <mathsniper> I try " pyson.PYSONDecoder(context=pyson.CONTEXT['Eval']).decode(pyson.PYSONEncoder().encode(pyson.Eval('test')))" but error appears: TypeError: unbound method get() must be called with Eval instance as first argument (got unicode instance instead)
2015-04-28 18:50 <cedk> mathsniper: look at the unittest
2015-04-28 18:52 -!- smarro(~sebastian@190.105.79.159) has joined #tryton
2015-04-28 18:55 <mathsniper> I see. resolved the issue.
2015-04-28 18:55 <mathsniper> I try "pyson.PYSONDecoder(context=locals()).decode(pyson.PYSONEncoder().encode(eval))"
2015-04-28 18:57 <Jitesh_Nair> mathsniper, were you able to verify a users password?? even i wanted to do that
2015-04-28 18:57 -!- bvillasanti(~bvillasan@181.16.21.34) has joined #tryton
2015-04-28 18:58 <mathsniper> When I read the tryton domain chapter document, I think the statement "<field name> Is the name of a trytond.model.fields or a pyson statement, that evaluates to a string." is saying that "the model search function will convert the domain variable to proper string if it is an instance of PYSON".
2015-04-28 19:01 <Jitesh_Nair> mathsniper, you there?
2015-04-28 19:06 <Jitesh_Nair> mathsniper, were you able to verify password of a user with this??
2015-04-28 19:09 -!- Jitesh_Nair(~jitesh@unaffiliated/jitesh-nair/x-6738125) has joined #tryton
2015-04-28 19:17 <mathsniper> User.get_login class method is not in User __rpc__. Is it possible to call User.get_login method using proteus?
2015-04-28 19:19 <Jitesh_Nair> is there any way to verify the password of the user if not by get_login as its not in the __rpc__
2015-04-28 19:22 -!- jcnorman(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton
2015-04-28 19:25 <mathsniper> try User.sessions
2015-04-28 19:29 <mathsniper> Seems User.get_login is the only way to login
2015-04-28 19:31 -!- jcnorman(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton
2015-04-28 19:37 -!- jcnorman(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton
2015-04-28 19:38 -!- bvillasanti(~bvillasan@190.105.79.159) has joined #tryton
2015-04-28 19:43 <mathsniper> I think it is better the get the pool from proteus_config and call get_login within Transaction.
2015-04-28 19:43 <mathsniper> It works.
2015-04-28 19:46 <mathsniper> Hi @cedk, Will the circular dependent imports of Transaction being solved in future? The error always happen if I import Transaction in module scope.
2015-04-28 19:51 <mathsniper> Please see "issue 4724"
2015-04-28 20:39 -!- sunny_dealmeida(~quassel@210.89.37.244) has joined #tryton
2015-04-28 20:46 -!- frispete_(~frispete@p54A9044D.dip0.t-ipconnect.de) has joined #tryton
2015-04-28 20:48 -!- nineinchnick(~jwas@109.231.18.226) has joined #tryton
2015-04-28 20:50 -!- nineinchnick1(~jwas@109.231.18.226) has joined #tryton
2015-04-28 21:00 -!- jcnorman(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton
2015-04-28 21:12 -!- nicoe(~nicoe@2a02:a03f:3068:4b00:ee55:f9ff:fe7b:f7ac) has joined #tryton
2015-04-28 21:20 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton
2015-04-28 22:05 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton
2015-04-28 22:47 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton
2015-04-28 22:53 -!- duesenfranz(~jona@chello213047182122.tirol.surfer.at) has joined #tryton
2015-04-28 22:58 <duesenfranz> ..can anybody explain to me why this doesn't work?: http://is.gd/qeYGBF
2015-04-28 22:59 <duesenfranz> since the function should only life as long as 'a, shouldn't this be correct?
2015-04-28 23:06 -!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has joined #tryton
2015-04-28 23:10 -!- duesenfranz(~jona@chello213047182122.tirol.surfer.at) has left #tryton
2015-04-28 23:43 -!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has joined #tryton
2015-04-28 23:50 -!- jcnorman(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton

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