chat.freenode.net #tryton log beginning Wed Mar 20 00:00:01 CET 2019 | ||
-!- csotelo_(~csotelo@181.67.16.48) has joined #tryton | 00:11 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 00:24 | |
-!- kapil____(uid36151@gateway/web/irccloud.com/x-cigflumxykxuzgci) has joined #tryton | 01:01 | |
-!- yangoon(~mathiasb@i59F4F502.versanet.de) has joined #tryton | 03:07 | |
-!- shadow98(uid236862@gateway/web/irccloud.com/x-mdthjjkymamrluab) has joined #tryton | 03:08 | |
-!- jcm(~jcm@78.194.214.115) has joined #tryton | 05:44 | |
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton | 05:45 | |
-!- thaneor(~lenovo3@179.26.158.75) has joined #tryton | 06:25 | |
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton | 06:49 | |
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | 07:03 | |
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton | 07:06 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 07:42 | |
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | 07:50 | |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 07:54 | |
-!- rpit(~rpit@h-213.61.178.154.host.de.colt.net) has joined #tryton | 08:15 | |
sisalp | hello, what is the difference between the tryton-admin module upgrade fonction and the Administrator/Modules/Modules Mark_for_upgrade ? | 09:16 |
---|---|---|
pokoli | sisalp: none, it's the same functionality | 09:26 |
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton | 09:39 | |
sisalp | pokoli: thank you. | 10:12 |
sisalp | pokoli: seems the configuration wizard is run when upgrade is interactive from menu | 10:20 |
pokoli | sisalp: when using trytond-admin the configuration wizard will be automatically lauched on the next login of an admin user | 10:38 |
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | 10:56 | |
-!- mariomop(~quassel@host165.201-253-198.telecom.net.ar) has joined #tryton | 11:07 | |
sisalp | pokoli: everything is clear. Thank you. | 12:03 |
-!- alexbodn(~alex@141.226.31.117) has joined #tryton | 12:19 | |
alexbodn | hello friends | 12:19 |
alexbodn | i'm studying tryton by building databases in python code. | 12:25 |
alexbodn | yes, it's perverse and primitive, but this is my way. | 12:25 |
alexbodn | please tell me whether i can use something like wizards to rely on well defined functionality. | 12:25 |
alexbodn | also, 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 #tryton | 12:29 | |
alexbodn | i mean model objects. | 12:32 |
cedk | alexbodn: there is no dump functionality on record | 12:49 |
cedk | alexbodn: for other questions, I do not understand them | 12:49 |
alexbodn | hello cedk | 13:33 |
alexbodn | about the dump, i wish to see the field values. is there a json export ? | 13:33 |
alexbodn | the 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 |
pokoli | alexbodn: you can export records as csv | 13:43 |
pokoli | alexbodn: and it will be possible to create a function to serialize a record as json | 13:44 |
pokoli | alexbodn: but you should probably define which level of depth do you want to seriealize, as a tryton record may contain relation to other tryton records | 13:45 |
alexbodn | thank you pokoli, indeed i wanted it deep, hence i thought of json rather than csv. | 14:09 |
alexbodn | is 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 #tryton | 14:16 | |
pokoli | alexbodn: trunk version include some interactive console which may be usefull for your case: http://hg.tryton.org/trytond/rev/9c1ccedd3921 | 14:22 |
pokoli | alexbodn: we use csv as it's easly to open by spreedsheet software, which fits the need of the users | 14:23 |
pokoli | alexbodn: if needed you can develop a custom module which ads a method to seriealize as json | 14:24 |
pokoli | alexbodn: 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_mixin | 14:25 |
alexbodn | btw, can a custom module add such method at the top of the inheritance tree, in the class ModelSQL ? | 14:25 |
alexbodn | pokoli: may classinfo be ModelSQL? | 14:30 |
pokoli | alexbodn: yes to both questions ;) | 14:31 |
alexbodn | that IS cool, i was about to make a monkey patch to modelsql to add it an extra omnipresent field | 14:32 |
alexbodn | is mixin a class? and what should be the module for this case? | 14:34 |
alexbodn | i may read the code | 14:34 |
-!- nlopez73(05e100bb@gateway/web/cgi-irc/kiwiirc.com/ip.5.225.0.187) has joined #tryton | 14:39 | |
-!- csotelo(~csotelo@181.67.16.48) has joined #tryton | 14:54 | |
pokoli | alexbodn: is a class and when registered it will extend any class that is a subclass of the classinfo | 15:37 |
pokoli | alexbodn: so if you add a new function it will be available to all models | 15:37 |
pokoli | alexbodn: indeed that's the usuall tryton inheritance but applied to multiple places | 15:37 |
pokoli | alexbodn: we follow this pattern to develop modules that extend other modules functionalities, for example by adding new fields on tables or modifing some functions behaviour | 15:38 |
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton | 17:43 | |
-!- thaneor1(~lenovo3@179.26.52.86) has joined #tryton | 18:27 | |
-!- kapil____(uid36151@gateway/web/irccloud.com/x-zwfkmamjawuexnmz) has joined #tryton | 19:07 | |
-!- mariomop_(~quassel@host100.201-253-199.telecom.net.ar) has joined #tryton | 20:15 | |
-!- JanGB(~jan@dslb-084-057-147-145.084.057.pools.vodafone-ip.de) has joined #tryton | 20:23 | |
-!- JanGB(~jan@dslb-084-057-147-145.084.057.pools.vodafone-ip.de) has left #tryton | 20:29 | |
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton | 21:01 | |
alexbodn | yes indeed pokoli, this is the other end of extending. i wanted it to do a more rigid partition of the records. | 22:17 |
alexbodn | now 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/!