IRC logs of #tryton for Tuesday, 2009-01-20

chat.freenode.net #tryton log beginning Tue Jan 20 00:00:01 CET 2009
carlosvengfulsquirrel: bis would be something like 'secondary' (not a perfect definition, but I hope you get the meaning)00:13
carlosin Spain we use it sometimes for addresses (not the same use as Tryton, but a good example). For instance, when two buildings have the same address number, to differentiate them, one is the number 4 and the other the 4 BIS00:14
cedkvengfulsquirrel: about the csv import, there is the import_data function on models00:16
cedkvengfulsquirrel: this is the function used in the Tryton client for the import00:16
vengfulsquirrelcedk: Okay thanks I'll look into that function, in the client there is a lot going on that isn't apparent from looking at individual OSV model definitions.  Anyways what I'm doing right now is unrelated to MRP, but I thought more about the multiple output BOMs and I think that won't be too much harder as long as we make sure every product has only one valid principal BOM at any given time.00:25
CIA-51tryton: matb roundup * #752/Enable notes for invoice lines: [new] See attached patches to have same layout and notes for invoice lines as for purchase/sale lines00:26
cedkvengfulsquirrel: I don't think that you must restrict to one principal output00:27
vengfulsquirrelNot one principal output just each product can only be one principal output on any given bom... otherwise there is no reason to mark principal.00:29
vengfulsquirrelA BOM can have many principal outputs00:29
vengfulsquirrelbut a product can only have one principal bom00:30
cedkvengfulsquirrel: I don't think so00:30
cedkvengfulsquirrel: there is rare case where a product can have many BOMs00:30
vengfulsquirrelHow does the system know how to produce a product?00:30
vengfulsquirrelA product can have many boms but you aren't going to use multiple boms during production just the principal bom.00:30
cedkvengfulsquirrel: for me, BOMs must have a sequence to give a default priority00:31
vengfulsquirrelWhy mark principal then?00:31
cedkvengfulsquirrel: and so when the system will create the production order, it selects the default BOMs and set it on the production order00:31
cedkvengfulsquirrel: and then the user can change it to an other if he want00:32
cedkvengfulsquirrel: because some production can create a product but not in the best way, just because it is a trash effect00:32
vengfulsquirrelha oh man okay seems like a lot of unnecessary complexity but that can still work00:33
cedkvengfulsquirrel: think about a metal plate that you can cut it00:33
cedkvengfulsquirrel: so you must not selected to produce the product00:34
vengfulsquirrelI understand multiple outputs but I don't understand really multiple principal boms.00:34
cedkvengfulsquirrel: still, think about metal plate that you cut00:34
cedkvengfulsquirrel: you will have always two parts00:35
cedkvengfulsquirrel: this can be two products00:35
vengfulsquirrelokay00:35
cedkvengfulsquirrel: I think that multiple outputs have means when you cut :-)00:35
vengfulsquirrelSo you'd have two different boms that produce the exact same cut plate size and you might use either.00:36
cedkvengfulsquirrel: this is redondant00:37
cedkvengfulsquirrel: and think about three cuts or four cuts :-)00:37
vengfulsquirrelYeah okay at least I have an industry to blame for the complexity, the cutting-of-anything industry.00:38
vengfulsquirrelYou've convinced me that it could be necessary though.00:39
cedkvengfulsquirrel: good :-)00:45
vengfulsquirrelI guess I just don't understand why we need principal though, shouldn't the sequence order of all boms listing the product as an output determine the priority of the BOMs ?00:46
cedkvengfulsquirrel: because sequence can be not enough in some case00:48
cedkvengfulsquirrel: and you will want to be sure that one BOM will never be used to produce the trashed product00:48
vengfulsquirrelbut the user would have to look past the higher priority boms that make the product not as trash to then select the bom that produces the product as trash... so does non-principal just mean you can't ever use that bom during production for that output00:50
vengfulsquirrelA sort of filter on what boms should be used to produce that product ?  ie. filtering the trash boms ?00:51
cedkvengfulsquirrel: yes00:52
vengfulsquirrelOkay I think we are making progress... so does sequence order then ONLY apply to principal boms ?00:53
cedkvengfulsquirrel: what is principal boms ?00:53
vengfulsquirrelA principal bom for a given product is a BOM that lists that product as a principal output.00:54
vengfulsquirrelSo for a given product there are a list of principal boms and a list of non-principal boms(boms that produce the product as trash).00:54
CIA-51tryton: matb roundup * #753/Client: segfault with spell check: [new] When selecting a proposal from the spellchecker the client segfaults immediately. Confirmed for Debian and Ubuntu.00:55
vengfulsquirrelOr would all of a product's bom no matter if they are principal or not all be sequenced with the same number?00:56
cedkvengfulsquirrel: for which use ?00:57
vengfulsquirrelFor selecting a bom to use for production of a specific product01:01
cedkvengfulsquirrel: yes01:02
CIA-51tryton: C?dric Krier <ced@b2ck.com> default * 431:0ece3508e678 stock/packing.py: Improve test in assign wizards to not call twice assign_try01:06
CIA-51tryton: C?dric Krier <ced@b2ck.com> default * 432:06d775dc66f8 stock/ (CHANGELOG move.py packing.py product.py):01:06
CIA-51tryton: Move assign_try and pick_product from product.product to stock.move01:06
CIA-51tryton: Fix assign_try to work on all child locations01:06
CIA-51tryton: Use copy in assign_try to be more generic01:06
vengfulsquirrelcedk: Hmm okay well I'm going to update the wiki later then to reflect what we talked about.  Thanks.01:13
cedkvengfulsquirrel: ok01:14
vengfulsquirrelbbl01:14
CIA-51tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 256:555228014bf4 account_invoice/ (invoice.py invoice.xml):01:24
CIA-51tryton: Enable notes for invoices01:24
CIA-51tryton: - Add notebook on invoice line form01:24
CIA-51tryton: - Add notes to invoice lines01:24
CIA-51tryton: - Add spellcheck for text fields01:24
CIA-51tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 38:11f19eae44d8 analytic_invoice/invoice.xml: Update for new invoice line form01:24
CIA-51tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 215:bacc85fc9a66 purchase/purchase.py: Enable notes for invoice lines01:24
CIA-51tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 109:3ad5c2bcbc9d sale/sale.py: Enable notes for invoice lines01:24
CIA-51tryton: ced roundup * #752/Enable notes for invoice lines: [resolved] Applied01:26
CIA-51tryton: ced roundup * #752/Enable notes for invoice lines: [chatting] Next time, it will be good to put in the commit message the number of the issue.01:27
CIA-51tryton: ced roundup * #753/Client: segfault with spell check: [testing] It works well here with gtkspell-python-2.19.101:36
CIA-51tryton: ced roundup * #753/Client: segfault with spell check: [resolved] It seems to be a gtkspell bug https://bugs.launchpad.net/ubuntu/+source/gtkspell/+bug/12056901:58
-!- vengfulsquirrel(n=ian@c-71-202-125-182.hsd1.ca.comcast.net) has joined #tryton02:26
-!- ikks(n=igor@190.12.153.202) has joined #tryton03:10
-!- gremly(n=oscar@190.156.170.254) has joined #tryton04:26
-!- yangoon(n=mathiasb@p549F4959.dip.t-dialin.net) has joined #tryton05:19
-!- Timitos(n=Timitos@88.217.184.172) has joined #tryton07:50
-!- sharkcz(n=dan@plz1-v-4-17.static.adsl.vol.cz) has joined #tryton07:54
-!- carlos(n=carlos@89.7.24.44) has joined #tryton07:59
-!- cristi_an(i=5978d3ce@gateway/web/ajax/mibbit.com/x-3d968caba0277967) has joined #tryton08:56
CIA-51tryton: vengfulsquirrel * r425 /wiki/TrytonMRPIntegration.wiki: Made more changes with respect to multiple output BOMs.09:18
cristi_ando you know every for that the client display is written on some xml on server side ?09:29
cristi_anevery form09:29
-!- nicoe(n=nicoe@ip-80-236-225-36.dsl.scarlet.be) has joined #tryton09:34
-!- Gedd(n=ged@ip-80-236-225-36.dsl.scarlet.be) has joined #tryton09:39
-!- ikks(n=igor@190.12.153.202) has joined #tryton09:46
CIA-51tryton: Timitos roundup * #744/AttributeError: TranslateFactory instance has no attribute 'ugettext': [resolved] found the error. it was a local issue09:50
Timitoscristi_an: i do not understand your question09:51
cristi_anTimitos: client is full of user interface logic09:56
cristi_anwidgets09:56
cristi_anetc09:56
cristi_ani asked if all this come from server side09:56
cristi_anthe layout09:56
cristi_anetc09:56
cristi_anthe xml's ?09:56
cristi_anand xml's are stored on client side...?09:57
cristi_anlike cahced09:57
Timitoscristi_an: not everything. there is a basegui which is coded in python.09:57
Timitosbut you better ask cedk for this.09:58
cristi_annot really imp in this moment10:00
cristi_anjust as i go ...i want to know a  little bit of this ,that10:01
-!- saxa(i=1000@host242-95-static.223-217-b.business.telecomitalia.it) has joined #tryton10:02
-!- evernichon(n=evernich@170.87-65-87.adsl-dyn.isp.belgacom.be) has joined #tryton10:17
-!- oversize(n=manuel@port-92-198-7-97.static.qsc.de) has joined #tryton11:00
-!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton11:03
-!- bechamel(n=user@85.201.86.139) has joined #tryton11:30
-!- sharkcz(n=dan@plz1-v-4-17.static.adsl.vol.cz) has joined #tryton11:46
CIA-51tryton: Timitos roundup * #754/permission problem when creating product category: [new] i created a user without rights for administration internal. When i try to create a product category with this user i get the following err ...12:15
-!- ikks(n=igor@190.12.153.202) has joined #tryton12:40
-!- CIA-51(n=CIA@208.69.182.149) has joined #tryton12:41
-!- carlos(n=carlos@89.7.24.44) has joined #tryton13:00
-!- yangoon(n=mathiasb@p549F4959.dip.t-dialin.net) has joined #tryton14:03
CIA-51tryton: C?dric Krier <ced@b2ck.com> default * 1470:5397642eeedb trytond/trytond/ir/property.py: Use root user to delete, create property in set function for issue75414:26
CIA-51tryton: C?dric Krier <ced@b2ck.com> default * 121:803b8b0bd9a8 company/company.py: Use root user to write property in set function for issue75414:26
CIA-51tryton: ced roundup * #754/permission problem when creating product category: [resolved] Fix with changeset 5397642eeedb and 803b8b0bd9a814:26
CIA-51tryton: C?dric Krier <ced@b2ck.com> default * 1320:1244280efc4d trytond/trytond/security.py:14:29
CIA-51tryton: Add exponential timeout on failed login attempts.14:29
CIA-51tryton: Thanks to Bruce's comment about the Twitter issue.14:29
CIA-51tryton: C?dric Krier <ced@b2ck.com> default * 1321:2b9ea4f07887 trytond/trytond/tools/misc.py: Use repr to convert key instead of str in the case of key is an unicode14:29
CIA-51tryton: C?dric Krier <ced@b2ck.com> default * 1322:e444ab4743ed trytond/trytond/osv/orm.py: Fix order for selection fields that use a function instead of list.14:29
CIA-51tryton: C?dric Krier <ced@b2ck.com> default * 1323:ccc6b8cf8361 trytond/trytond/osv/orm.py: Fix in clause on boolean fields and prevent to modify args14:29
CIA-51tryton: Bertrand Chenal <bch@b2ck.com> default * 146:1f85606aa588 stock_supply/order_point.py: Fix product domain on order point (issue745)14:30
CIA-51tryton: C?dric Krier <ced@b2ck.com> default * 147:7ce8f6aa7078 stock_supply/order_point.py: Use more standard way for string domain14:30
-!- ikks(n=igor@201.244.188.98) has joined #tryton14:51
-!- cristi_an(i=5bbf82c4@gateway/web/ajax/mibbit.com/x-48cf55c10326491c) has joined #tryton15:09
cedkcristi_an: could you answer to the issue750?15:12
cristi_ancedk: i wrote mail15:15
cristi_anreplyed15:15
cedkcristi_an: it was not received15:16
cedkcristi_an: could you send it again?15:16
cristi_ancedk: i did15:17
cristi_ancedk: you did not get ?15:17
cristi_anhowever i can;t reporduce exact steps15:17
cedkcristi_an: ok, it is grey-listed15:18
CIA-51tryton: cristi roundup * #751/ValueError: list.index(x): x not in list: [chatting] The problem is that i can;t reporduce. I played with the client doing a lot of stuff. However it happend when i swithc list from view b ...15:22
cristi_anin the accounting module is possible to add something like a bulk payment15:23
cristi_anfor invoices15:23
cristi_anthere are customers that may have like 50 ,60  invoices15:23
cristi_annot payed15:23
cristi_anand then they go to bank and pay a sum15:23
cristi_ani would like to be able to enter that sum and to "reconcile" (this is the term) the  unpayed invoces15:24
cristi_anuntil the sum is = 015:24
cedkcristi_an: ok, you must use the account_statement module15:24
cedkcristi_an: to encode the bank statement15:24
cedkcristi_an: there, you can link a payment to one invoice15:24
cedkcristi_an: or if you want, you can make the reconciliation in "Financial Management>Entries>Reconcile Lines"15:25
cristi_anok but possible to do bulk ?15:25
cristi_anenter 10000$15:25
cristi_anand to do this automatically ?15:26
cristi_anfor the unpaied invoices15:26
cristi_ani just want to select a customer or a supplier15:27
cedkcristi_an: there is no automatic mecanism for reconciliation for now15:27
cristi_ani see15:27
cristi_anbut is possible to be done15:27
cedkcristi_an: but it is possible to create a module for that15:27
cristi_ani am asking abou thtings that i will possible be able to do15:27
cristi_anso is possible to extend the accounting module  ? i mean to create a new module that extend the accounting module but to have this feature15:29
cedkcristi_an: yes15:29
cedkcristi_an: it is possible to do anythings in a module !15:29
cedkcristi_an: you can change any part of Tryton in a module15:30
cristi_ancedk: but is possible to remove override from behaviour from a module15:32
cristi_anby creating another the exteds it15:33
cristi_anthe = that15:33
cedkcristi_an: don't understand15:33
cristi_ansorry :)15:34
cristi_ancedk: let;s say you have a fucntion that calcultes something in a module and i want to create a new module that override the function and adding some new behaviour....15:35
cristi_ani am sure is possible15:35
cedkcristi_an: yes15:35
cristi_anjust asked to double ccheck15:35
cristi_ancedk: accounting module was rewritten from 015:36
cristi_an?15:36
cristi_anor it has coomon parts with open erp modules15:36
cedkcristi_an: rewritten from scratch, but I know very well the account module from OpenERP so I keep some good ideas15:37
-!- paola(n=paola@host-84-223-76-210.cust-adsl.tiscali.it) has joined #tryton15:38
cristi_ancedk: and how much time took you to do that (apx) that module15:39
CIA-51tryton: ced roundup * #750/ValueError: list.index(x): x not in list: [resolved] duplicated issue75115:39
cristi_anapx = aproximative15:41
cedkcristi_an: about 2 months but not fulltime15:41
cristi_anWOW !!!!15:44
cristi_anthen for me doing such a thing means more then a year :))15:45
cristi_anpfffff15:45
CIA-51tryton: C?dric Krier <ced@b2ck.com> default * 1165:e031f5775cda tryton/tryton/gui/window/view_form/view/list.py: Improve on_get_path if iter not in models for issue75115:47
CIA-51tryton: ced roundup * #751/ValueError: list.index(x): x not in list: [resolved] Must be fixed with changeset e031f5775cda15:48
cristi_ancedk: hwo much it will take you to write a POS module ?15:59
-!- cristi_an(i=5978d3ce@gateway/web/ajax/mibbit.com/x-943fe938689eb8c7) has joined #tryton16:14
cristi_ancedk: and any other :how long it will take for u to createa POS module ?16:15
cedkcristi_an: it is difficult to say because it depends of the needs16:31
cristi_ancedk: you know what a POS means,barcodes,printing the bill in real time on a printer,http://translate.google.com/translate?prev=hp&hl=ro&u=http%3A%2F%2Fwww.magister.ro%2Fcorporate%2Fportal%2Falias__magister%2Flang__ro-RO%2FtabID__3985%2FDesktopDefault.aspx&sl=ro&tl=en16:41
cristi_ancreating some dayily reports16:41
cristi_anthen at the end of the day to create an item the is withdrawn from stock16:42
cedkcristi_an: this is no so simple16:43
Geddcedk: bechamel: I've committed the change to relatorio to implement simple column looping16:45
cedkGedd: ok, we will test it16:46
nicoeGedd: s/commited/pushed I suppose16:46
Geddcedk: bechamel: one of the examples (the one with one column loop across several lines) doesn't work yet though16:47
Geddnicoe: yep, of course16:47
cristi_anwell but cedk ,common is it not that hard i did it in java in 3 weeks16:47
cristi_anhere you have a framework16:48
cristi_analready...16:48
Geddcedk: if you need it, the obvious workaround to that case is to have the loop instructions on each line16:49
cedkGedd: will it be fixed?16:51
Geddcedk: as a bonus, you get ~10% faster relatorio16:51
bechamelone can also put a table in the cell16:52
Geddcedk: yes, though the "collection" will need to be iterable several times16:52
Geddbecause I'll do the above workaround automatically16:52
Gedd~10% faster if you don't cache the first "relatorio" phase and you don't have column repetition. And a lot slower if you have column repetition, but that can't be helped due to limitations in Genshi (I need to do a second pass on the data).16:55
cedkcristi_an: look with carlos for POS, he is working on this16:58
cristi_ank17:00
carloscristi_an: We need something for the end of February, so we are thinking on do an initial version using OpenBravo's POS integrated with Tryton and then, move to one designed to work with Tryton17:09
cristi_ancarlos: cedk something is not right a post moduel to take month to create ?17:14
cristi_an /s/post/POS17:14
cristi_anmonths17:14
carloswell, it depends on the dedication you have to the project17:15
cristi_ancarlos: i see17:15
carlosit doesn't mean we are working full time until end of February17:15
cristi_anbut,tryton ,using python :) has to be gast development17:15
cristi_anfast17:15
carlossure, but there are other developments, like the Chart of accounts, other projects outside Tryton and learn Tryton development17:16
cristi_ancarlos: chart of accounts is not a list with accounts that has to be introduced in tryton (imported)17:17
cristi_ancarlos: that can be done in half a day17:17
cristi_anlet's say 1 day17:17
carlossure, if you have the data in a way you can process it with a program17:17
carloswhich is not the case17:17
carlosat least for me17:17
cristi_aneven if you enter that manually17:18
cristi_anit shoudl be ready in 1 day17:18
carlosdude, how many accounts do you have in your country?17:18
cristi_anlet me show you17:18
cedkcristi_an: any way, I think creating a *good* POS is not so easy17:18
cristi_anhttp://www.kpmg.ro/dbfetch/52616e646f6d4956168b815c8c8bd43e18b87af8ffaafc4ea187f14dfdd8ac2c/romanian_chart_of_accounts.pdf17:19
cristi_anhundreds17:19
cedkthere is many different needs like offline/online, generate invoice or not, handle product price with or without taxes, synchronous process17:19
cristi_ancedk: those are indeed some thing neede to be take into account17:20
cedkGedd: when do you expect to handle loop on many rows?17:20
cristi_anbut for an expericned man like you if you know the logic ...not more then 1 month17:21
Geddcedk: loops on many rows works...17:21
cristi_aneven that is too much i say ...17:21
Geddcedk: what doesn't work is only if you merge the cells vertically17:21
cedkcristi_an: and I prefer take a little more time to think about then coding something that will need to be changed many times (like some others :-))17:21
cristi_ancedk: here i agree with you 100 %17:22
carloscristi_an: the Spanish document is 152 pages and you are forgetting about the balance sheet and the income statement (which are not in the document you gave to me)17:22
cedkGedd: yes, that is what I want to say, loop on many *vertical* rows17:22
cristi_ancarlos: then for you is different17:22
Geddcedk: and that one will probably be "fixed" (or rather implemented) tomorrow17:22
carloscristi_an: also, I'm quite new to the accounting software, so I'm slower than cedk ;-)17:23
cristi_ancedk: but belive me from my exp there is NEVER a general solution....you need to change all the time17:23
carloscristi_an: well, what I told you is also valid for Germany and I think Belgium and other UE countries17:23
cristi_ancarlos: there is a starting point for everything17:23
cristi_anso keep up the good work...maybe i will reuse it :) :P17:24
carloscedk: btw, my tax advisor told me that there is nothing in Spain that prevents me to use the way Tryton has to handle accounting, as long as I'm able to extract the information per 'party'17:24
carlosTimitos: ^^17:25
carlosneither any law that prevents us to add 'documentation' for each account17:25
carloscristi_an: indeed17:26
carloscristi_an: anyway, if you don't have balance sheet or income statement reports, should be quite easy for you to create your chart of accounts17:26
cedkcarlos: great17:26
cedkcarlos: will you make the devs to add note on template? I think it is a good exercise :-)17:27
carlosAs I said, I added it to my todo list, but is not my priority right now, so it will depend on how busy I'm with other projects :-)17:28
cedkcarlos: it is just to know if we wait you or we can start it17:29
cedkcarlos: but so we will wait you17:29
carlosif you want to go and do it, you can do it. I don't think I will have time to work on it until March or so17:31
carloshowever, I thought you said it was not a priority for you either ;-)17:31
-!- tekknokrat(n=gthieleb@87.193.170.219) has joined #tryton17:40
-!- tekknokrat(n=gthieleb@87.193.170.219) has left #tryton17:40
cristi_ancarlos: so you use tryton not only want to offere services17:48
cristi_ancarlos: so you have to enter more the the accounts17:49
-!- vengfulsquirrel(n=ian@c-71-202-125-182.hsd1.ca.comcast.net) has joined #tryton18:51
-!- cristi_an(n=cristi@89.120.211.206) has joined #tryton19:32
-!- paola(n=paola@host-84-223-76-210.cust-adsl.tiscali.it) has joined #tryton19:51
-!- mmarshall(n=mmarshal@adsl-76-255-76-128.dsl.rcsntx.sbcglobal.net) has joined #tryton19:53
-!- enlightx(n=enlightx@host-84-220-86-72.cust-adsl.tiscali.it) has joined #tryton19:56
CIA-51tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 257:64b34f739ef4 account_invoice/de_DE.csv: Update translation for de_DE20:03
CIA-51tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 433:255e90000333 stock/de_DE.csv: Update translation for de_DE20:04
CIA-51tryton: matb roundup * #755/Inventories: moving with keyboard: [new] In a new inventory it is not possible to move via keyboard in the selection box for location.20:09
-!- X0d_of_N0d(i=user@gateway/tor/x-7f50e0c4f0e31930) has joined #tryton20:15
CIA-51tryton: matb roundup * #756/Stock: calculation of assignable products: [new] If there are 5 units of some product on stock, but there is a sale for 10 units of this product, the wizard for force assigning shows 10 uni ...20:31
-!- ChanServ(ChanServ@services.) has joined #tryton21:09
-!- johbo(n=joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton21:10
-!- panthera(n=daniel@unable-to-package.org) has joined #tryton21:10
-!- Timitos(n=Timitos@88.217.184.172) has joined #tryton21:10
-!- saxa(i=1000@host242-95-static.223-217-b.business.telecomitalia.it) has joined #tryton21:10
-!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton21:10
-!- sharkcz(n=dan@plz1-v-4-17.static.adsl.vol.cz) has joined #tryton21:10
-!- CIA-51(n=CIA@208.69.182.149) has joined #tryton21:10
-!- carlos(n=carlos@89.7.24.44) has joined #tryton21:10
-!- yangoon(n=mathiasb@p549F4959.dip.t-dialin.net) has joined #tryton21:10
-!- ikks(n=igor@201.244.188.98) has joined #tryton21:10
-!- vengfulsquirrel(n=ian@c-71-202-125-182.hsd1.ca.comcast.net) has joined #tryton21:10
-!- mmarshall(n=mmarshal@adsl-76-255-76-128.dsl.rcsntx.sbcglobal.net) has joined #tryton21:10
-!- enlightx(n=enlightx@host-84-220-86-72.cust-adsl.tiscali.it) has joined #tryton21:10
-!- X0d_of_N0d(i=user@gateway/tor/x-7f50e0c4f0e31930) has joined #tryton21:10
-!- paola_(n=paola@host-84-223-76-210.cust-adsl.tiscali.it) has joined #tryton21:10
-!- ChanServ(ChanServ@services.) has joined #tryton21:10
vengfulsquirrelX0d_of_N0d: Oh hey I totally forgot you said you were going to show the mrp page to your boss and I was editing it off and on during the weekend.21:12
X0d_of_N0dhehe21:13
X0d_of_N0dvengfulsquirrel: oh well21:13
X0d_of_N0dvengfulsquirrel: I just hope some of what he said was useful to you.21:13
cedkvengfulsquirrel: could you repeat your answer, it was cut off by a netsplit21:16
vengfulsquirrelcedk: You mean question?  In this thread, http://groups.google.com/group/tryton/browse_thread/thread/72785c50c23a293f , there is an example of calling get_db_and_pool.21:18
vengfulsquirrelSome caching is done in the example but there seems to already be caching in the actual get_db_and_pool function.21:18
vengfulsquirrelWhy the duplicate caching?21:18
vengfulsquirrelCan I share the pool and db between threads(ie. only call get_db_and_pool once) ?21:18
vengfulsquirrelBut it seems like I should use one cursor via db.cursor() per thread, is that correct?21:18
cedkvengfulsquirrel: I don't see the caching?21:19
cedkvengfulsquirrel: you can shared the pool between threads21:19
cedkvengfulsquirrel: and it is better to use one cursor by thread if you want to have transaction by thread21:20
vengfulsquirrelcedk: You can share db between threads as well?  I guess all you use it for is generating cursors though.21:22
CIA-51tryton: C?dric Krier <ced@b2ck.com> default * 1471:82508a341b0f trytond/trytond/osv/orm.py: Fix order for translation that are empty21:22
CIA-51tryton: C?dric Krier <ced@b2ck.com> default * 1472:2ba2237fd1f6 trytond/trytond/osv/orm.py: Fix order_calc for special model ir.model and ir.model.field for issue69721:22
CIA-51tryton: ced roundup * #697/Sort order of almost all tables under Administration doesn't respect translation: [resolved] Fix with changeset 2ba2237fd1f621:22
cedkvengfulsquirrel: don't understand21:23
X0d_of_N0ddoes anyone besides bechamel use emacs?21:25
X0d_of_N0dhere21:25
vengfulsquirrelcedk: I want to create a global TrytonSession class that has a single db and a single pool instance, threads will then use these to interact with tryton.21:25
vengfulsquirrelI use emacs, but I just started using it like a month ago.21:25
vengfulsquirrelOr you mean for IRC?21:25
vengfulsquirrelX0d_of_N0d: Yes there seems to definitely be some usable information in there, I think a separate configurable BOM scheme is more of what is expected and simpler to implement.21:26
-!- bechamel(n=user@85.201.86.139) has joined #tryton21:26
CIA-51tryton: ced roundup * #755/Inventories: moving with keyboard: [chatting] I don't understand21:26
X0d_of_N0dvengfulsquirrel: i mean for everything..hehe21:26
X0d_of_N0dI was just going to say that when I try to import trytond into ipython run inside of emacs I ran into a problem...21:27
vengfulsquirrelHa right, yeah I just use it for editing right now it hasn't become my host operating system yet.21:27
vengfulsquirrelOh I've never used ipython21:27
CIA-51tryton: ced roundup * #756/Stock: calculation of assignable products: [testing] Are you sure about your example? Normally, it behaves like you say.21:27
X0d_of_N0dvengfulsquirrel: I really need to start using it for mail, then I'll only have firefox as the only program I use besides emacs21:28
cedkvengfulsquirrel: you can not have many pool instance by thread21:28
X0d_of_N0dvengfulsquirrel: ipython is kind of cool21:29
-!- cristi_an(n=cristi@89.120.211.206) has joined #tryton21:31
vengfulsquirrelcedk: http://paste.lisp.org/display/7394321:36
vengfulsquirrelSomething like that, where init_tryton is just called once before threads are spawned then threads share the global Session object.21:37
X0d_of_N0dACTION heads out to lunch21:37
cedkvengfulsquirrel: looks good21:39
cedkvengfulsquirrel: be careful to use a try/finaly once you have cursor to ensure that you close it21:40
cristi_ancedk: after radio interview did tryton get more attention in Bruxelles21:42
cristi_an?21:42
cedkcristi_an: not really, it is a small radio, it was more for the fun :-)21:43
vengfulsquirrelcedk: oh, if i get a cursor and don't close it over and over will they hold connections to the database open?21:43
cedkvengfulsquirrel: yes until the garbage collector will delete the cursor21:44
vengfulsquirrelcedk: Okay awesome, thanks for your help.21:45
vengfulsquirrelbbl21:45

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