chat.freenode.net #tryton log beginning Mon Nov 8 00:00:02 CET 2010 | ||
2010-11-08 00:09 -!- pheller(~pheller@2002:ad30:d8c3:0:217:f2ff:fe04:afe) has left #tryton | ||
2010-11-08 00:30 -!- tony_(~tony@116.233.243.120) has joined #tryton | ||
2010-11-08 01:59 -!- tony_(~tony@116.233.243.120) has joined #tryton | ||
2010-11-08 02:38 -!- sharoon(~sharoon@117.196.130.42) has joined #tryton | ||
2010-11-08 03:05 -!- zodman(~zodman@foresight/developer/zodman) has joined #tryton | ||
2010-11-08 03:30 -!- sharoon(~sharoon@117.196.130.42) has joined #tryton | ||
2010-11-08 04:57 -!- gremly(~gremly@190.26.189.147) has joined #tryton | ||
2010-11-08 05:18 -!- yangoon(~mathiasb@p549F6D7B.dip.t-dialin.net) has joined #tryton | ||
2010-11-08 05:30 -!- sharoon(~sharoon@117.196.137.113) has joined #tryton | ||
2010-11-08 06:49 -!- sharoon(~sharoon@117.196.130.33) has joined #tryton | ||
2010-11-08 07:09 -!- enlightx(~enlightx@95.75.37.122) has joined #tryton | ||
2010-11-08 07:25 -!- sharoon(~sharoon@117.196.130.33) has joined #tryton | ||
2010-11-08 07:25 -!- gavinf(~gavinf@196-215-106-210.dynamic.isadsl.co.za) has joined #tryton | ||
2010-11-08 07:32 -!- Timitos(~kp@88.217.184.172) has joined #tryton | ||
2010-11-08 08:15 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2010-11-08 08:15 -!- sharoon(~sharoon@117.196.143.224) has joined #tryton | ||
2010-11-08 08:28 -!- tony_(~tony@116.233.243.120) has joined #tryton | ||
2010-11-08 08:55 -!- hoRn(~chatzilla@dslb-094-223-183-073.pools.arcor-ip.net) has joined #tryton | ||
2010-11-08 08:56 -!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton | ||
2010-11-08 09:06 -!- trifon(~trifon@p4FFB91DC.dip0.t-ipconnect.de) has joined #tryton | ||
2010-11-08 09:16 -!- trifon(~trifon@p4FFB91DC.dip0.t-ipconnect.de) has joined #tryton | ||
2010-11-08 09:33 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2010-11-08 09:47 -!- Red15(~red15@unaffiliated/red15) has joined #tryton | ||
2010-11-08 09:50 -!- vincentvdl(~vincent@62.58.29.41) has joined #tryton | ||
2010-11-08 09:59 -!- rednul(~rednul@host-174-45-250-246.bln-mt.client.bresnan.net) has joined #tryton | ||
2010-11-08 10:18 -!- bechamel(~user@chimie-prtx11.scf.fundp.ac.be) has joined #tryton | ||
2010-11-08 11:02 -!- paepke(~paepke@p4FEB7D5F.dip.t-dialin.net) has joined #tryton | ||
2010-11-08 11:54 -!- paepke_(~paepke@p4FEB15F5.dip0.t-ipconnect.de) has joined #tryton | ||
2010-11-08 11:54 -!- paepke_(~paepke@p4FEB15F5.dip0.t-ipconnect.de) has left #tryton | ||
2010-11-08 12:34 <yangoon> bechamel: hi | ||
2010-11-08 12:35 <bechamel> yangoon: hi | ||
2010-11-08 12:35 <yangoon> is there any trick to post rst to blogger or do you reformat your texts? | ||
2010-11-08 12:36 <bechamel> yangoon: is juts reformat my text, it's just a matter of removing "====" under titles, + some extra formating | ||
2010-11-08 12:36 <yangoon> bechamel: ok, thx | ||
2010-11-08 13:04 <vincentvdl> Hi all... I was wondering: how do you guys debug pyson expressions? | ||
2010-11-08 13:09 <hoRn> vincentvdl: in my local installation i put some prints in the eval() - methods | ||
2010-11-08 13:10 <vincentvdl> ah thanks :) I was just looking at the pyon functions | ||
2010-11-08 13:11 -!- sharoon(~sharoon@117.196.143.35) has joined #tryton | ||
2010-11-08 13:29 <vincentvdl> I hope you guys are not betting bored with my questions! In party.party I have added a one2many field to model X with context={'party' : Eval('active_id') } argument. If I add a dummy default field to model X I see that context has 'party' entry with the correct party ID value, so far so good.... | ||
2010-11-08 13:30 <vincentvdl> however when I add a Many2One field which points to party.address and has a domain of domain=[('party', '=', Get(Eval('context', {}), 'party', 0))] I do not get any result | ||
2010-11-08 13:31 <vincentvdl> adding a print statement to Eval method in pyson Get reveals that context does not seem to have the party entry | ||
2010-11-08 13:33 <bechamel> vincentvdl: if party is not in the view, you have to tell the gtk client to read it: http://doc.tryton.org/1.6/trytond/doc/ref/models/fields.html?highlight=require#depends | ||
2010-11-08 13:36 <hoRn> sharoon: Can i ask you a little question about sale.opportunity? | ||
2010-11-08 13:36 <sharoon> hoRn: oh sure | ||
2010-11-08 13:40 <hoRn> sharoon: i extended your module for our needs | ||
2010-11-08 13:40 <sharoon> hoRn: great, if its generic enough you could either ask for merge or have an extended module itself | ||
2010-11-08 13:43 <hoRn> sharoon: its the opposite of generic ;) - we have done a module for coating industries - we are using the idea of your model and added a related modul with very individual fields for the needs of this customer | ||
2010-11-08 13:43 <sharoon> nevermind | ||
2010-11-08 13:45 <hoRn> sharoon: its called coatingrequest - the user must ask the potential client a lot of stuff for getting an ida what the client needs (harder, thickness, covering ...) - after this we generat sala_opportunity_lines with this informations an a new salable product | ||
2010-11-08 13:46 <hoRn> uii - syntax error | ||
2010-11-08 13:46 <sharoon> hoRn: this is great | ||
2010-11-08 13:46 -!- kingsnake(~tmulder@62.58.29.41) has joined #tryton | ||
2010-11-08 13:48 <hoRn> sharoon: now my question: if I delete a sale_opportunity_line i get an error in your custom One2ManyHistory-field - because the line isn't existing anymore. | ||
2010-11-08 13:48 <hoRn> or better to say: in the view history | ||
2010-11-08 13:48 <sharoon> hoRn: could you paste the tacktrace/error somewhere | ||
2010-11-08 13:51 <hoRn> sharoon: http://pastie.org/1281440 | ||
2010-11-08 13:52 <hoRn> sharoon: i was exploring the code - the problem is, that the s._o_line isn't existing anymore - but I'm not shure, if this is an sideeffect of our extension | ||
2010-11-08 13:53 <hoRn> sharoon: can i delete a line in your model without getting an error in the history? | ||
2010-11-08 13:53 <bechamel> vincentvdl: does it work with "depends" ? | ||
2010-11-08 13:54 <sharoon> horn: checking | ||
2010-11-08 14:04 <vincentvdl> bechamel: I'm affraid not... I only get it working when I add a Function field and let the address field depend on that Function field | ||
2010-11-08 14:05 <sharoon> hoRn: i think you will have to debug the server side further to find which of the dictionaries the key is None | ||
2010-11-08 14:05 <sharoon> hoRn: use --debug option on the server and i think its bugging out here http://hg.tryton.org/1.6/trytond/file/1844a1a148fe/trytond/model/fields/one2many.py#l102 | ||
2010-11-08 14:05 <hoRn> sharoon: ok | ||
2010-11-08 14:06 <sharoon> hoRn: and then evaluate i[self.field], my assumption is thats what is None | ||
2010-11-08 14:06 <vincentvdl> bechamel: when I do a Transaction().context.get('party') manually I get the correct ID from the context, but when I do a f domain=[('party', '=', Get(Eval('context', {}), 'party', 0))] 'party' does not seem to be in the context | ||
2010-11-08 14:08 <bechamel> vincentvdl: strange | ||
2010-11-08 14:10 <cedk> vincentvdl: so the context is not set | ||
2010-11-08 14:14 <hoRn> sharoon: ok - i will check | ||
2010-11-08 14:18 <cedk> hoRn, sharoon: I think it is a bug | ||
2010-11-08 14:18 <hoRn> cedk: me too ;) | ||
2010-11-08 14:19 <cedk> The One2ManyHistory tries to read the opportunity field of the line that is deleted | ||
2010-11-08 14:19 <cedk> then it gets None | ||
2010-11-08 14:19 <hoRn> cedk, sharoon: yes | ||
2010-11-08 14:19 <cedk> hoRn: did you reproduce on a clean install without your custom module? | ||
2010-11-08 14:20 <hoRn> cedk: so we need an other way to fetch the history of the sale_lines if the parent line is gone | ||
2010-11-08 14:21 <hoRn> cedk: i'm going to install a nwe database | ||
2010-11-08 14:23 <cedk> hoRn: we just need to not read deleted lines | ||
2010-11-08 14:24 <hoRn> cedk: yes - i don't knowe all internals - but if there are the related histories, it would be nice, to read them | ||
2010-11-08 14:25 <hoRn> cedk: but i don't know if they are related CASCADE | ||
2010-11-08 14:29 <hoRn> cedk, sharoon: its a bug in my extension | ||
2010-11-08 14:30 <vincentvdl> cedk: Would I need to set it manually for Eval('context', {}) to work? | ||
2010-11-08 14:32 -!- tony_(~tony@116.233.243.120) has joined #tryton | ||
2010-11-08 14:33 <cedk> vincentvdl: where do you want to use it? | ||
2010-11-08 14:33 <cedk> vincentvdl: it is always strange to have a domain depending of the context | ||
2010-11-08 14:33 <cedk> hoRn: ok, did you change something to the history? | ||
2010-11-08 14:37 <hoRn> cedk: i related an other one2many-Field with an own history | ||
2010-11-08 14:42 -!- sharoon(~sharoon@117.196.134.205) has joined #tryton | ||
2010-11-08 14:44 <cedk> hoRn: so it is perhaps the definition of this one2many which is buggy | ||
2010-11-08 14:44 <hoRn> cedk: hard tu debug | ||
2010-11-08 14:50 <vincentvdl> cedk:: On party.party I have a many2one field. When user clicks Add on that field,I need the id of the current party | ||
2010-11-08 14:53 <vincentvdl> cedk: I need it for one of the domains. I am aware of the fact that it will not work on New parties | ||
2010-11-08 14:53 <cedk> vincentvdl: so Eval('id') | ||
2010-11-08 14:54 <vincentvdl> that would return the ID of the one2many record instead of the party, wouldn't it? | ||
2010-11-08 14:55 <cedk> vincentvdl: which one2many? | ||
2010-11-08 14:59 <vincentvdl> cedk: ouch... I meant the many2one... sorry.... | ||
2010-11-08 14:59 <cedk> vincentvdl: no | ||
2010-11-08 14:59 <vincentvdl> cedk: I'll test it | ||
2010-11-08 15:05 -!- tony_(~tony@116.233.243.120) has joined #tryton | ||
2010-11-08 15:16 -!- pheller(~pheller@c1fw229.constantcontact.com) has joined #tryton | ||
2010-11-08 15:38 -!- lem0na(~lem0na@84.40.71.19) has joined #tryton | ||
2010-11-08 15:49 <hoRn> I got it | ||
2010-11-08 16:03 <hoRn> but don't know how to fix it - some unwanted magic in my own code is writing history for non existend sale_opportunity_lines - so i have to search ;) | ||
2010-11-08 16:04 -!- lem0na(~lem0na@84.40.71.19) has joined #tryton | ||
2010-11-08 16:20 -!- lem0na(~lem0na@84.40.71.19) has joined #tryton | ||
2010-11-08 16:37 -!- svaksha(~svaksha@unaffiliated/svaksha) has joined #tryton | ||
2010-11-08 16:50 -!- vincentvdl(~vincent@62.58.29.41) has joined #tryton | ||
2010-11-08 16:58 <vincentvdl> my final question of today... can a column in a Tree view be hidden dynamically? I only see simple <field .... tree_invisible="1"> alike examples.. is it correct we can not use pyson for this attribute? I have this special occassion where we would like to hide a field in a tree depending on a certain type field of the parent record | ||
2010-11-08 16:59 <cedk> vincentvdl: no | ||
2010-11-08 16:59 <vincentvdl> in a form this works correctly, with the "_parent_" construction | ||
2010-11-08 17:01 <vincentvdl> cedk: thanks for your quick reply... but do you mean "No, this is not possible" or "No, it is not correct that you can't use pyson in this case" | ||
2010-11-08 17:07 <cedk> vincentvdl: it is not possible and it is no correct | ||
2010-11-08 17:07 <cedk> vincentvdl: simply create a specific view for the one2many | ||
2010-11-08 17:08 <vincentvdl> cedk: good idea, thanks | ||
2010-11-08 17:09 -!- zodman(~andres-va@foresight/developer/zodman) has joined #tryton | ||
2010-11-08 17:22 <cedk> pheller: I thought about the issue with dmg on 10.4 | ||
2010-11-08 17:23 <cedk> pheller: did you compile Python in static | ||
2010-11-08 17:27 <pheller> cedk: that's a good question. I'm not entirely sure, but I think yes. | ||
2010-11-08 17:27 <pheller> cedk: I did try building against the 10.4 SDK, and python wouldn't even build. | ||
2010-11-08 17:27 -!- vladimir_(~vladimir@213.151.246.136) has joined #tryton | ||
2010-11-08 17:30 <paepke> i'm pretty sure that stock osx 10.4 has only python 2.4, which is dropped as of tryton 1.8 | ||
2010-11-08 17:42 <pheller> cedk: paepke makes a good point, but yes, the python I build for the tryton client is included in the bundle | ||
2010-11-08 17:54 -!- chrue(~chrue@host-091-097-049-238.ewe-ip-backbone.de) has joined #tryton | ||
2010-11-08 17:54 <cedk> pheller: so I guess we must do 2 build if we want to keep 10.4 | ||
2010-11-08 17:55 <cedk> pheller: for now, my only concern is that I can not test it as I got only 10.4 | ||
2010-11-08 17:57 <cedk> anybody knows the security update policy of Apple? | ||
2010-11-08 17:58 <cedk> I will have no worry to drop 10.4 if there is no more security update from Apple | ||
2010-11-08 18:00 <cedk> pheller: how do you know that your MacOS is still supported? | ||
2010-11-08 18:00 <pheller> cedk: I'm looking to find that out now | ||
2010-11-08 18:04 -!- rednul(~rednul@host-174-45-250-246.bln-mt.client.bresnan.net) has joined #tryton | ||
2010-11-08 18:05 <pheller> cedk: so apple tends to provide security updates for a relatively long time. Last security upgrade on Tiger was 10 Sep 2009. | ||
2010-11-08 18:07 <pheller> cedk: it seems they support one full version prior to the current version. I.e., the last update for 10.5 will be right around the time 10.7 is released. | ||
2010-11-08 18:08 <cedk> pheller: so now it is 10.5 and 10.6 ? | ||
2010-11-08 18:09 <pheller> cedk: for updates, it would appear this way yes. The prior history shows usually the current and previous release only get updates. | ||
2010-11-08 18:10 <pheller> cedk: but there is no official announcement from apple..... if you take your laptop to an apple store, they will still help you on 10.4.... but there will probably be no more updates. (maybe a security update if there is a crazy exploit, but that's unlikely) | ||
2010-11-08 18:23 -!- vincentvdl(~vincent@62.58.29.41) has left #tryton | ||
2010-11-08 18:26 -!- enlightx(~enlightx@ip-223-177.sn1.eutelia.it) has joined #tryton | ||
2010-11-08 18:48 <lem0na> cedr: macos 10.7 will come next year | ||
2010-11-08 18:48 <lem0na> opz he is not here | ||
2010-11-08 19:21 -!- enlightx_(~enlightx@109.52.58.233) has joined #tryton | ||
2010-11-08 19:22 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2010-11-08 19:48 -!- Red15(~red15@unaffiliated/red15) has joined #tryton | ||
2010-11-08 19:51 -!- vladimir_(~vladimir@213.151.246.136) has joined #tryton | ||
2010-11-08 20:01 -!- pheller(~pheller@c1fw229.constantcontact.com) has joined #tryton | ||
2010-11-08 20:06 -!- trifon(~trifon@91-67-144-158-dynip.superkabel.de) has joined #tryton | ||
2010-11-08 20:23 -!- rednul(~rednul@host-174-45-250-246.bln-mt.client.bresnan.net) has joined #tryton | ||
2010-11-08 20:38 -!- rednul__(~rednul@host-174-45-250-246.bln-mt.client.bresnan.net) has joined #tryton | ||
2010-11-08 20:41 -!- lfages(~lfages@188-193-0-109-dynip.superkabel.de) has joined #tryton | ||
2010-11-08 20:42 -!- lfages(~lfages@188-193-0-109-dynip.superkabel.de) has left #tryton | ||
2010-11-08 20:42 -!- lfages(~lfages@188-193-0-109-dynip.superkabel.de) has joined #tryton | ||
2010-11-08 21:24 -!- woakas(~woakas@200.106.163.59) has joined #tryton | ||
2010-11-08 21:54 -!- pheller(~pheller@c1fw229.constantcontact.com) has joined #tryton | ||
2010-11-08 21:56 <cedk> pheller: I tested bundles | ||
2010-11-08 21:56 <cedk> pheller: tryton works well | ||
2010-11-08 21:56 <cedk> pheller: and it is really good how the toolbar is on top | ||
2010-11-08 21:56 <pheller> cedk: ah, you have access to another machine? I will still send you 10.6.... I just bought a copy to send to you.... | ||
2010-11-08 21:56 <cedk> pheller: but for neso, the version number of modules are not correct | ||
2010-11-08 21:56 <pheller> hmmh, what should the module version numbers be for neso? | ||
2010-11-08 21:57 <cedk> pheller: last tagged version | ||
2010-11-08 21:58 <cedk> pheller: you must run the hg command I sent you yesterday on each modules | ||
2010-11-08 21:58 <pheller> oops. I will do it tonight | ||
2010-11-08 21:58 <pheller> .... so did you upgrade the macbook to 10.5? | ||
2010-11-08 21:59 <cedk> pheller: my brother has one | ||
2010-11-08 21:59 <pheller> ah ha. do you want this copy of 10.6 for your laptop? | ||
2010-11-08 21:59 <cedk> pheller: don't know. How do you get it? | ||
2010-11-08 21:59 <pheller> I bought it from amazon.com. | ||
2010-11-08 22:00 <pheller> it's a legitimate retail copy. | ||
2010-11-08 22:00 <pheller> I'm happy to donate it to you so you have it for testing | ||
2010-11-08 22:25 -!- bechamel(~user@host-85-201-147-56.brutele.be) has joined #tryton | ||
2010-11-08 23:10 -!- lfages(~lfages@188-193-0-109-dynip.superkabel.de) has left #tryton | ||
2010-11-08 23:19 -!- pheller(~pheller@pool-173-48-216-195.bstnma.fios.verizon.net) has joined #tryton | ||
2010-11-08 23:22 <pheller> cedk: neso fixed | ||
2010-11-08 23:22 <pheller> cedk: you can find the dmg at the same url I gave you yesterday. same file -- I just overwrote it | ||
2010-11-08 23:26 <cedk> pheller: ok I check | ||
2010-11-08 23:31 <cedk> pheller: looks good | ||
2010-11-08 23:34 <pheller> cedk: excellent, back to my homework. talk to you later | ||
2010-11-08 23:35 <cedk> pheller: I upload it on downloads.tryton.org | ||
2010-11-08 23:43 <cedk> pheller: done | ||
2010-11-08 23:44 <pheller> cedk: cool. I think with 2.0, if I can get rid of the crash in the client, it can finally leave beta. :-) | ||
2010-11-08 23:56 <yangoon> btw: next version 1.10 or 2.0? ;) | ||
2010-11-08 23:58 <bechamel> yangoon: good question :) |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!