IRC logs of #tryton for Monday, 2012-01-23

chat.freenode.net #tryton log beginning Mon Jan 23 00:00:01 CET 2012
2012-01-23 00:00 -!- FWiesing(~franz@mail.tryton.at) has left #tryton
2012-01-23 14:40 <navis> hello, what is the best way to test a server from an hg working copy ?
2012-01-23 14:41 <navis> if I just run it, it clutters the copy with all the .pyc files
2012-01-23 14:41 <navis> is there a better way ?
2012-01-23 14:42 <navis> or couldn't an hgignore file be added to the repo ?
2012-01-23 14:42 <bechamel> navis: create an hgignore file (http://www.selenic.com/mercurial/hgignore.5.html)
2012-01-23 14:43 <navis> yep, saw that, but it becomes tracked itself, shouldn't it be added to the official repo ?
2012-01-23 14:46 <navis> anyway pyc files will never be included in the repo, same for *~ and any backup files
2012-01-23 14:46 <bechamel> navis: add .hgignore in .hgignore
2012-01-23 14:47 <navis> bechamel: ok
2012-01-23 14:47 <bechamel> navis: or better put the hgignore file in your home, and the problem is solved for all your repo
2012-01-23 14:48 <navis> bechamel: except if someday a repo ships a file which is matched in my personnal hgignore
2012-01-23 14:48 <navis> bechamel: having an "official" hgignore garantees that this will never be the case
2012-01-23 14:50 <navis> bechamel: a bad match (for whatever reason) would be considered a bug
2012-01-23 14:50 <navis> bechamel: and nobody has to reinvent the wheel everytime
2012-01-23 14:58 <bechamel> navis: for you each python project must ship an .hgignore with a "*pyc" rule ?
2012-01-23 15:00 <navis> bechamel: this is really my very first contact with hg and python development
2012-01-23 15:00 <navis> bechamel: so I'm just trying to see how to do it efficiently
2012-01-23 15:01 <navis> bechamel: saw that it was possible to hgignore such files, but thought that I must have missed some important point :-)
2012-01-23 15:02 <bechamel> navis: I like the idea of choosing myself which file to ignore, but it's a matter of taste
2012-01-23 15:03 <navis> bechamel: no probleme with me, I just hope that hg will complain if I pull an ignored file
2012-01-23 15:04 <navis> bechamel: still, in this case the probability is quite weak :-)
2012-01-23 15:15 <bechamel> navis: this is also why it's better to put it in your home
2012-01-23 16:36 <navis> hello again
2012-01-23 16:36 <navis> how can I replace a button in an xml file depending on a condition ?
2012-01-23 16:40 <cedk> navis: you can not
2012-01-23 16:56 <cedk> navis: you can update the attributes but it is not recomanded
2012-01-23 16:58 <cedk> navis: but there is a goal to put button definition in Model instead view
2012-01-23 16:59 <cedk> https://code.google.com/p/tryton/wiki/Release_2_4_0
2012-01-23 17:10 <navis> cedk: ok, for now I found a way to not need it
2012-01-23 17:30 <navis> how can I modify the definition of a field in a form ?
2012-01-23 17:30 <cedk> navis: you can not
2012-01-23 17:30 <cedk> navis: or I don't understand
2012-01-23 17:31 <navis> cedk: I'm trying to tackle issue2375
2012-01-23 17:32 <navis> cedk: for that I must change how the journal are retrieved in the payment wizzard
2012-01-23 17:32 <navis> cedk: I have to add a condition (not statement managed)
2012-01-23 17:32 <navis> cedk: I know how to do that condition (
2012-01-23 17:33 <navis> cedk: (works fine if I directly modify invoice.py in the account_invoice module)
2012-01-23 17:34 <navis> cedk: but I must do that modification in the account_statement module
2012-01-23 17:36 <navis> cedk: I have tried to find a similar modification in another module, to see how it is done, but havent found one
2012-01-23 17:37 <cedk> navis: what do you mean by "retrieved"
2012-01-23 17:38 <navis> cedk: when you are in the payment wizzard, you have to choose the journal
2012-01-23 17:38 <navis> cedk: in that selection box, only cash journals are retrieved by tryton
2012-01-23 17:38 <navis> cedk: I must modify that logic and add a new condition
2012-01-23 17:39 <navis> cedk: I must modify the domain[..... part
2012-01-23 17:39 <cedk> navis: there is a lot of example about changing the domain of a field
2012-01-23 17:40 <cedk> navis: domain or any attributes
2012-01-23 17:41 <navis> cedk: ... will look some more
2012-01-23 17:45 <cedk> navis: http://hg.tryton.org/modules/project/file/15bdb9aaccbb/work.py#l14
2012-01-23 17:49 <navis> cedk: thanks, will have a look at that tonight, right now I have to go
2012-01-23 23:28 <navis> hello, could someone check http://pastebin.com/fdb1mMHk and tell me what I'm doing wrong ?
2012-01-23 23:29 <navis> trying to add a condition to a domain for a field
2012-01-23 23:29 <navis> modeled after
2012-01-23 23:30 <navis> modeled after what I see in company/party.py
2012-01-23 23:30 <navis> the domain modification is right, at least it works if I modify it that way directly in account_invoice
2012-01-23 23:37 <udono> navis: hi, maybe this works: self.journal.domain += [('statement_managed', '!=', 'True')]
2012-01-23 23:40 <cedk> navis: you should try to call self._reset_columns()
2012-01-23 23:43 <navis> udono, cedk: tried both, didn't work
2012-01-23 23:46 <navis> I have one cash journal with statement_managed = true, and another at false
2012-01-23 23:51 <navis`> arg, connection droped
2012-01-23 23:52 <navis`> so, I have one cash journal with statement_managed = true, and another at false
2012-01-23 23:52 <navis`> but both always show
2012-01-23 23:52 <navis`> except if I modify the domain in account_invoice
2012-01-23 23:58 <udono> navis: did you close the view and reopen from menu?
2012-01-23 23:58 <navis> udono: even restarted server and client
2012-01-23 23:59 <navis> udono: and tried a desperate attempt to upgrade account_statement where my modifications are made, just in case :-)

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