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

chat.freenode.net #tryton log beginning Tue Jan 27 00:00:01 CET 2009
-!- vengfulsquirrel(n=ian@c-71-202-125-182.hsd1.ca.comcast.net) has left #tryton00:02
-!- yangoon1(n=mathiasb@frbg-4d02905a.pool.mediaWays.net) has joined #tryton00:05
-!- vengfulsquirrel(n=ian@c-71-202-125-182.hsd1.ca.comcast.net) has joined #tryton00:28
vengfulsquirrelCan child companies be used to model different storefronts, ie. where different sale orders are made ?00:31
cedk_vengfulsquirrel: company is for company00:32
cedkvengfulsquirrel: what do you want to handle?00:32
vengfulsquirrelHow to tell that a sale is made on our website versus an in-store sale.00:33
cedkvengfulsquirrel: for which purpose?00:34
vengfulsquirrelWell I guess for reporting, but the pricing is also different that is a little more complicated though.00:35
cedkvengfulsquirrel: so what do you want?00:35
vengfulsquirrelA way to tell which store made the sale... I can just tell by using a dummy address I guess I thought maybe there was something I was missing.00:37
cedkvengfulsquirrel: if it is just for information, just create a boolean field on the sale order00:38
-!- ikks_(n=igor@190.144.69.234) has joined #tryton00:42
vengfulsquirrelcedk: Okay I could do that, thanks.00:43
cedkvengfulsquirrel: you must understand that we don't put this kind of field because we want to have just a simple interface and so you must custom it to fit your needs00:45
cedkvengfulsquirrel: and if you need different sale_price, you must override the function get_sale_price on product.product00:46
vengfulsquirrelcedk: Oh yeah I know, but I think having multiple storefronts for a single warehouse might be kind of common, especially multiple sets of pricing.  I'm not sure if that should be within this system though.00:46
CIA-8tryton: C?dric Krier <ced@b2ck.com> default * 1493:08568555f474 trytond/trytond/osv/orm.py: Disable by default sort on One2Many fields00:46
vengfulsquirrelSo yeah maybe if I made as seperate Store entity and it had a list of StoreProducts each with the product and price then I could add Store to a Sale and override that price function and all my problems would be solved.00:48
cedkvengfulsquirrel: yes if you want to work like that00:49
cedkvengfulsquirrel: there is many way to get product price00:49
vengfulsquirrelYou mean within Tryton or just in general ?00:50
cedkvengfulsquirrel: perhaps the revert will be better, you put a one2many on product (like for supplier price)00:50
cedkvengfulsquirrel: in general, that is why we have not a default way00:50
cedkand we choose the option of writing modules to fix it00:51
vengfulsquirrelYeah that sounds fine I was just checking, I'll try to write my own module for it.00:51
cedkvengfulsquirrel: is it for you or a customer?00:52
vengfulsquirrelFor me00:53
vengfulsquirrelSorry I have another confirmation question, Inventory can only be done one location at a time, correct?00:54
cedkvengfulsquirrel: you mean in one form?00:55
vengfulsquirrelYeah like I create a draft inventory for a single location and then count them up and then confirm it.  Then I start another draft inventory for the next location, etc.00:55
vengfulsquirrelSo if I have to take inventory and I have 1000 locations I have to make 1000 draft inventories.00:55
cedkvengfulsquirrel: yes, but you are not mandatory to confirm the previous one before starting the next one00:56
cedkvengfulsquirrel: yes00:56
cedkvengfulsquirrel: but this is a lot of location00:57
vengfulsquirrelcedk: Okay thanks, I think I might need to extend that too to handle all locations that are children to a parent location.00:58
cedkvengfulsquirrel: you can not, because you must give the stock quantity for one location00:58
yangoon1vengfulsquirrel: just curious, how do you want to handle several locations at once?00:58
yangoon1vengfulsquirrel: because, if they shall get the same stock, is then there really need for different locations?00:59
cedkvengfulsquirrel: what you can do, is create an other inventory model but instead of putting the location on the model, you put it on each line00:59
vengfulsquirrelcedk: Yeah I was thinking something like this, http://laspilitas.com/s/images/area-inventories-module.jpg01:00
vengfulsquirrelIts a mockup I made with a image editor I haven't done anything to extend it yet.01:00
vengfulsquirrelyangoon1: Yeah I only would stock stuff at the leaf locations, but the parent locations would allow for inventories to be taken over an area.  I *think*.01:02
cedkvengfulsquirrel: yes, I will put warehouse on top instead of location01:03
cedkvengfulsquirrel: I don't know what is "Expired Product Dump"?01:03
vengfulsquirrelI added that for stuff that is going to be thrown away because its dead or has gone bad.01:04
cedkvengfulsquirrel: I think you must create a new model because I don't think it is possible for now to extend the default inventory one01:04
cedkvengfulsquirrel: but it is what ?01:04
vengfulsquirrelI actually already made that extension for myself, the expired product dump, its just a location I move stuff into that I am going to throw away.01:05
vengfulsquirrelLike damaged goods.01:05
cedkvengfulsquirrel: and I don't think it will be possible to make inventory on parent locations, as you said01:05
vengfulsquirrelcedk:  Yeah I don't want to do the entire warehouse though just a subset of the locations of a warehouse.01:05
vengfulsquirrelcedk: Why not ?01:05
cedkvengfulsquirrel: the warehouse will be just to filter the location that you can select on the lines01:06
vengfulsquirrelOh yeah but I want to filter the locations based on if they are child to the location on the inventory or not.01:06
cedkvengfulsquirrel: because stock quantity is based on move, so you must create moves from a location to an other.01:06
vengfulsquirrelyeah but as long as the moves are between leaf locations that is okay right ?01:06
cedkvengfulsquirrel: yes but you can not make it from a parent location if your parent location can not have products01:07
cedkvengfulsquirrel: by the way, we will add an new type of location (view) like for account01:08
vengfulsquirrelyeah I don't want the move to be from or to the parent location I just want the parent location to filter out which locations can be placed on a line in the inventory and which locations are filled into the lines when clicking on Complete01:08
cedkvengfulsquirrel: that will prevent to create moves on it01:08
cedkvengfulsquirrel: ok, so it will be simplier with the type "view"01:09
vengfulsquirrelYeah that sounds good01:09
vengfulsquirrelI'd have actually more like this B(View) - Row 1(View) - Position Top(Storage)01:10
CIA-8tryton: C?dric Krier <ced@b2ck.com> default * 445:103d5ac31889 stock/TODO: Add todo01:10
cedkvengfulsquirrel: yes01:11
cedkvengfulsquirrel: by the way, I think I will try to create skelette of the models needed for production01:12
cedkI will try for this week01:12
cedklike that we will have somethings to talk01:12
vengfulsquirrelOkay you mean the file structure and stuff or the actual database model ?01:13
vengfulsquirrelI updated and uploaded new diagrams this weekend.01:13
vengfulsquirrelI don't know when you last checked it out.01:14
cedkvengfulsquirrel: the Tryton models01:14
cedkvengfulsquirrel: yes, but I think there is some stuff that we don't understand each others01:15
cedkabout the configurable BOM and the phantom BOM01:15
cedkbut I think it will be more clear with some Tryton models01:16
cedkso I go to sleep01:17
cedkbye01:17
yangoon1vengfulsquirrel: nice shop, that you have!01:18
vengfulsquirrelyangoon1: Oh the online shop ?01:19
yangoon1vengfulsquirrel: is it based on ezpublish?01:19
yangoon1vengfulsquirrel: yes01:19
vengfulsquirrelyangoon1: Well the cart is actually some semi-free offsite cart.  The actual /shop stuff I wrote using pylons.01:19
yangoon1vengfulsquirrel: I think the real shop is much better, of course...;)01:20
yangoon1vengfulsquirrel: ok, since on the long term I need an ecommerce solution, too, for tryton01:21
yangoon1vengfulsquirrel: and I am just looking around, what other people are using01:22
vengfulsquirrelyangoon1: Yeah I don't know, ha I'm right behind you in that area01:22
vengfulsquirrelOur offsite cart isn't that easy to integrate with but it works most of the time01:23
yangoon1vengfulsquirrel: there exist already different connectors for different shops for openerp01:23
vengfulsquirrelI'd like something that had an actual API01:23
vengfulsquirrellike google checkout but without all the work01:23
vengfulsquirrelyangoon1: Oh yeah I'm actually trying to get my orders to go into tryton from my shop01:24
vengfulsquirrelSomething isn't working but i think its because I'm a n00b.01:25
yangoon1vengfulsquirrel: you are certainly not a n00b;)01:25
vengfulsquirrelyangoon1: Products, inventory and pricing goes out and sales come in right ? How much is there really to connect?01:25
vengfulsquirrelyangoon1: Well with tryton code I'm pretty new.01:26
yangoon1vengfulsquirrel: categories, tax stuff01:26
yangoon1vengfulsquirrel: depends, if you are delivering to other countries01:27
yangoon1vengfulsquirrel: I cannot order in your shop, because I am not in one of your time zones;)01:29
vengfulsquirrelha yeah we can't ship live plants outside the US01:29
vengfulsquirrelthere are so many rules01:29
vengfulsquirrelactually a bunch of states in the US we no longer ship to either01:29
yangoon1of course, just joking01:29
vengfulsquirrelha ughh yeah there are so many details with live plants that are a pain01:30
vengfulsquirrelI wish we sold rocks01:30
yangoon1but I would like to have some of your plants in my garden01:30
vengfulsquirrelha yeah, where is your garden located?01:31
yangoon1but probably too cold over here for Californian plants01:31
yangoon1South Germany01:31
vengfulsquirrelOh yeah how cold does it get and for how long ?01:31
yangoon1Thinleaf alder  could do it, perhaps01:32
vengfulsquirrelYeah California actually is very diverse climate-wise.01:33
yangoon1this winter we had for almost a week between -10 and -15°, up to -20°01:33
yangoon1but this was the one of the coldest winters, since they are archiving01:34
vengfulsquirrelWow ha yeah maybe if you get each plant a jacket01:34
yangoon1so usually (now) we have between -5 and +5°01:35
vengfulsquirrelOh wait Farenheit or Celsius ?01:36
yangoon1Celsius01:36
vengfulsquirrelohhh01:36
vengfulsquirrelSorry I was brought up using the less common Fahrenheit system.01:37
yangoon1yes, but if a plant is growing in Alaska or N. California, it also should grow over here01:37
vengfulsquirrelYeah actually our main nursery was between 25 and 30 farenheight for a while which is below 0 celsius i think01:38
vengfulsquirrelThe plants don't like that though at all so we have to keep a bunch of them in green houses.01:38
vengfulsquirrelWhich is why we have so many locations, ha.01:39
yangoon1The cold one is San Diego?01:40
vengfulsquirrelNo the cold one is in Santa Margarita01:41
vengfulsquirrelbuts its not actually in that town01:41
yangoon1ah ok, my deep knowledge of California;)01:42
vengfulsquirrelha yeah its a crazy place, I'm gotta start making modules, extend extend extend!01:44
yangoon1yeah, good luck01:45
-!- yangoon1(n=mathiasb@frbg-4d028533.pool.mediaWays.net) has joined #tryton02:30
-!- ikks(i=igor@190.102.211.200) has joined #tryton02:49
-!- gremly(n=oscar@190.156.160.110) has joined #tryton03:12
-!- yangoon1(n=mathiasb@frbg-4d028533.pool.mediaWays.net) has joined #tryton03:32
-!- vengfulsquirrel(n=ian@c-71-202-125-182.hsd1.ca.comcast.net) has joined #tryton04:10
vengfulsquirrelX0d_of_N0d: Hey04:11
-!- yangoon1(n=mathiasb@frbg-4d028533.pool.mediaWays.net) has joined #tryton04:53
-!- yangoon(n=mathiasb@p549F46A6.dip.t-dialin.net) has joined #tryton05:20
-!- johbo(n=joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton06:09
-!- johbo(n=joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton06:09
-!- Timitos(n=Timitos@88.217.184.172) has joined #tryton06:10
-!- CIA-21(n=CIA@208.69.182.149) has joined #tryton06:10
-!- johbo(n=joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton06:11
-!- johbo(n=joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton06:12
-!- yangoon(n=mathiasb@p549F46A6.dip.t-dialin.net) has joined #tryton06:12
-!- vengfulsquirrel(n=ian@c-71-202-125-182.hsd1.ca.comcast.net) has joined #tryton06:13
-!- irclog(n=irclog@tycho.b2ck.com) has joined #tryton06:17
-!- saxa(i=1000@host242-95-static.223-217-b.business.telecomitalia.it) has joined #tryton06:19
-!- udono(n=udono@dynamic-unidsl-85-197-24-127.westend.de) has joined #tryton06:21
-!- vengfulsquirrel(n=ian@c-71-202-125-182.hsd1.ca.comcast.net) has joined #tryton06:22
-!- johbo(n=joh@85.16.72.173) has joined #tryton06:25
-!- irclog(n=irclog@tycho.b2ck.com) has joined #tryton06:27
-!- vengfulsquirrel(n=ian@c-71-202-125-182.hsd1.ca.comcast.net) has joined #tryton06:28
-!- udono(n=udono@dynamic-unidsl-85-197-24-127.westend.de) has joined #tryton06:29
-!- nicoe(n=nicoe@ip-80-236-216-4.dsl.scarlet.be) has joined #tryton06:30
-!- ChanServ(ChanServ@services.) has joined #tryton06:31
-!- yangoon(n=mathiasb@p549F46A6.dip.t-dialin.net) has joined #tryton06:31
-!- vengfulsquirrel(n=ian@c-71-202-125-182.hsd1.ca.comcast.net) has left #tryton06:31
-!- johbo(n=joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton06:32
-!- CIA-10(n=CIA@208.69.182.149) has joined #tryton06:33
-!- Timitos(n=Timitos@88.217.184.172) has joined #tryton06:33
-!- panthera(n=daniel@unable-to-package.org) has joined #tryton06:42
-!- saxa(i=1000@host242-95-static.223-217-b.business.telecomitalia.it) has joined #tryton06:44
-!- bechamel(n=user@85.201.86.139) has joined #tryton07:09
-!- Timitos(n=Timitos@88.217.184.172) has joined #tryton07:25
-!- sharkcz(n=dan@plz1-v-4-17.static.adsl.vol.cz) has joined #tryton07:47
-!- vengfulsquirrel(n=ian@c-71-202-125-182.hsd1.ca.comcast.net) has joined #tryton08:11
-!- Gedd(n=ged@ip-80-236-216-4.dsl.scarlet.be) has joined #tryton09:39
-!- ikks(i=igor@190.102.221.184) has joined #tryton10:07
-!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton10:46
-!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton11:32
vengfulsquirrelIs there a way to remove something from _sql_constraints from a seperate module?11:38
cedkvengfulsquirrel: no and you must not do it because it will breaks the logical11:39
cedkvengfulsquirrel: which constraint do you want to remove?11:43
vengfulsquirrelcedk: Well its just my own module, its not for the production thing, I was trying to remove the inventory_product_uniq constraint which I think is added in the stock module.11:44
cedkvengfulsquirrel: but as I told you, I don't think you can customize it to work like you want11:45
cedkthe best is to create a new inventory model11:46
cedkwith a different name of course11:46
vengfulsquirrelYeah maybe I don't understand the repercussions, it seems to almost work minus that constraint.11:47
vengfulsquirrelIs there a way to inherit some of the logic of the inventory model without having to rewrite the entire thing ?11:48
cedkI don't think11:50
cedkbut I think it will be better to start from scratch because it is a different purpose11:50
cedkwhat about just one line for an inventory ?11:50
cedkinstead of a form11:50
vengfulsquirrelWhat do you mean ?11:51
cedkvengfulsquirrel: instead of having a form with lines, just have lines11:52
vengfulsquirrelI need that complete functionality though as well as a lot of special things in the form.11:52
cedkvengfulsquirrel: so ok go with a form11:55
cedkvengfulsquirrel: perhaps the best will be to integrate this change in the base module11:56
vengfulsquirrelWill there be any other changes with the addition of the location type "view"?12:05
cedkvengfulsquirrel: with the "view" type, we will need to add some domains12:06
cedkbut I think it will be possible to mix the two cases12:06
cedkthe simple with just one location for one inventory12:07
cedkand the complex with location on inventory lines12:07
vengfulsquirrelYeah do you think storage locations will no longer be allowed to have children ?  Yeah I just repeat the one location on each line, but I only allow that to be done for locations with no children.12:10
cedkvengfulsquirrel: no, I don't see that it must be a constraint, it is more a design of location12:11
cedkwe must put constraint only because we need it to ensure the good run of the algorithm12:12
cedkbut we must not put constraint just to force a kind of use12:12
vengfulsquirrelYeah okay that makes sense.12:13
vengfulsquirrelOkay so I could use that complex version then and the view type to do mostly what I wanted.12:21
vengfulsquirrelI'm going to sleep though thanks for the help.12:24
-!- cedk_(n=ced@88.197.225.23) has joined #tryton13:52
-!- paola(n=paola@host-84-223-76-210.cust-adsl.tiscali.it) has joined #tryton14:01
-!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton14:10
-!- ikks_(n=igor@190.144.69.234) has joined #tryton14:18
-!- igor__(n=igor@201.244.188.98) has joined #tryton14:51
-!- tekknokrat(n=gthieleb@dslb-088-074-156-219.pools.arcor-ip.net) has joined #tryton15:06
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 446:56050efef132 stock/packing.py: Fix warehouse default value: use list instead of string for domain.15:16
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 447:b641ef7052d0 stock/move.py: Fix typo15:16
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 448:8c9ce4ba3a44 stock/packing.py: Picking In: Improve error message, remove unused messages.15:16
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 449:faa57b5da611 stock/packing.py: Guidelines15:16
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 450:78b0025fbded stock/packing.py: Fix on_change: clean location and address when custome/supplier is unset.15:16
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 451:fa759e47f0cd stock/packing.py: Fix: use sequence on inventory packing creation.15:16
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 452:e327d105e837 stock/ (move.py packing.py packing.xml): Added supplier/customer return packings15:16
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 453:c06e3b390a5a stock/: merge15:17
-!- carlos(n=carlos@89.7.24.44) has joined #tryton16:09
-!- evernichon(n=evernich@AToulouse-256-1-13-181.w90-38.abo.wanadoo.fr) has joined #tryton16:11
-!- cedric_b(n=cedric@ANantes-158-1-51-93.w86-195.abo.wanadoo.fr) has joined #tryton16:46
-!- mrcast(n=mrcast@host202-74-dynamic.40-79-r.retail.telecomitalia.it) has joined #tryton16:55
-!- mrcast(n=mrcast@host202-74-dynamic.40-79-r.retail.telecomitalia.it) has left #tryton16:56
udonohi all17:11
-!- ikks_(n=igor@190.144.69.234) has joined #tryton17:11
-!- ChanServ changed mode/#tryton -> +o cedk17:12
udonobechamel: what was the magic for showing the mixed 0ne2many and many2many widget? I have created a many2many field and in the xml I define it as a tree like a one2many, but this doesn't work.17:13
udonobechamel: is there a need to use a fields.function like in inventory management > supplier packings > tab incoming moves?17:14
bechameludono: the add_remove keyword on the one2many17:14
udonobechamel: ok, thanks17:15
bechameludono: end no need for the function17:15
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 454:f1cd99d6d010 stock/ (packing.py packing.xml): Removed unused customer location on customer packing17:34
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 455:2f42abf3f8bb stock/packing.py: Make readonly behaviour more consitent for packings17:34
udonobechamel: thanks, It works fine.17:40
bechameludono: great17:40
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 1494:6a2fa902f06d trytond/trytond/sql_db.py: Added drop_column method on table_handler class18:15
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 456:68d1b209f634 stock/packing.py: Use bool to evaluate fields on readonly condition18:15
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 457:adfd15c43b98 stock/packing.py: Added migration code for customer_location deletion18:15
-!- vengfulsquirrel(n=ian@c-71-202-125-182.hsd1.ca.comcast.net) has joined #tryton19:19
-!- paola(n=paola@host-84-223-76-210.cust-adsl.tiscali.it) has joined #tryton19:26
pantherathe currency module lacks COPYING in the tarball (1.0.0 and 1.0.1 that is);19:31
pantheracould someone please upload a new tarball that contains a COPYING file?19:31
cedkpanthera: there is no COPYING file19:33
pantherahm?19:34
pantherai know that there's no COPYING file, that's what i would like you to fix.19:34
cedkpanthera: ok, I understand, it is COPYRIGHT file19:37
pantheraoh19:37
pantherai'm sorry.19:37
pantheraCOPYRIGHT it is then.19:37
pantherai've uploaded all tryton-* packages, except tryton-server (whcih i'll do tonight) to NEW.19:38
pantherawill take 1 to 4 weeks until ftpmaster review licensing on it.19:38
pantherain the meanwhile, packages are available at http://daniel.debian.net/packages/19:39
cedkpanthera: I will fix for the next release the currency module19:40
pantheracedk: thanks. is there an ETA for this?19:43
cedkpanthera: not yet19:43
pantheracedk: i can't upload it until that's done.19:44
cedkpanthera: but I see that you have patch it with the copyright19:44
pantheracedk: we have to dublicate copyright information in debian/copyright in each package.19:45
pantheracedk: currency module has the one from my tryton 'template'19:46
pantheraso may not be accurate.19:46
pantherathe problem with missing currency module is, that a couple of other modules are not installable because they are depending on it.19:46
cedkpanthera: you can fetch it from the mercurial repository19:46
pantherawhich in turns makes tryton as a whole not installable. which in turns either makes acceptance of tryton much delayed, or rejected.19:47
pantheraand second review takes ages if the first one was rejected.19:47
pantheraok, i'll check.19:47
-!- enlightx(n=enlightx@host-84-221-85-222.cust-adsl.tiscali.it) has joined #tryton19:48
pantheracedk: that would be here: http://hg.tryton.org/hgwebdir.cgi/modules/currency/ no?19:49
cedkpanthera: http://hg.tryton.org/hgwebdir.cgi/1.0/modules/country/file/382111d77b6e/COPYRIGHT19:50
cedkpanthera: http://hg.tryton.org/hgwebdir.cgi/1.0/modules/country/file/382111d77b6e/LICENSE19:50
cedkI can make a new release for this module but the only change will be the two missing files19:51
pantheracedk: you don't need to release it just for me,19:51
pantherabut i would need to be able to point at it in hg19:51
pantheraso if you could make a commit that adds those two files, that's perfect for me.19:51
cedkpanthera: there are in mercurial repo19:52
cedkpanthera: there was only missing in the tar19:53
pantheraah, ok. perfect then. thanks for the patience with me.19:53
pantherafor those who want to use the .deb packages until they hit sid: deb http://daniel.debian.net/repositories/tryton/ ./19:57
cedkpanthera: perhaps you can post it on the google groups19:58
-!- X0d_of_N0d(n=syn@damnation.neg9.org) has joined #tryton19:58
pantheracedk: i will19:58
X0d_of_N0dACTION waves to udono 19:59
panthera(when finished tryton-server package, though)20:00
udonoACTION waves to X0d_of_N0d20:07
X0d_of_N0dudono: so I've been playing with it a bit more but I'm doing something wrong20:12
udonoX0d_of_N0d: Just check out the ldap module. Some problems I could solve...20:12
X0d_of_N0dI didn't check in the changes I made yesterday20:12
vengfulsquirrelcedk: Is someone working on that complex inventory model or should I try to submit something ?20:12
X0d_of_N0dudono: I added the many2many relation, but I can't seem to do anything with it20:13
X0d_of_N0dlemme check in my changes really quick20:14
udonoX0d_of_N0d: Take a look to my last changeset...20:14
X0d_of_N0dok20:14
-!- juanfer(n=juanfer@190.144.69.234) has joined #tryton20:16
X0d_of_N0dthe name should be dropped20:21
X0d_of_N0dhostname is the name, so we don't need name20:21
X0d_of_N0dudono: name on server... I guess name on resource makes some sense20:23
udonoX0d_of_N0d: you mean dropping the name on server?20:28
X0d_of_N0dyeah20:28
X0d_of_N0dname is just an identifier, but hostname already does that20:28
udonoX0d_of_N0d: But what if the host provides more than one LDAP connections?20:29
udonoX0d_of_N0d: ... on different ports...20:29
udonoX0d_of_N0d: Maybe we can use <host>:<port> as name which is filled automatically on_change host, port...20:30
X0d_of_N0dhum...20:31
X0d_of_N0dthe selection area shows host and port20:32
X0d_of_N0dthe only other option is bind20:33
udonoselection area?20:34
X0d_of_N0din resource20:34
udonoX0d_of_N0d: localhost:389 is a unique name. There can not be another service with this name. But 'localhost' alone is not unique, because there can be different ldap services on this address on different ports...20:36
X0d_of_N0dudono: but the id is a unique identifier20:37
X0d_of_N0dso we don't need to create our own unqiue identifier20:38
X0d_of_N0dand id is automatically generated20:38
X0d_of_N0dcorrect?20:38
udonoX0d_of_N0d: Id is generated everytime everywhere in tryton afaik20:39
X0d_of_N0dso we don't need a unique name because id is already unique. All we need is some way for the user to know what server they're choosing...20:40
udonoX0d_of_N0d: but there is no sense to habe two equal named server connections with different preferences... isn't it?20:40
udonos/habe/have/20:40
X0d_of_N0dthere could be multiple bind dns...20:41
X0d_of_N0dI suppose20:41
udonoX0d_of_N0d: hmm20:41
udonoX0d_of_N0d: But then we must use a name field because the user cannot dinstinct the different connections...20:42
udonoor what do you think?20:42
X0d_of_N0dwell...20:45
X0d_of_N0dwhen I go to add a server to a resource with the + button I get a list of name, host, port... if we made that host, port, bind dn20:46
X0d_of_N0dthen the user could just select that20:47
udonoX0d_of_N0d: what is bind dn?20:52
X0d_of_N0d"admin dn"20:53
X0d_of_N0dshould be "bind dn"20:53
X0d_of_N0dbecause you can bind to the server with a dn that isn't the admin dn20:53
udonoX0d_of_N0d: ah ok. But another time the question: Is it usefull to have the server definitions NOT unique?20:54
X0d_of_N0dyou mean multiple server definitions that share all the same values?20:58
X0d_of_N0dor just share some values?20:58
udonoX0d_of_N0d: multiple server definitions that share all the same values20:58
X0d_of_N0dthere would be no value in that20:58
X0d_of_N0dbut I could see a potential value in having server definitions that only differ in host, port, timeout, or bind dn21:01
udonoX0d_of_N0d: But its ok for me, when we remove the name attribute from server... we can put it there again later when needed...21:07
cedkvengfulsquirrel: nobody works for now on this21:08
X0d_of_N0dudono: sounds good21:08
udonoX0d_of_N0d: so we use host as identification?21:09
X0d_of_N0dcan't we use _rec_name21:10
X0d_of_N0dlike _rec_name="host"21:10
udonoX0d_of_N0d: Yes, this we need to use21:10
udonoX0d_of_N0d: who change and push?21:11
X0d_of_N0dI'll change it21:12
X0d_of_N0dactually... I've got to take care of a client21:12
X0d_of_N0dcan you fix it?21:13
udonook21:13
-!- bechamel`(n=user@85.201.86.139) has joined #tryton21:15
-!- sharkcz(n=dan@plz1-v-4-17.static.adsl.vol.cz) has joined #tryton21:24
udonoX0d_of_N0d: It seems that we need a name attribute... because the resource record will not be saved without a name attribute. _rec_name doesn't help...21:27
X0d_of_N0dudono: I was able to do it on mine21:39
X0d_of_N0dudono: did you reload your db?21:39
X0d_of_N0dACTION looks at it21:44
udonoX0d_of_N0d: yes, I updated and reload the database...21:46
udonoX0d_of_N0d: I try it again with a new database...21:49
X0d_of_N0dudono: I made some changes and was able to save a server record21:56
-!- snowch(n=snowch@82.152.13.57) has joined #tryton22:04
-!- snowch(n=snowch@82.152.13.57) has left #tryton22:13
udonoX0d_of_N0d: then just push yours22:16
udonoX0d_of_N0d: BTW the server record is not the problem on my side,  but the resource record is a problem22:18
udonoX0d_of_N0d: ok, I've got it22:27
X0d_of_N0dudono: what did you have to change to fix the resource record?22:51
udonoX0d_of_N0d: http://mercurial.intuxication.org/hg/ldap/rev/9106c89164bf#l8 and line 3422:53
udonoits the 'rule': No one2Many without a Many2One... http://www.tryton.org/doc/branches/1.0/trytond/doc/models.html#fields-types22:55
yangoon panthera: thx for the packages! installing and running like a charm!23:01
X0d_of_N0dudono: cool23:03
yangoonpanthera: btw: can you give me a hint: just wondering, why *.py files under  /usr/share/python-support are not compiled, while those under /usr/lib/python2.5 are compiled23:04
pantherayangoon: when using python-support, it should take care about the compilation itself at installation time23:05
pantherayangoon: for the matching python versions.23:05
pantheraif it doesn't do that automatically in your system, then there is either a bug in python-support, or in my packaging23:06
pantherai think the probability is higher for the latter :)23:06
yangoonpanthera: I don't think so, because other packages there are not compiled as well23:06
pantherahmm, that's strange then. will have to look at it then.23:07
yangoon/python-httplib2 │/python-pygments  /python-gtk2  for example23:08
yangoonnot a single file compiled there, all under /usr/share/python-support23:09
pantherathat's easy to find out.. mom23:10
pantherahmm, it appears that one needs to use python-central for what i've described above23:12
pantherayangoon: well, naturally those in /usr/share/ are not compiled, but whatever is in there should be23:12
pantherayangoon: available compiled in /usr/lib/python2.*/site-packages23:12
pantherapython-support or python-central does that. it stores *.py somewhere in /usr/share, and bitecompiles on package installation time into /usr/lib/python2.*/site-packages.23:13
pantherawill have a look for the next upload round.23:14
X0d_of_N0dudono: why is there a seperate "Server" and "New Server" view?23:15
udonoX0d_of_N0d: good question...23:15
udonoX0d_of_N0d: usually we use the list view as heading and the New resource as sub title...23:16
udonoTake a look at party23:16
udonomenu23:17
pantherayangoon: checked; pysupport should do it as well, but didn't do it automatically.23:17
pantherayangoon: so will have to adjust the pysupport call in rules, and that will be all.23:17
X0d_of_N0dright but "party" and "new party" lead to different views of the same interface23:18
X0d_of_N0dudono: "Server" and "New Server" seem to lead to different interfaces23:19
udonoX0d_of_N0d: Oh, yes23:20
udonoX0d_of_N0d: You are right, it is a b-tree view23:20
udonoX0d_of_N0d: but we need just a list view23:20
udonoX0d_of_N0d: I check this23:21
X0d_of_N0dudono: cool23:21
yangoonpanthera: hm, can't find so far any package under /usr/share/python-support, that compiles to usr/lib/python2.*/site-packages23:22
X0d_of_N0dudono: you mind if change the fields "resource" displays?23:26
X0d_of_N0dudono: oh, I'd like to remove "Active" from server because there's an "Active" on resource and if someone wants to make a server inactive they can just remove it from the resrouce23:28
pantherayangoon: but they should, see /usr/share/doc/python-support/README23:28
yangoonpanthera: just reading it23:29
udonoX0d_of_N0d: Yes, you can do it, if you like. But don't forget to pull http://mercurial.intuxication.org/hg/ldap/rev/6098c5dbcdfc23:32
udonobefore23:32
X0d_of_N0dcool23:33
yangoonpanthera: lets do an example, that we have both: mercurial-common23:34
yangoonpanthera: it has  .version and should compile for python 2.423:34
yangoonpanthera: I cannot find anything of mercurial-common in  /usr/lib/python2.4/site-packages23:35
yangoonpanthera: do you have?23:35
pantherai don't have mercurial installed :)23:35
yangoon:D23:35
yangoonpanthera: you should have python-gtk2?23:36
pantherajup23:37
pantherabut no pyc for it. strange.23:37
yangoonexactly23:38
yangoon'/usr/share/python-support/python-gtk2/gtk-2.0/gtkkeysyms.py' in no place compiled23:39
yangoonpanthera: and compiling works for thoase packages pointed to by /usr/share/python-support/*.dirs files23:40
yangoonpanthera: hard to believe, that all those packages are wrong configured23:41
yangoonpanthera: looks like a bug23:41
pantherayangoon: yeah, but according to what's written in the readme, the .dirs has not to be created manually.23:42
pantheraa very big bug indeed.23:42
panthera.oO(massbugfilling in the last week before lenny release, yay!)23:42
yangoonpanthera: I don't find the differentiation of private and public modules in the README23:42
yangoonpanthera: oh yeah, just before the release, great23:43
yangoonpanthera: stop, I found it23:46
yangoonpanthera: those packages in *.dirs are private and kept under /usr/share/somepackage23:47
yangoonpanthera: all other packages are public and compiled to  /var/lib/python-support/python2.5/ !23:47
pantheratsk23:48
yangoonpanthera: so no bug, seems to work...23:49
pantherathat's creepy. it used to be in /usr/lib/python2.*23:49
yangoontsk?23:49
pantheranat /var/lib/p-s/23:49
pantheras/nat/not/23:49
yangoonyes, little bit strange, don't understand the policy, too23:49
udonoX0d_of_N0d: should I remove active from server?23:50
udonoa_ctive23:50
X0d_of_N0dI'll get it23:51
udonoX0d_of_N0d: ok23:51
X0d_of_N0dlemme just test it out really quick and i'll push it back23:52
udonoX0d_of_N0d: yes, np23:52

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