IRC logs of #tryton for Tuesday, 2011-04-05

chat.freenode.net #tryton log beginning Tue Apr 5 00:00:01 CEST 2011
-!- Mayank(~beakkon@122.161.36.182) has joined #tryton03:46
-!- elbenfreund(~elbenfreu@p54B950BD.dip.t-dialin.net) has joined #tryton03:48
-!- alimon(~alimon@189.154.109.4) has joined #tryton03:58
-!- alimon(~alimon@189.154.109.4) has joined #tryton04:28
-!- woakas(~woakas@200.106.202.91) has joined #tryton05:03
-!- curlynostrilll(~curlynost@96.57.28.108) has joined #tryton05:13
-!- yangoon(~mathiasb@p549F3A74.dip.t-dialin.net) has joined #tryton05:19
-!- curlynostrill(~curlynost@96.57.28.108) has joined #tryton05:35
-!- svaksha(~svaksha@unaffiliated/svaksha) has joined #tryton06:08
-!- Vladimirek(~vladimir@adsl-dyn88.91-127-104.t-com.sk) has joined #tryton06:25
-!- rhubner(~rhubner@189.58.49.86.dynamic.adsl.gvt.net.br) has joined #tryton06:30
-!- Saurabh(~saurabh@203.190.134.107) has joined #tryton06:39
-!- predatell(~predatell@85.198.132.141) has joined #tryton07:04
-!- silverfox1971(~sysadmin0@office.delfi2000.ru) has joined #tryton07:27
-!- heg__(~heg@dyn.83-228-214-133.dsl.vtx.ch) has joined #tryton08:11
-!- mkr(~openlabs@203.190.134.107) has joined #tryton08:25
-!- okko(~okko@62.58.29.41) has joined #tryton08:35
-!- Vladimirek(~vladimir@adsl-dyn88.91-127-104.t-com.sk) has joined #tryton08:37
-!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton08:46
mkrhi guys.09:02
plantianhello09:04
mkrI want to apply for the GSoC 2011 and I've decided to go with 'Email Integration'. But I have some doubts about Twisted.09:04
mkrMay anyone help me with that?09:04
-!- ecarreras(~under@81.184.3.75.static.user.ono.com) has joined #tryton09:05
-!- ecarreras(~under@unaffiliated/ecarreras) has joined #tryton09:05
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:06
plantianmkr: I think maybe ask sharoon, he seems to have created the email blueprint and is a mentor.09:15
mkrok09:18
-!- bechamel(~user@cismwks02-virtual1.cism.ucl.ac.be) has joined #tryton09:23
-!- nicoe(~nicoe@2001:6f8:3aa:0:217:f2ff:fef3:4e9) has joined #tryton09:40
-!- Saurabh(~saurabh@203.190.134.107) has joined #tryton10:37
-!- nicoe(~nicoe@2001:6f8:3aa:0:217:f2ff:fef3:4e9) has joined #tryton10:44
-!- bechamel(~user@cismwks02-virtual1.cism.ucl.ac.be) has joined #tryton10:44
-!- okko(~okko@62.58.29.41) has joined #tryton10:44
-!- heffer(~felix@fedora/heffer) has joined #tryton10:44
-!- saxa(~sasa@host242-95-static.223-217-b.business.telecomitalia.it) has joined #tryton10:44
-!- ecarreras(~under@unaffiliated/ecarreras) has joined #tryton10:59
-!- predatell(~predatell@85.198.132.141) has joined #tryton11:00
-!- nicoe(~nicoe@2001:6f8:3aa:0:217:f2ff:fef3:4e9) has joined #tryton11:15
-!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton11:37
-!- paepke(~paepke@pD95440B2.dip0.t-ipconnect.de) has joined #tryton11:40
-!- abeamud(~antonio@156.Red-80-38-175.staticIP.rima-tde.net) has joined #tryton11:43
-!- Saurabh1(~saurabh@203.190.134.107) has joined #tryton12:02
-!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton12:02
-!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton12:09
-!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has left #tryton12:09
-!- trifon(~trifon@95-42-37-182.btc-net.bg) has joined #tryton12:21
-!- elbenfreund1(~elbenfreu@p54B950BD.dip.t-dialin.net) has joined #tryton12:29
-!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton12:29
-!- Mayank(~beakkon@122.163.52.210) has joined #tryton12:33
-!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton12:43
-!- silverfox1971(~sysadmin0@office.delfi2000.ru) has left #tryton12:48
-!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton12:55
-!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton13:09
-!- heffer(~felix@hyperion.fetzig.org) has joined #tryton13:21
-!- heffer(~felix@fedora/heffer) has joined #tryton13:21
-!- nicoe(~nicoe@2001:6f8:3aa:0:217:f2ff:fef3:4e9) has joined #tryton13:22
-!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton13:33
-!- heffer(~felix@fedora/heffer) has joined #tryton13:37
-!- abeamud(~antonio@156.Red-80-38-175.staticIP.rima-tde.net) has joined #tryton13:47
abeamudHi.. trying to print more than one invoice, tryton suggest me to send directly to printer... How I can get a collection of pdf's without printing them..?13:51
-!- okko1(~okko@92.69.210.79) has joined #tryton14:00
-!- okko2(~okko@92.69.193.85) has joined #tryton14:02
cedkabeamud: it is not possible with the current modules14:06
cedkabeamud: because headers of invoice must be translated in the language of the party and as odt has only once header per file14:07
cedkabeamud: but you could try to customize the report to generate a pdf for each invoice and then merge them with a tool14:07
abeamudcedk: tryton always open the openoffice directly... it's possible to generate a pdf without open writer (OO)?14:09
cedkabeamud: you can configure the report to use Ooo on server-side to generate pdf14:17
abeamudcedk: exists other report engine for tryton?14:19
cedkabeamud: not by default but it is easy to extend14:20
abeamudcedk: I'll try to create a report engine based in mako + wkhtmltopdf like the openerp c2c_webkit_report14:22
abeamudcedk: Thanks14:23
cedkabeamud: don't you think it is overkill?14:27
-!- Lo-lan-do(~roland@mirobole.placard.fr.eu.org) has joined #tryton14:37
Lo-lan-doHi all.14:37
Lo-lan-doHow would I go about refreshing a report?14:37
cedkLo-lan-do: what do you mean?14:38
Lo-lan-doCase in point: I need to refresh the PDF for an invoice because I had previously forgotten to fill in the client's VAT number.14:38
Lo-lan-doNow the client has been updated, but I don't know how to regenerate the invoice.14:38
Lo-lan-doApparently the ODT is stored in the database, but I'm reluctant to just empty the field :-)14:39
cedkLo-lan-do: you must clean the field invoice_report in the database14:40
Lo-lan-doSet it to '' or to NULL?14:40
cedkLo-lan-do: but there is https://bugs.tryton.org/roundup/issue182614:41
cedkLo-lan-do: doesn't matter but better to NULL14:41
Lo-lan-doACTION trie14:44
Lo-lan-dos14:44
Lo-lan-doIndeed it's not stored, but I can get an updated ODT.  Thanks!14:46
cedkLo-lan-do: that's the issue182614:47
Lo-lan-doYes14:47
-!- trifon(~trifon@95-42-37-182.btc-net.bg) has joined #tryton14:48
serpent213when inheriting a model using _name, Python inheritance is usually from ModelSQL and ModelView: http://hg2.tryton.org/modules/account_invoice_history/file/b1baaa0e7026/party.py#l614:53
serpent213but using just Model seems also possible: http://hg2.tryton.org/modules/party_siret/file/093da26e2595/party.py#l814:53
serpent213where is the difference?14:53
-!- tony_(~tony@116.233.241.1) has joined #tryton15:12
-!- Mayank(~beakkon@122.163.52.210) has joined #tryton15:22
-!- okko(~okko@213.125.38.170) has joined #tryton15:34
abeamudcedk: perhaps it's overkill, but ooffice as a server doesn't convince me, I think it's very heavy for a simple task as generating a pdf...15:56
-!- Mayank1(~beakkon@122.163.52.210) has joined #tryton16:10
-!- Mayank(~beakkon@122.163.52.210) has joined #tryton16:11
-!- zodman(~andres-va@foresight/developer/zodman) has joined #tryton16:23
-!- rhubner(~rhubner@187.59.155.39) has joined #tryton16:34
-!- okko1(~okko@92.69.145.96) has joined #tryton16:45
abeamudcedk: well, i'll try using only the current report engine16:49
-!- elbenfreund1(~elbenfreu@p54B923D8.dip.t-dialin.net) has joined #tryton17:13
-!- okko(~okko@213.125.38.170) has joined #tryton17:19
cedkserpent213: there is no difference17:37
-!- gremly(~gremly@200.106.202.91) has joined #tryton17:46
-!- paepke(~paepke@pD95440B2.dip0.t-ipconnect.de) has left #tryton17:48
-!- Cazou(~Cazou@213.177.83.241) has joined #tryton17:57
-!- gremly(~gremly@200.106.202.91) has joined #tryton18:00
-!- caravel(~caravel@1.Red-81-44-157.dynamicIP.rima-tde.net) has joined #tryton18:19
-!- okko(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton18:22
-!- irclog(~irclog@tycho.b2ck.com) has joined #tryton18:50
-!- rhubner(~rhubner@187.59.155.39) has left #tryton18:55
serpent213cedk: in __init__()?18:56
cedkserpent213: yes18:58
cedkserpent213: the selection list is a class instance18:59
serpent213cedk: hmmm, maybe i did get you wrong19:07
serpent213thought about something like: self.type = self.type.copy()19:07
serpent213but copy() is not defined...19:07
sharoonserpent213: list has no copy method, the easiest way to copy a list to another is list2 = list1[:]19:08
sharoonserpent213: i dont know if its useful in this context, but this is the usual way to copy a list19:09
sharoonserpent213: if thats what you are trytong to do19:09
sharoons/trytong/trying19:09
-!- chrue(~chrue@host-091-097-030-164.ewe-ip-backbone.de) has joined #tryton19:12
serpent213tried it this way now: http://pastie.org/175958419:17
serpent213but the new entry does not get added this way...19:18
cedkserpent213: self.type.selection = = self.type.selection[:]19:20
cedkserpent213: self.type.selection += [...]19:20
serpent213cedk: tried that before; adds the entry twice as well...19:25
cedkserpent213: that's strange19:28
-!- gremly(~gremly@200.106.202.91) has joined #tryton19:28
sharooncedk: serpent213: how can the a class be __init__ twice ?19:28
sharoonserpent213: it will not happen automatically unless some other method/subclass is manually calling __init__() again19:29
sharoonserpent213: how many ancestors does you class have ?19:29
serpent213sharoon: you can see it here: http://pastie.org/175857319:31
serpent213i'll try adding a traceback...19:31
cedkserpent213: it misses the copy19:32
cedkserpent213: http://pastie.org/175965119:32
serpent213cedk: yes, i included the copy -- just wanted to show the class hierarchy19:36
serpent213the second __init__ invocation is done by the company module: http://hg2.tryton.org/modules/company/file/cdf49e14a9ae/company.py#l20819:44
-!- dfamorato(~dfamorato@173-9-190-190-miami.txt.hfc.comcastbusiness.net) has joined #tryton19:52
serpent213this seems suitable: http://pastie.org/175976920:02
serpent213:)20:02
cedkserpent213: I guess we generate diamond inheritage20:18
sharooncedk: is that good or bad ?20:24
-!- yangoon(~mathiasb@p549F3A74.dip.t-dialin.net) has left #tryton20:29
-!- yangoon(~mathiasb@p549F3A74.dip.t-dialin.net) has joined #tryton20:29
cedksharoon: need to be analysed20:33
sharooncedk: this could be avoided by making sure that the __init__ methods in subclasses (by _inherit) never call super, but just call ModelSQL.__init__(self)20:34
cedksharoon: no it is bad20:35
cedksharoon: I think it is when we create the real object we must be sure to have a one way path20:36
cedksharoon: I think this could be improved by just creating class inheriting object (or nothing) and register it instead of the pseudo instance20:37
sharooncedk: we once discussed a metaclass pattern ,do you remember ?20:37
cedksharoon: meta class will be used for ActiveRecord20:37
-!- LordVan(~lordvan@93.82.207.62) has joined #tryton20:50
-!- LordVan(~lordvan@gentoo/developer/LordVan) has joined #tryton20:50
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton21:23
-!- okko(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton21:29
-!- dfamorato(~Secret@173-9-190-190-miami.txt.hfc.comcastbusiness.net) has joined #tryton22:20
-!- Cazou(~Cazou@213.177.83.241) has joined #tryton22:24
-!- enlightx(~enlightx@109.55.145.90) has joined #tryton22:26
-!- yangoon_rm(~mathiasb@p549F3A74.dip.t-dialin.net) has joined #tryton22:33
-!- enlightx(~enlightx@109.55.145.90) has joined #tryton22:35
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:44
-!- dfamorato(~Secret@173-9-190-190-miami.txt.hfc.comcastbusiness.net) has joined #tryton22:47
-!- dfamorato(~Secret@173-9-190-190-miami.txt.hfc.comcastbusiness.net) has left #tryton22:49
-!- serpent223(~digger@teralink.net) has joined #tryton23:04
zodman:o excelent extension the hgnested cedk23:04
cedkzodman: thx :-)23:05
cedkzodman: could be improved23:05
zodmanyes i  think23:06
-!- elbenfreund(~elbenfreu@f055253158.adsl.alicedsl.de) has joined #tryton23:17

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