IRC logs of #tryton for Thursday, 2008-12-25

chat.freenode.net #tryton log beginning Thu Dec 25 00:00:01 CET 2008
-!- bacule(n=bacule@chrisdennis.org.uk) has left #tryton00:12
-!- ikks(i=igor@190.102.214.231) has joined #tryton00:33
-!- ikks(i=igor@190.102.217.88) has joined #tryton03:36
-!- vengfulsquirrel(n=vengfuls@wireless-216-170-122-150.digitalputty.com) has joined #tryton04:10
-!- yangoon(n=mathiasb@p549F4E6D.dip.t-dialin.net) has joined #tryton05:19
-!- ikks(n=igor@190.102.208.138) has joined #tryton05:21
-!- vengfulsquirrel(n=lily@wireless-216-170-122-150.digitalputty.com) has joined #tryton07:17
-!- sharkcz(n=dan@plz1-v-4-17.static.adsl.vol.cz) has joined #tryton09:56
-!- vengfulsquirrel(n=lily@wireless-216-170-122-150.digitalputty.com) has left #tryton09:58
-!- Timitos(n=Timitos@88.217.184.172) has joined #tryton10:37
-!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton11:30
udonocedk: hi, merry christmas :-)12:53
udonocedk: having silly problems with browse method12:53
udonocedk: How can I get the id of the actual company of the actual user?12:54
udonocedk: I try this:12:54
udono        user_obj = self.pool.get('res.user')12:54
udono        company_id_obj = user_obj.browse(cursor, user, user, context=context)12:54
udono        company_id = company_id_obj.company12:54
udonobut as result of company_id there comes everytime a BrowseRecord(company.company, 1) instead of just 1. Any clue welcome.12:56
cedkudono: this is normal12:57
cedkudono: first the name of your variable are very good12:57
cedkcompany_id_obj must be named user12:57
cedkand company_id -> company12:58
cedkas it is a many2one that link a user to a company12:58
cedkwhen you get user.company, you receive a BrowseRecord of the company12:58
cedkso if you want the id, you must use user.company.id12:59
udonocedk: Ah, I see. Thanks a lot.13:00
udonocedk: yes, it works even with the other attributes I needed in real.13:02
udonouser = user_obj.browse(cursor, user, user, context=context) is it right to write two times user in the browse record, when I wanted to have the record of the actual user?13:03
udonocedk: ?13:03
cedkudono: yes, the first is for the access right and the second the id13:04
udonocedk: thanks13:04
-!- Cristi_an(n=Cristi@89.120.211.206) has joined #tryton13:29
Cristi_antryton's i wish you Merry Christmas13:29
-!- cristi_an(n=cristi@89.120.211.206) has joined #tryton14:50
-!- ikks(i=igor@190.102.217.14) has joined #tryton15:00
-!- gremly(n=gremly@190.156.166.182) has joined #tryton17:27
-!- Timitos(n=Timitos@88.217.184.172) has joined #tryton17:47
-!- gremly(n=gremly@190.156.166.44) has joined #tryton18:00
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 24:dec1c6e48943 analytic_sale/de_DE.csv: updated translation for de_DE18:22
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 25:b275186637c5 analytic_sale/de_DE.csv: Update translation for de_DE18:22
-!- gremly(n=gremly@190.156.166.44) has joined #tryton18:30
-!- yangoon(n=mathiasb@p549F4E6D.dip.t-dialin.net) has joined #tryton21:04
-!- gremly(n=gremly@190.156.166.44) has joined #tryton21:04
-!- sharkcz(n=dan@plz1-v-4-17.static.adsl.vol.cz) has joined #tryton21:04
-!- ikks(i=igor@190.102.217.14) has joined #tryton21:04
-!- cristi_an(n=cristi@89.120.211.206) has joined #tryton21:04
-!- udono(n=udono@dynamic-unidsl-85-197-24-142.westend.de) has joined #tryton21:04
-!- cedric_b(n=cedric@cam44-3-82-235-75-221.fbx.proxad.net) has joined #tryton21:04
-!- CIA-10(n=CIA@208.69.182.149) has joined #tryton21:04
-!- panthera(n=daniel@unable-to-package.org) has joined #tryton21:04
-!- ChanServ(ChanServ@services.) has joined #tryton21:09
-!- yangoon(n=mathiasb@p549F4E6D.dip.t-dialin.net) has joined #tryton21:09
-!- gremly(n=gremly@190.156.166.44) has joined #tryton21:09
-!- sharkcz(n=dan@plz1-v-4-17.static.adsl.vol.cz) has joined #tryton21:09
-!- ikks(i=igor@190.102.217.14) has joined #tryton21:09
-!- cristi_an(n=cristi@89.120.211.206) has joined #tryton21:09
-!- udono(n=udono@dynamic-unidsl-85-197-24-142.westend.de) has joined #tryton21:09
-!- cedric_b(n=cedric@cam44-3-82-235-75-221.fbx.proxad.net) has joined #tryton21:09
-!- CIA-10(n=CIA@208.69.182.149) has joined #tryton21:09
-!- panthera(n=daniel@unable-to-package.org) has joined #tryton21:09
-!- snowch(n=snowch@82.152.13.57) has joined #tryton21:10
-!- carlos(n=carlos@89.7.24.44) has joined #tryton21:12
-!- vengfulsquirrel(n=lily@wireless-216-170-122-150.digitalputty.com) has joined #tryton21:24
-!- vengfulsquirrel(n=lily@wireless-216-170-122-150.digitalputty.com) has left #tryton21:31
-!- snowch(n=snowch@82.152.13.57) has left #tryton22:14
-!- snowch(n=snowch@82.152.13.57) has joined #tryton22:14
-!- snowch(n=snowch@82.152.13.57) has left #tryton22:14
-!- Cristi_an(n=Cristi@89.120.211.206) has joined #tryton22:41
Cristi_ananyone  here ?22:44
Cristi_anis there a special thing in the fact that some og a model varailbe instances are name with _   like _name ?22:44
Cristi_anbut i still have a questiuon: why in the tutorial from python.org classes chapter is not updated as latest "new style"22:55
Cristi_anin that tutorial there is not mentioned such things22:55
Cristi_ansorry22:56
Cristi_anthsi was for python channel22:56
udonoCristi_an: hi, are you there?22:59
udonoin tryton modules we use _name = "party.party" for naming the so called "model"22:59
udonoIf another class calls an already existing model, then it inherits the origin model.23:00
Cristi_anhi23:01
Cristi_ani am23:02
Cristi_anbtw in tryton23:02
Cristi_annew style classes are used23:02
Cristi_an?23:02
Cristi_anhttp://docs.python.org/reference/datamodel.html#newstyle23:02
Cristi_anudono, what i was courious is that havint the underscore in from of a memebr varaible ...has some special meanain ?23:03
Cristi_anmeaning ?23:03
udonoCristi_an: only for the _name, _description, _rec_name in the verry beginning of a class definition in tryton. Inside a method definition it is usual as described in Python doc.23:11
Cristi_anthat is a must...23:11
Cristi_anor those fileds are inherited and overrided23:12
udonoCristi_an: they have a special meaning for tryton. For Python they are just weak internal variables.23:12
Cristi_anok i will take a look  on weak instances23:12
udonoCristi_an: the special meanining is just for class definitions...23:12
Cristi_anor varaiables as you say23:12
Cristi_anthx23:13
udonoCristi_an: I don't know if the term is right. But _variablename is used for internal Variables by good-will (actually they can be used external). And then there are __variablename for more strict internal use...23:14
Cristi_ani see23:14
udonothe _name Variable 'connects' the XML Structure with the Python things.23:15
Cristi_anbut the variablr _name is already defined in the base calss ?23:17
Cristi_anosv ?23:17
Cristi_ani do not have the src yet23:17
udonoCristi_an: no, it is in the namespace of each Python class. The _name=Variable.Name creates a table Variable_Name. Also often you will find xml definitions with <field name="model">party.party</field> this is connected to the python class which _name is "party.party"23:18
Cristi_anwhcich means class party from party module ?23:19
udonoCristi_an: yes, and all other classes named like this. If there are more then one class with the same _name attribute, they are inheriting each other. This is the Tryton inheritance, we talk about when talking about Module dependencies.23:21
Cristi_anthx a lot....23:24
udonoCristi_an: welcome23:24
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 85:db6f49e43314 sale/de_DE.csv: updated translation for de_DE23:30
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 86:dce424784b63 sale/de_DE.csv: updated translation for de_DE23:30
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 87:63126e79c269 sale/: merge23:30
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 88:e06d8492facb sale/: merge23:30
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 89:17bfd83fa5a0 sale/de_DE.csv: updated translation for de_DE23:30
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 90:f9d2a67d13c5 sale/de_DE.csv: updated translation for de_DE23:30
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 91:80038f144d66 sale/: merge23:30
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 92:41201ab8ad22 sale/de_DE.csv: updated translation for de_DE23:30
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 93:37f7f451c71d sale/: merge23:30
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 94:cc9612f0af1a sale/: merge23:30
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 95:3d9bf3d2ba01 sale/de_DE.csv: updated translation for de_DE23:30
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 96:222d88180ceb sale/: merge23:31
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 97:a783b0a4c147 sale/de_DE.csv: Update translation for de_DE23:31
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 184:010ebfd24392 purchase/de_DE.csv: updated translation for de_DE23:31
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 185:a1da6462699e purchase/: merge23:31
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 186:d1a7b10aca64 purchase/: merge23:31
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 187:904a8a256596 purchase/: merge23:31
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 188:36b8d8ad109e purchase/de_DE.csv: updated translation for de_DE23:31
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 189:07fbb1263144 purchase/: merge23:31
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 190:78e0d869b17d purchase/de_DE.csv: updated translation for de_DE23:31
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 191:1554c0133146 purchase/: merge23:31
-!- ikks(n=igor@190.12.153.202) has joined #tryton23:31
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 192:946a93676308 purchase/: merge23:31
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 193:680ad975e240 purchase/de_DE.csv: updated translation for de_DE23:31
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 194:a3c4bad4bb2c purchase/: merge23:31
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 195:b071855ccd86 purchase/: merge23:32
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 196:2c2ba450aef5 purchase/de_DE.csv: Update translation for de_DE23:32
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 197:4e2d37911bc8 purchase/de_DE.csv: Update translation for de_DE23:32
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 225:9f1ecc7d65f1 account_invoice/de_DE.csv: updated translation for de_DE23:32
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 226:278b967f3034 account_invoice/de_DE.csv: updated translation for de_DE23:32
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 227:bd153469bd79 account_invoice/: merge23:32
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 228:106c2836baa9 account_invoice/de_DE.csv: updated translation for de_DE23:32
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 229:d66a131e2137 account_invoice/de_DE.csv: updated translation for de_DE23:32
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 230:975f38d852e9 account_invoice/: merge23:32
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 231:b8ec6177e111 account_invoice/: merge23:32
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 232:70a09a148dbc account_invoice/: merge23:32
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 233:ba6eb549ea16 account_invoice/: merge23:32
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 234:5dee28677d3a account_invoice/: merge23:32
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 235:88e5cd8aaed7 account_invoice/de_DE.csv: Update translation for de_DE23:33
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 236:85852acf9a19 account_invoice/de_DE.csv: Update translation for de_DE23:33
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 148:715a3faf3a2f stock_supply/de_DE.csv: updated translation for de_DE23:33
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 149:619c1cea173e stock_supply/: merge23:33
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 150:10427e797640 stock_supply/: merge23:33
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 151:71e74adc6e4f stock_supply/de_DE.csv: Update translation for de_DE23:33
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 122:2a0599602517 product/de_DE.csv: updated translation for de_DE23:33
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 123:23bfee863ebd product/: merge23:33
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 124:7d5f097f92fd product/de_DE.csv: Update translation for de_DE23:33
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 347:ff3a6697666a account/de_DE.csv: updated translation for de_DE23:33
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 348:f16f8a52ec5c account/: merge23:33
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 349:c3ea8c3ccc3a account/: merge23:33
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 350:e8813f9134ca account/de_DE.csv: updated translation for de_DE23:33
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 351:eda0eb803cfb account/: merge23:34
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 352:67ee738d2cb3 account/: merge23:34
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 353:5ba31520293d account/: merge23:34
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 354:c03ef9b09b5c account/: merge23:34
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 355:82674d4ff666 account/: merge23:34
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 356:979b8e4760b2 account/: merge23:34
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 357:854ccc7f7652 account/: merge23:34
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 358:d1971c43287f account/: merge23:34
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 359:aaeb514a405c account/de_DE.csv: Update translation for de_DE23:34
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 216:47dd2ba9a9af party/de_DE.csv: updated translation for de_DE23:34
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 217:a17e63d69d42 party/: merge23:34
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 218:9ea975ab6167 party/: merge23:34
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 51:e45a9ed1c2c6 currency/de_DE.csv: updated translation for de_DE23:34
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 52:aea671d5e944 currency/: merge23:34
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 53:574e738f5b0e currency/: merge23:35
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 25:e36fac6fe347 account_product/de_DE.csv: updated translation for de_DE23:35
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 411:0f4095f778e8 stock/de_DE.csv: Update translation for de_DE23:40
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1398:7e5cd851d8ee trytond/trytond/ir/de_DE.csv: updated translation for de_DE23:41
CIA-10tryton: root@obelix.violadagamba.myfqdn.de default * 1399:eb97b17ef79b trytond/: merge23:41
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1400:b09067e0d000 trytond/: merge23:41
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1401:558a1a181208 trytond/: merge23:41
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1402:b2a925800842 trytond/: merge23:41
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1403:51398dd58844 trytond/trytond/ir/de_DE.csv: updated translation for de_DE23:41
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1404:83a23904bf0a trytond/: merge23:41
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1405:68d02dfb2bad trytond/trytond/ir/de_DE.csv: updated translation for de_DE23:41
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1406:7bae47e73f84 trytond/trytond/ir/de_DE.csv: updated translation for de_DE23:41
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1407:cc472aebd9bc trytond/trytond/ (ir/de_DE.csv res/de_DE.csv): updated translation for de_DE23:41
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1408:708b0f3b5718 trytond/: merge23:41
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1409:b8b07be6a9c9 trytond/: merge23:41
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1410:107c4f0dbc02 trytond/: megre23:42
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1411:b0499c6872f5 trytond/: merge23:42
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1412:d3ec805082d5 trytond/: merge23:42
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1413:07a8f6b8ac4e trytond/: merge23:42
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1414:b62e7695a828 trytond/: merge23:42
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1415:c85591e5cb6e trytond/: merge23:42
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1416:98b668f1c522 trytond/: merge23:42
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1417:431b8566353e trytond/: merge23:42
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1418:85a0b939089b trytond/: merge23:42
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1419:9fc8937fdabf trytond/: merge23:42
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1420:ff89f99b83a7 trytond/: merge23:42
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1421:24c7843030ba trytond/: merge23:42
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1422:7f13f0ac98b6 trytond/: merge23:42
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1423:3155da071b1b trytond/: merge23:42
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1424:36f265e575ca trytond/: merge23:42
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 1425:10dddbf3b282 trytond/trytond/ir/de_DE.csv: Update translation for de_DE23:43

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