IRC logs of #tryton for Thursday, 2014-02-13

chat.freenode.net #tryton log beginning Thu Feb 13 00:00:01 CET 2014
2014-02-13 00:29 -!- pablovannini(~pablo@190.55.79.249) has left #tryton
2014-02-13 00:29 -!- irclog(~irclog@moretus.b2ck.com) has joined #tryton
2014-02-13 00:36 -!- pablovannini(~pablo@190.55.79.249) has joined #tryton
2014-02-13 02:38 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2014-02-13 03:16 -!- irclog(~irclog@moretus.b2ck.com) has joined #tryton
2014-02-13 03:18 -!- 92AAAD7HF(~mathiasb@84.159.20.226) has joined #tryton
2014-02-13 03:18 -!- frispete(~frispete@p54A93D9B.dip0.t-ipconnect.de) has joined #tryton
2014-02-13 03:23 -!- zodman(~zodman@50.115.163.209) has joined #tryton
2014-02-13 03:29 -!- yangoon(~mathiasb@p549F14E2.dip0.t-ipconnect.de) has joined #tryton
2014-02-13 03:30 -!- rafiu(~Adium@host81-139-111-191.in-addr.btopenworld.com) has joined #tryton
2014-02-13 03:35 -!- pekka(~pekka@cm-84.210.54.188.getinternet.no) has joined #tryton
2014-02-13 03:37 -!- Streward(~quassel@85.183.31.24) has joined #tryton
2014-02-13 03:39 -!- zodman(~zodman@50.115.163.209) has joined #tryton
2014-02-13 03:43 -!- frispete(~frispete@84.169.61.155) has joined #tryton
2014-02-13 03:44 -!- digitalsatori(~Thunderbi@116.234.234.90) has joined #tryton
2014-02-13 03:45 -!- zodman1(~zodman@50.115.163.209) has joined #tryton
2014-02-13 03:46 -!- frispete_(~frispete@p54A93D9B.dip0.t-ipconnect.de) has joined #tryton
2014-02-13 04:03 -!- yangoon(~mathiasb@p549F14E2.dip0.t-ipconnect.de) has joined #tryton
2014-02-13 06:01 -!- yangoon1(~mathiasb@p549F0E92.dip0.t-ipconnect.de) has joined #tryton
2014-02-13 06:40 -!- frispete(~frispete@p54A92DFB.dip0.t-ipconnect.de) has joined #tryton
2014-02-13 06:48 -!- digitalsatori(~Thunderbi@116.234.234.90) has joined #tryton
2014-02-13 07:26 -!- sharoonthomas(~sharoonth@122.177.154.78) has joined #tryton
2014-02-13 07:38 -!- Telesight(~anthony@77-175-168-222.FTTH.ispfabriek.nl) has joined #tryton
2014-02-13 07:45 -!- nicoe(~nicoe@106.115-245-81.adsl-dyn.isp.belgacom.be) has joined #tryton
2014-02-13 08:18 -!- digitalsatori(~Thunderbi@116.234.234.90) has joined #tryton
2014-02-13 08:43 -!- jvblasco(~seba@62.43.196.37.static.user.ono.com) has joined #tryton
2014-02-13 08:43 -!- jeancavallo(~giovanni@LVelizy-156-46-68-52.w80-12.abo.wanadoo.fr) has joined #tryton
2014-02-13 08:43 <jvblasco> morning everyone
2014-02-13 08:52 <jeancavallo> morning :)
2014-02-13 08:54 -!- digitalsatori(~Thunderbi@116.234.234.90) has joined #tryton
2014-02-13 09:17 -!- jvblasco(~seba@62.43.196.37.static.user.ono.com) has joined #tryton
2014-02-13 09:18 -!- xid(joeblob@narc.oti.cz) has joined #tryton
2014-02-13 09:25 -!- digitalsatori(~Thunderbi@116.234.234.90) has joined #tryton
2014-02-13 09:26 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton
2014-02-13 09:26 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2014-02-13 09:41 -!- littlebit(~Thunderbi@ulmg-5d846297.pool.mediaWays.net) has joined #tryton
2014-02-13 09:45 <pokoli> cedk: can you have a look at https://www.dropbox.com/s/vruy0h28cyd4m8l/access_example2.py
2014-02-13 09:48 <cedk> pokoli: looks good
2014-02-13 09:49 <cedk> pokoli: could be extended to write/delete
2014-02-13 09:49 <pokoli> cedk: the problem I see is that the user has read access but doesn't belong to the group
2014-02-13 09:49 <cedk> pokoli: it could also be more AR
2014-02-13 09:49 <pokoli> cedk: i extended with write and it has no write access
2014-02-13 09:50 <cedk> pokoli: I don't understand
2014-02-13 09:51 <cedk> pokoli: but if you find a security issue please report to bugtracker and don'ttalk about publicly
2014-02-13 09:53 -!- digitalsatori(~Thunderbi@116.234.234.90) has joined #tryton
2014-02-13 10:00 -!- pekka1(~naivsuper@cm-84.210.54.188.getinternet.no) has joined #tryton
2014-02-13 10:03 -!- swayf(~swayf@188-193-123-49-dynip.superkabel.de) has joined #tryton
2014-02-13 10:04 <cedk> pokoli: ok, I understand now and no creating a model access for a group doesn't affect users not in this group
2014-02-13 10:04 <cedk> pokoli: if you want to have effect on all users, you must create a global model access
2014-02-13 10:05 <cedk> pokoli: explicit is better than implicit
2014-02-13 10:05 <pokoli> cedk: thanks
2014-02-13 10:06 <cedk> pokoli: this is like that since 1.0
2014-02-13 10:06 <pokoli> cedk: but i have always problems with access groups, as i'm not always sure if i'm think right
2014-02-13 10:06 <cedk> pokoli: but having unittest on this topic will be great
2014-02-13 10:06 <cedk> pokoli: and doc
2014-02-13 10:08 <pokoli> cedk: the question raised from docs :) https://github.com/tryton/tryton-documentation/commit/627447ce4fc7ffc8d614cc84ef7b38b3f931a393#commitcomment-5357011
2014-02-13 10:13 -!- mfladischer(~fladische@sh144.medunigraz.at) has joined #tryton
2014-02-13 10:29 <cedk> pokoli: when I speak about doc, I mean trytond/doc
2014-02-13 10:57 -!- littlebit(~Thunderbi@ulmg-4d022895.pool.mediaWays.net) has joined #tryton
2014-02-13 11:30 -!- sharoonthomas(~sharoonth@122.177.154.78) has joined #tryton
2014-02-13 11:31 -!- littlebit(~Thunderbi@ulmg-5d8453b6.pool.mediaWays.net) has joined #tryton
2014-02-13 11:46 -!- sharoonthomas(~sharoonth@122.177.154.78) has joined #tryton
2014-02-13 11:47 -!- Laura87(~Clooney@77.94.84.10) has joined #tryton
2014-02-13 11:47 -!- sharoonthomas(~sharoonth@122.177.154.78) has joined #tryton
2014-02-13 11:56 -!- strebitz(~sebastian@91.183.59.105) has joined #tryton
2014-02-13 12:02 -!- mariomop(~quassel@host82.190-138-107.telecom.net.ar) has joined #tryton
2014-02-13 12:31 <jvblasco> guys, i've seen tryton has smtp config stuff in the tyrtond.conf file, i wonder if it means that tryton has an inbuilt smtp client
2014-02-13 12:31 -!- plantian(~ian@174.135.6.172) has joined #tryton
2014-02-13 12:33 -!- mariomop(~quassel@host82.190-138-107.telecom.net.ar) has joined #tryton
2014-02-13 12:33 <cedk> jvblasco: what do you name "smtp client"?
2014-02-13 12:34 <cedk> jvblasco: trytond uses the Python builtin to communicate with SMTP servers
2014-02-13 12:36 <jvblasco> cedk: ok, and how may i use it inside tryton to send an email?
2014-02-13 12:37 <jvblasco> cedk: or where may i find some documentation to do it?
2014-02-13 12:38 <jvblasco> cedk: For example i want to send an email to some emails stored in the contact_mechanism of a party
2014-02-13 12:39 <cedk> jvblasco: in trytond/tools there is get_smtp_server
2014-02-13 12:39 <cedk> jvblasco: but be careful that sending email is not managed by the transaction
2014-02-13 12:41 <jvblasco> cedk: what do u mean? I just need to do a quick as possible hack, to notify some customers that their servers are down
2014-02-13 12:41 <jvblasco> cedk: i don't really need, right now to store anything in the database
2014-02-13 12:42 <jvblasco> cedk: i was thinking about doing it with flask mail extension, and retrieving from python the party contacts to send the mail
2014-02-13 12:43 <jvblasco> cedk: but thought doing it from tryton could be nice, to learn sending mails from inside tryton
2014-02-13 12:45 <pokoli> jvblasco: maybe you can have a look at cron error message reporting http://hg.tryton.org/trytond/file/870ec1d3b417/trytond/ir/cron.py#l126
2014-02-13 12:45 <pokoli> jvblasco: what cedk means is that if the transaction is rolled back, the email will be sent
2014-02-13 12:48 <jvblasco> pokoli: i c, well no worries for me with that, as there won't really be a db transaction in the operation
2014-02-13 12:48 <jvblasco> pokoli, cedk: may for a near future i will need to handle that in some way, but not right now
2014-02-13 12:50 <pokoli> jvblasco: so If you have to manage in some way, I will recomend you sending email as last action of the transaction
2014-02-13 12:52 <sharoonthomas> pokoli: jvblasco: the way we get around this is to put emails into electronic-mail in an outbox folder, a cron then sends the emails later (this is only done for transactions where there is a possibility of a rollback).
2014-02-13 12:55 <jvblasco> sharoonthomas: and what may electronic-mail be? A tryton model?
2014-02-13 12:55 <sharoonthomas> jvblasco: yep
2014-02-13 12:56 <sharoonthomas> jvblasco: https://github.com/openlabs/electronic-mail
2014-02-13 12:57 <cedk> I don't think using the DB as queue is the right design, I think it is better to use a task queue and each task will check his validity
2014-02-13 13:24 -!- nicoe(~nicoe@2001:6f8:3aa:0:b699:baff:fe56:2328) has joined #tryton
2014-02-13 13:25 -!- gremly(~gremly@190.85.36.58) has joined #tryton
2014-02-13 13:30 -!- rafiu1(~Adium@host81-139-178-190.in-addr.btopenworld.com) has joined #tryton
2014-02-13 14:00 -!- flox(~florent@unaffiliated/flox) has joined #tryton
2014-02-13 14:02 -!- sharoonthomas(~sharoonth@122.177.154.78) has joined #tryton
2014-02-13 14:32 -!- ecarreras(~under@unaffiliated/ecarreras) has joined #tryton
2014-02-13 14:38 -!- pablovannini(~pablo@181.47.181.28) has joined #tryton
2014-02-13 15:12 -!- sharoonthomas(~sharoonth@122.177.154.78) has joined #tryton
2014-02-13 15:40 <jvblasco> falling in love with flask_tryton ^^
2014-02-13 15:43 -!- littlebit(~Thunderbi@ulmg-5d8453b6.pool.mediaWays.net) has joined #tryton
2014-02-13 16:24 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton
2014-02-13 16:33 -!- strebitz(~sebastian@91.183.59.105) has left #tryton
2014-02-13 16:41 -!- Telesight1(~anthony@77-175-168-222.FTTH.ispfabriek.nl) has joined #tryton
2014-02-13 16:55 -!- Telesight(~anthony@77-175-168-222.FTTH.ispfabriek.nl) has joined #tryton
2014-02-13 17:28 <jvblasco> may i ask what is _rec_name for?
2014-02-13 17:29 <jvblasco> i mean, how does tryton use it?
2014-02-13 17:33 -!- Telesight1(~anthony@77-175-168-222.FTTH.ispfabriek.nl) has joined #tryton
2014-02-13 17:33 <jeancavallo> jvblasco: It is what tryton will use to display Many2One fields
2014-02-13 17:34 <jeancavallo> jvblasco: It may be changed wy overriding get_rec_name
2014-02-13 17:34 <jeancavallo> jvblasco: Or you can just tell tryton to use another field by adding rec_name = 'my_field_name' in your model
2014-02-13 17:39 -!- Telesight(~anthony@77-175-168-222.FTTH.ispfabriek.nl) has joined #tryton
2014-02-13 17:44 -!- Telesight1(~anthony@77-175-168-222.FTTH.ispfabriek.nl) has joined #tryton
2014-02-13 17:52 -!- sharoonthomas(~sharoonth@122.177.154.78) has joined #tryton
2014-02-13 18:07 -!- Telesight(~anthony@77-175-168-222.FTTH.ispfabriek.nl) has joined #tryton
2014-02-13 18:14 <pokoli> jvblasco: and work also for searching, and you must override search_rec_name
2014-02-13 18:39 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton
2014-02-13 18:53 -!- jeancavallo(~giovanni@LVelizy-156-46-68-52.w80-12.abo.wanadoo.fr) has joined #tryton
2014-02-13 19:03 <jvblasco> thnx guys ;)
2014-02-13 19:16 -!- b0r7(~b0r7@p5B2CCD96.dip0.t-ipconnect.de) has joined #tryton
2014-02-13 19:16 -!- b0r7(~b0r7@p5B2CCD96.dip0.t-ipconnect.de) has left #tryton
2014-02-13 19:27 <jvblasco> cedk: when i use flask_tryton where does it get the server config from?
2014-02-13 19:27 <jvblasco> cedk: can i specify a path for the module to get the config?
2014-02-13 19:28 <cedk> jvblasco: the TRYTON_CONFIG app config
2014-02-13 19:29 <jvblasco> cedk: app.config['TRYTON_CONFIG'] = '/path/to/config/file'?
2014-02-13 19:30 <cedk> jvblasco: yes
2014-02-13 19:32 <jvblasco> cedk: thnx so much ;)
2014-02-13 19:33 <jvblasco> as i said falling in love with flask_tryton
2014-02-13 19:48 -!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has left #tryton
2014-02-13 19:51 <cedk> jvblasco: happy it is helpful
2014-02-13 20:14 -!- sharoonthomas(~sharoonth@122.177.154.78) has joined #tryton
2014-02-13 20:23 <jvblasco> how do i use proteus using the current server config file?
2014-02-13 20:24 <jvblasco> i mean, i see in the docs: config = config.set_trytond(':memory:', database_type='sqlite'). How do i set up this to use the current server config?
2014-02-13 20:24 <cedk> jvblasco: config_file="/path/"
2014-02-13 20:25 <jvblasco> cedk: thnx
2014-02-13 20:27 <jvblasco> cedk: and would database="databaseName" set proteus to use databaseName?
2014-02-13 20:28 <cedk> jvblasco: yes
2014-02-13 20:29 <jvblasco> TypeError: set_trytond() got an unexpected keyword argument 'database'
2014-02-13 20:29 <jvblasco> using config = config.set_trytond(config_file="/home/seba/tryton/trytond.conf", database="Pruebas")
2014-02-13 20:36 <jvblasco> solved, sry for the trouble
2014-02-13 20:43 -!- sharoonthomas(~sharoonth@182.68.221.83) has joined #tryton
2014-02-13 20:44 <jvblasco> guys, having a party instance, how do i access its contact mechanisms?
2014-02-13 20:44 <jvblasco> i have a party with an email set, and i have the party instance, how do i get that email from the party instance?
2014-02-13 20:52 <jvblasco> OMG i think it's time to go home ¬¬
2014-02-13 20:52 <jvblasco> solved again
2014-02-13 20:53 <jvblasco> well, see u tomorrow guys, thnx for the help ;)
2014-02-13 20:57 -!- sharoonthomas_(~sharoonth@198.61.199.179) has joined #tryton
2014-02-13 21:17 -!- littlebit(~Thunderbi@ulmg-5d8453b6.pool.mediaWays.net) has joined #tryton
2014-02-13 21:18 -!- sharoonthomas(~sharoonth@182.68.221.83) has joined #tryton

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