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

chat.freenode.net #tryton log beginning Thu Feb 13 00:00:01 CET 2014
-!- pablovannini(~pablo@190.55.79.249) has left #tryton00:29
-!- irclog(~irclog@moretus.b2ck.com) has joined #tryton00:29
-!- pablovannini(~pablo@190.55.79.249) has joined #tryton00:36
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton02:38
-!- irclog(~irclog@moretus.b2ck.com) has joined #tryton03:16
-!- 92AAAD7HF(~mathiasb@84.159.20.226) has joined #tryton03:18
-!- frispete(~frispete@p54A93D9B.dip0.t-ipconnect.de) has joined #tryton03:18
-!- zodman(~zodman@50.115.163.209) has joined #tryton03:23
-!- yangoon(~mathiasb@p549F14E2.dip0.t-ipconnect.de) has joined #tryton03:29
-!- rafiu(~Adium@host81-139-111-191.in-addr.btopenworld.com) has joined #tryton03:30
-!- pekka(~pekka@cm-84.210.54.188.getinternet.no) has joined #tryton03:35
-!- Streward(~quassel@85.183.31.24) has joined #tryton03:37
-!- zodman(~zodman@50.115.163.209) has joined #tryton03:39
-!- frispete(~frispete@84.169.61.155) has joined #tryton03:43
-!- digitalsatori(~Thunderbi@116.234.234.90) has joined #tryton03:44
-!- zodman1(~zodman@50.115.163.209) has joined #tryton03:45
-!- frispete_(~frispete@p54A93D9B.dip0.t-ipconnect.de) has joined #tryton03:46
-!- yangoon(~mathiasb@p549F14E2.dip0.t-ipconnect.de) has joined #tryton04:03
-!- yangoon1(~mathiasb@p549F0E92.dip0.t-ipconnect.de) has joined #tryton06:01
-!- frispete(~frispete@p54A92DFB.dip0.t-ipconnect.de) has joined #tryton06:40
-!- digitalsatori(~Thunderbi@116.234.234.90) has joined #tryton06:48
-!- sharoonthomas(~sharoonth@122.177.154.78) has joined #tryton07:26
-!- Telesight(~anthony@77-175-168-222.FTTH.ispfabriek.nl) has joined #tryton07:38
-!- nicoe(~nicoe@106.115-245-81.adsl-dyn.isp.belgacom.be) has joined #tryton07:45
-!- digitalsatori(~Thunderbi@116.234.234.90) has joined #tryton08:18
-!- jvblasco(~seba@62.43.196.37.static.user.ono.com) has joined #tryton08:43
-!- jeancavallo(~giovanni@LVelizy-156-46-68-52.w80-12.abo.wanadoo.fr) has joined #tryton08:43
jvblascomorning everyone08:43
jeancavallomorning :)08:52
-!- digitalsatori(~Thunderbi@116.234.234.90) has joined #tryton08:54
-!- jvblasco(~seba@62.43.196.37.static.user.ono.com) has joined #tryton09:17
-!- xid(joeblob@narc.oti.cz) has joined #tryton09:18
-!- digitalsatori(~Thunderbi@116.234.234.90) has joined #tryton09:25
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton09:26
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:26
-!- littlebit(~Thunderbi@ulmg-5d846297.pool.mediaWays.net) has joined #tryton09:41
pokolicedk: can you have a look at https://www.dropbox.com/s/vruy0h28cyd4m8l/access_example2.py09:45
cedkpokoli: looks good09:48
cedkpokoli: could be extended to write/delete09:49
pokolicedk: the problem I see is that the user has read access but doesn't belong to the group09:49
cedkpokoli: it could also be more AR09:49
pokolicedk: i extended with write and it has no write access09:49
cedkpokoli: I don't understand09:50
cedkpokoli: but if you find a security issue please report to bugtracker and don'ttalk about publicly09:51
-!- digitalsatori(~Thunderbi@116.234.234.90) has joined #tryton09:53
-!- pekka1(~naivsuper@cm-84.210.54.188.getinternet.no) has joined #tryton10:00
-!- swayf(~swayf@188-193-123-49-dynip.superkabel.de) has joined #tryton10:03
cedkpokoli: ok, I understand now and no creating a model access for a group doesn't affect users not in this group10:04
cedkpokoli: if you want to have effect on all users, you must create a global model access10:04
cedkpokoli: explicit is better than implicit10:05
pokolicedk: thanks10:05
cedkpokoli: this is like that since 1.010:06
pokolicedk: but i have always problems with access groups, as i'm not always sure if i'm think right10:06
cedkpokoli: but having unittest on this topic will be great10:06
cedkpokoli: and doc10:06
pokolicedk: the question raised from docs :) https://github.com/tryton/tryton-documentation/commit/627447ce4fc7ffc8d614cc84ef7b38b3f931a393#commitcomment-535701110:08
-!- mfladischer(~fladische@sh144.medunigraz.at) has joined #tryton10:13
cedkpokoli: when I speak about doc, I mean trytond/doc10:29
-!- littlebit(~Thunderbi@ulmg-4d022895.pool.mediaWays.net) has joined #tryton10:57
-!- sharoonthomas(~sharoonth@122.177.154.78) has joined #tryton11:30
-!- littlebit(~Thunderbi@ulmg-5d8453b6.pool.mediaWays.net) has joined #tryton11:31
-!- sharoonthomas(~sharoonth@122.177.154.78) has joined #tryton11:46
-!- Laura87(~Clooney@77.94.84.10) has joined #tryton11:47
-!- sharoonthomas(~sharoonth@122.177.154.78) has joined #tryton11:47
-!- strebitz(~sebastian@91.183.59.105) has joined #tryton11:56
-!- mariomop(~quassel@host82.190-138-107.telecom.net.ar) has joined #tryton12:02
jvblascoguys, i've seen tryton has smtp config stuff in the tyrtond.conf file, i wonder if it means that tryton has an inbuilt smtp client12:31
-!- plantian(~ian@174.135.6.172) has joined #tryton12:31
-!- mariomop(~quassel@host82.190-138-107.telecom.net.ar) has joined #tryton12:33
cedkjvblasco: what do you name "smtp client"?12:33
cedkjvblasco: trytond uses the Python builtin to communicate with SMTP servers12:34
jvblascocedk: ok, and how may i use it inside tryton to send an email?12:36
jvblascocedk: or where may i find some documentation to do it?12:37
jvblascocedk: For example i want to send an email to some emails stored in the contact_mechanism of a party12:38
cedkjvblasco: in trytond/tools there is get_smtp_server12:39
cedkjvblasco: but be careful that sending email is not managed by the transaction12:39
jvblascocedk: what do u mean? I just need to do a quick as possible hack, to notify some customers that their servers are down12:41
jvblascocedk: i don't really need, right now to store anything in the database12:41
jvblascocedk: i was thinking about doing it with flask mail extension, and retrieving from python the party contacts to send the mail12:42
jvblascocedk: but thought doing it from tryton could be nice, to learn sending mails from inside tryton12:43
pokolijvblasco: maybe you can have a look at cron error message reporting http://hg.tryton.org/trytond/file/870ec1d3b417/trytond/ir/cron.py#l12612:45
pokolijvblasco: what cedk means is that if the transaction is rolled back, the email will be sent12:45
jvblascopokoli: i c, well no worries for me with that, as there won't really be a db transaction in the operation12:48
jvblascopokoli, cedk: may for a near future i will need to handle that in some way, but not right now12:48
pokolijvblasco: so If you have to manage in some way, I will recomend you sending email as last action of the transaction12:50
sharoonthomaspokoli: 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).12:52
jvblascosharoonthomas: and what may electronic-mail be? A tryton model?12:55
sharoonthomasjvblasco: yep12:55
sharoonthomasjvblasco: https://github.com/openlabs/electronic-mail12:56
cedkI 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 validity12:57
-!- nicoe(~nicoe@2001:6f8:3aa:0:b699:baff:fe56:2328) has joined #tryton13:24
-!- gremly(~gremly@190.85.36.58) has joined #tryton13:25
-!- rafiu1(~Adium@host81-139-178-190.in-addr.btopenworld.com) has joined #tryton13:30
-!- flox(~florent@unaffiliated/flox) has joined #tryton14:00
-!- sharoonthomas(~sharoonth@122.177.154.78) has joined #tryton14:02
-!- ecarreras(~under@unaffiliated/ecarreras) has joined #tryton14:32
-!- pablovannini(~pablo@181.47.181.28) has joined #tryton14:38
-!- sharoonthomas(~sharoonth@122.177.154.78) has joined #tryton15:12
jvblascofalling in love with flask_tryton ^^15:40
-!- littlebit(~Thunderbi@ulmg-5d8453b6.pool.mediaWays.net) has joined #tryton15:43
-!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton16:24
-!- strebitz(~sebastian@91.183.59.105) has left #tryton16:33
-!- Telesight1(~anthony@77-175-168-222.FTTH.ispfabriek.nl) has joined #tryton16:41
-!- Telesight(~anthony@77-175-168-222.FTTH.ispfabriek.nl) has joined #tryton16:55
jvblascomay i ask what is _rec_name for?17:28
jvblascoi mean, how does tryton use it?17:29
-!- Telesight1(~anthony@77-175-168-222.FTTH.ispfabriek.nl) has joined #tryton17:33
jeancavallojvblasco: It is what tryton will use to display Many2One fields17:33
jeancavallojvblasco: It may be changed wy overriding get_rec_name17:34
jeancavallojvblasco: Or you can just tell tryton to use another field by adding rec_name = 'my_field_name' in your model17:34
-!- Telesight(~anthony@77-175-168-222.FTTH.ispfabriek.nl) has joined #tryton17:39
-!- Telesight1(~anthony@77-175-168-222.FTTH.ispfabriek.nl) has joined #tryton17:44
-!- sharoonthomas(~sharoonth@122.177.154.78) has joined #tryton17:52
-!- Telesight(~anthony@77-175-168-222.FTTH.ispfabriek.nl) has joined #tryton18:07
pokolijvblasco: and work also for searching, and you must override search_rec_name18:14
-!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton18:39
-!- jeancavallo(~giovanni@LVelizy-156-46-68-52.w80-12.abo.wanadoo.fr) has joined #tryton18:53
jvblascothnx guys ;)19:03
-!- b0r7(~b0r7@p5B2CCD96.dip0.t-ipconnect.de) has joined #tryton19:16
-!- b0r7(~b0r7@p5B2CCD96.dip0.t-ipconnect.de) has left #tryton19:16
jvblascocedk: when i use flask_tryton where does it get the server config from?19:27
jvblascocedk: can i specify a path for the module to get the config?19:27
cedkjvblasco: the TRYTON_CONFIG app config19:28
jvblascocedk: app.config['TRYTON_CONFIG'] = '/path/to/config/file'?19:29
cedkjvblasco: yes19:30
jvblascocedk: thnx so much ;)19:32
jvblascoas i said falling in love with flask_tryton19:33
-!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has left #tryton19:48
cedkjvblasco: happy it is helpful19:51
-!- sharoonthomas(~sharoonth@122.177.154.78) has joined #tryton20:14
jvblascohow do i use proteus using the current server config file?20:23
jvblascoi 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?20:24
cedkjvblasco: config_file="/path/"20:24
jvblascocedk: thnx20:25
jvblascocedk: and would database="databaseName" set proteus to use databaseName?20:27
cedkjvblasco: yes20:28
jvblascoTypeError: set_trytond() got an unexpected keyword argument 'database'20:29
jvblascousing config = config.set_trytond(config_file="/home/seba/tryton/trytond.conf", database="Pruebas")20:29
jvblascosolved, sry for the trouble20:36
-!- sharoonthomas(~sharoonth@182.68.221.83) has joined #tryton20:43
jvblascoguys, having a party instance, how do i access its contact mechanisms?20:44
jvblascoi have a party with an email set, and i have the party instance, how do i get that email from the party instance?20:44
jvblascoOMG i think it's time to go home ¬¬20:52
jvblascosolved again20:52
jvblascowell, see u tomorrow guys, thnx for the help ;)20:53
-!- sharoonthomas_(~sharoonth@198.61.199.179) has joined #tryton20:57
-!- littlebit(~Thunderbi@ulmg-5d8453b6.pool.mediaWays.net) has joined #tryton21:17
-!- sharoonthomas(~sharoonth@182.68.221.83) has joined #tryton21:18

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!