IRC logs of #tryton for Wednesday, 2019-03-20

chat.freenode.net #tryton log beginning Wed Mar 20 00:00:01 CET 2019
-!- csotelo_(~csotelo@181.67.16.48) has joined #tryton00:11
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:24
-!- kapil____(uid36151@gateway/web/irccloud.com/x-cigflumxykxuzgci) has joined #tryton01:01
-!- yangoon(~mathiasb@i59F4F502.versanet.de) has joined #tryton03:07
-!- shadow98(uid236862@gateway/web/irccloud.com/x-mdthjjkymamrluab) has joined #tryton03:08
-!- jcm(~jcm@78.194.214.115) has joined #tryton05:44
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton05:45
-!- thaneor(~lenovo3@179.26.158.75) has joined #tryton06:25
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton06:49
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton07:03
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton07:06
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton07:42
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton07:50
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton07:54
-!- rpit(~rpit@h-213.61.178.154.host.de.colt.net) has joined #tryton08:15
sisalphello, what is the difference between the tryton-admin module upgrade fonction and the Administrator/Modules/Modules Mark_for_upgrade ?09:16
pokolisisalp: none, it's the same functionality09:26
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton09:39
sisalppokoli: thank you.10:12
sisalppokoli: seems the configuration wizard is run when upgrade is interactive from menu10:20
pokolisisalp: when using trytond-admin the configuration wizard will be automatically lauched on the next login of an admin user10:38
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton10:56
-!- mariomop(~quassel@host165.201-253-198.telecom.net.ar) has joined #tryton11:07
sisalppokoli: everything is clear. Thank you.12:03
-!- alexbodn(~alex@141.226.31.117) has joined #tryton12:19
alexbodnhello friends12:19
alexbodni'm studying tryton by building databases in python code.12:25
alexbodnyes, it's perverse and primitive, but this is my way.12:25
alexbodnplease tell me whether i can use something like wizards to rely on well defined functionality.12:25
alexbodnalso, for my debugging i'd need to dump objects to examine their status. how could this be done?12:25
-!- nlopez73(05e100bb@gateway/web/cgi-irc/kiwiirc.com/ip.5.225.0.187) has joined #tryton12:29
alexbodni mean model objects.12:32
cedkalexbodn: there is no dump functionality on record12:49
cedkalexbodn: for other questions, I do not understand them12:49
alexbodnhello cedk13:33
alexbodnabout the dump, i wish to see the field values. is there a json export ?13:33
alexbodnthe answer to my other question seems to be proteus. this might change my whole approach. i can use the client and write the actions in proteus for repeating later.13:33
pokolialexbodn: you can export records as csv13:43
pokolialexbodn: and it will be possible to create a function to serialize a record as json13:44
pokolialexbodn: but you should probably define which level of depth do you want to seriealize, as a tryton record may contain relation to other tryton records13:45
alexbodnthank you pokoli, indeed i wanted it deep, hence i thought of json rather than csv.14:09
alexbodnis csv the only predefined serialization? the thought of proteus, called in ipython makes me feel more comfortable even to explore the record manually.14:09
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton14:16
pokolialexbodn: trunk version include some interactive console which may be usefull for your case: http://hg.tryton.org/trytond/rev/9c1ccedd392114:22
pokolialexbodn: we use csv as it's easly to open by spreedsheet software, which fits the need of the users14:23
pokolialexbodn: if needed you can develop a custom module which ads a method to seriealize as json14:24
pokolialexbodn: and this method can be added to all models of a given class, by using register_mixin: http://doc.tryton.org/projects/server/en/latest/ref/pool.html#trytond.pool.Pool.register_mixin14:25
alexbodnbtw, can a custom module add such method at the top of the inheritance tree, in the class ModelSQL ?14:25
alexbodnpokoli: may classinfo be ModelSQL?14:30
pokolialexbodn: yes to both questions ;)14:31
alexbodnthat IS cool, i was about to make a monkey patch to modelsql to add it an extra omnipresent field14:32
alexbodnis mixin a class? and what should be the module for this case?14:34
alexbodni may read the code14:34
-!- nlopez73(05e100bb@gateway/web/cgi-irc/kiwiirc.com/ip.5.225.0.187) has joined #tryton14:39
-!- csotelo(~csotelo@181.67.16.48) has joined #tryton14:54
pokolialexbodn: is a class and when registered it will extend any class that is a subclass of the classinfo15:37
pokolialexbodn: so if you add a new function it will be available to all models15:37
pokolialexbodn: indeed that's the usuall tryton inheritance but applied to multiple places15:37
pokolialexbodn: we follow this pattern to develop modules that extend other modules functionalities, for example by adding new fields on tables or modifing some functions behaviour15:38
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton17:43
-!- thaneor1(~lenovo3@179.26.52.86) has joined #tryton18:27
-!- kapil____(uid36151@gateway/web/irccloud.com/x-zwfkmamjawuexnmz) has joined #tryton19:07
-!- mariomop_(~quassel@host100.201-253-199.telecom.net.ar) has joined #tryton20:15
-!- JanGB(~jan@dslb-084-057-147-145.084.057.pools.vodafone-ip.de) has joined #tryton20:23
-!- JanGB(~jan@dslb-084-057-147-145.084.057.pools.vodafone-ip.de) has left #tryton20:29
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton21:01
alexbodnyes indeed pokoli, this is the other end of extending. i wanted it to do a more rigid partition of the records.22:17
alexbodnnow i hope the work with proteus will allow me to look more like a standard user.22:19

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