IRC logs of #tryton for Tuesday, 2009-06-30

chat.freenode.net #tryton log beginning Tue Jun 30 00:00:02 CEST 2009
-!- ikks(n=ikks@190.102.221.188) has joined #tryton00:21
-!- vengfulsquirrel(n=ian@c-69-181-194-95.hsd1.ca.comcast.net) has joined #tryton00:34
-!- bechamel(n=user@host-85-201-74-27.brutele.be) has left #tryton00:37
-!- CIA-68(n=CIA@208.69.182.149) has joined #tryton00:46
-!- digitalsatori(n=tony@116.233.253.54) has joined #tryton03:01
-!- gremly(n=gremly@190.156.165.175) has joined #tryton04:18
-!- gremly(n=gremly@190.156.165.175) has joined #tryton04:32
-!- digitalsatori(n=tony@116.233.253.54) has joined #tryton04:52
-!- yangoon(n=mathiasb@p549F2FE1.dip.t-dialin.net) has joined #tryton04:56
-!- ikks_(n=ikks@186.97.7.37) has joined #tryton05:13
-!- yangoon(n=mathiasb@p549F5721.dip.t-dialin.net) has joined #tryton05:18
-!- udono(n=udono@dynamic-unidsl-85-197-25-240.westend.de) has joined #tryton06:44
-!- enlightx(n=enlightx@217.202.195.255) has joined #tryton07:55
-!- enlightx(n=enlightx@217.202.195.255) has left #tryton07:55
-!- sharkcz(n=dan@plz1-v-4-17.static.adsl.vol.cz) has joined #tryton07:58
-!- carlos(n=carlos@221.157.221.87.dynamic.jazztel.es) has joined #tryton08:25
-!- enlightx(n=enlightx@95.74.63.38) has joined #tryton08:41
-!- paepke(n=paepke@R8ef1.r.pppool.de) has joined #tryton09:12
-!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton09:27
-!- enlightx_(n=enlightx@217.202.173.226) has joined #tryton09:28
CIA-68vengfulsquirrel roundup * #1093/Improve extendibility of stock.inventory: [new] I have a few issues with the existing stock.inventory model they mostly center around making it so that the inventory model can be extended ...09:40
CIA-68http://bugs.tryton.org/roundup/issue109309:40
CIA-68ced roundup * #1093/Improve extendibility of stock.inventory: [chatting] Could you please put the patch on Rietveld as describes in http://code.google.com/p/tryton/wiki/HowtoContribute#Code_Review09:52
CIA-68http://bugs.tryton.org/roundup/issue109309:52
CIA-68vengfulsquirrel roundup * #1093/Improve extendibility of stock.inventory:10:09
CIA-68Oops missed the new rules, here you go:10:09
CIA-68http://codereview.appspot.com/9005710:09
CIA-68http://bugs.tryton.org/roundup/issue109310:09
vengfulsquirrelcedk: So as to not pollute the mailing list I'm asking you in here, if you had the time could generate this changeset for mac:  adce5f2ccb3f just for tryton not trytond ?  If I have the matching trytond code running somewhere else with extensions that won't matter right, like its going off the version.py files and not changesets or anything ?10:23
cedkvengfulsquirrel: ok10:25
cedkvengfulsquirrel: http://www.b2ck.com/~ced/tryton-adce5f2ccb3f.dmg10:45
vengfulsquirrelcedk: Got it, thanks a lot.10:52
-!- cristi_an(i=5bbf82c4@gateway/web/freenode/x-c16273980102bee4) has joined #tryton11:49
cristi_anshort poll : which on eis using mac here ,and wich one windows  or linux12:20
-!- cristi_an(i=5bbf82c4@gateway/web/freenode/x-c16273980102bee4) has left #tryton12:22
udonoACTION thinks: quick poll12:24
-!- enlightx(n=enlightx@217.202.167.98) has joined #tryton12:29
-!- sharkcz(n=dan@plz1-v-4-17.static.adsl.vol.cz) has joined #tryton12:40
-!- bechamel(n=user@host-85-201-74-27.brutele.be) has joined #tryton12:46
-!- sharkcz_(n=dan@plz1-v-4-17.static.adsl.vol.cz) has joined #tryton13:00
-!- enlightx(n=enlightx@217.202.145.130) has joined #tryton13:19
-!- cedk_(n=ced@ced.homedns.org) has joined #tryton14:06
-!- cedk_(n=ced@ced.homedns.org) has joined #tryton14:16
-!- _TiN_(n=TiN@190.189.9.80) has joined #tryton14:21
-!- carlos(n=carlos@221.157.221.87.dynamic.jazztel.es) has joined #tryton14:38
-!- enlightx(n=enlightx@217.202.162.26) has joined #tryton14:43
CIA-68Bertrand Chenal <bch@b2ck.com> default * 165:a0f95e33c274 company/doc/index.rst: Added doc14:46
CIA-68http://hg.tryton.org/modules/company/rev/a0f95e33c27414:46
CIA-68Bertrand Chenal <bch@b2ck.com> default * 2:127eba4d101b project_plan/work.xml:14:46
CIA-68Improve work view:14:46
CIA-68- put allocations in a tab14:46
CIA-68- move constraint dates on top of other dates14:46
CIA-68http://hg.tryton.org/modules/project_plan/rev/127eba4d101b14:46
CIA-68matb roundup * #1094/Content lost on log archive?:14:59
CIA-68[new] There seems to be content lost on the IRC log:14:59
CIA-68I wanted to refer to an earlier discussion, but http://www.tryton.org/~irclog/2009-04-21.l ...14:59
CIA-68http://bugs.tryton.org/roundup/issue109414:59
CIA-68matb roundup * #1095/Translation of language attributes: [new] As pointed out previously, we should find a clear differentiation between the display of language selection and language attributes of objec ...15:13
CIA-68http://bugs.tryton.org/roundup/issue109515:13
-!- woakas(n=woakas@190.144.69.234) has joined #tryton15:19
CIA-68ced roundup * #1094/Content lost on log archive?: [invalid] It happens: connection lost, client crash, etc.15:36
CIA-68http://bugs.tryton.org/roundup/issue109415:36
-!- Timitos(n=timitos@88.217.184.172) has joined #tryton16:11
-!- paepke(n=paepke@R8ef1.r.pppool.de) has joined #tryton17:08
-!- enlightx(n=enlightx@217.202.168.237) has joined #tryton17:31
-!- Timitos(n=timitos@88.217.184.172) has left #tryton17:34
-!- Timitos(n=timitos@88.217.184.172) has joined #tryton17:34
-!- vengfulsquirrel(n=ian@c-69-181-194-95.hsd1.ca.comcast.net) has joined #tryton17:50
vengfulsquirrelWhen extending a model is it possible to call the overridden method of a specific instance of that model?18:18
udonovengfulsquirrel: how do you like to specify an instance of the model? Do you have some example?18:21
vengfulsquirreludono:  Like say for example calling the method that existed in an official tryton module's model before I override it in my own module's model.  Say stock.inventory.complete_lines for example, could I override that in a module and then call the original ?  Like some kind of super() usage.18:24
udonovengfulsquirrel: yes, this work18:25
udonoACTION looking for an example18:25
carlosreturn super(Period, self).create(cursor, user, vals, context=context)18:27
carlosthat's what is used in account.py for account_invoice module18:28
carlosto override Period.create method defined in the account modules18:28
vengfulsquirreludono: Hmm okay yeah forgot about that but I guess what confuses me is how is the order of the inheritance chain determined if multiple extensions are changing the base module.  So like say there is a third extension so I have BaseModel.create, FirstExtensionToBaseModel.create, SecondExtensionToBaseModel.create, is there anyway to know what order super will resolve those?18:31
carlosvengfulsquirrel: that's a good question, and something I was wondering too :-P18:34
udonovengfulsquirrel: I don't think there is a sequence. But afaik the goal is to run thru the whole inheritance chain, and pick/change what you need.18:34
udonovengfulsquirrel: this means when you overwrite a method you need to return with super...18:35
vengfulsquirreludono:but for example what if I want to replace what the first extension did with a new method but still call to the base method ?  Like skip a step in the inheritance tree.18:36
vengfulsquirrelOr I guess I wouldn't know who was second or third anyways18:37
udonovengfulsquirrel: I don't know how to do. This maybe cedk has a solution for this.18:38
vengfulsquirrelI think I've avoided needing it so far just curious because I'm sure its going to come up.18:39
carlosyeah, I wondered the same thing when overriding the invoice report18:42
udonovengfulsquirrel: But it is in any case not easy, because you do not know about other modules which are in the super chain. You can't control what you don't know.18:42
carlosfor some reason, it works as I expect it to work, however it's not the same code, given that it's the xml code, so it doesn't mean it should work in the same way than python code inheritance18:43
carlosudono: I was wondering whether it may use the dependency definition inside __tryton__.py file18:44
carlosbut I didn't have time (yet) to check it18:45
udonocarlos: I expect the dependency tree build-up in the super chain, but do not know, too. But anyway there will be dependencies on the same level, you can not know which is first, I guess.18:48
carlosyeah18:49
cedkyes, it is the dependencies from __tryton__.py and if there is some at the same level, it must be alphabetic order18:50
-!- gremly(n=gremly@190.156.158.96) has joined #tryton18:51
vengfulsquirrelsuper resolves across the dependencies in __tryton__.py ?18:51
carlosstill, it's not reliable, given that you don't know the custom modules someone may have, so I think is better if you don't skip any super call...18:52
cedkvengfulsquirrel: no, it is the way Tryton instanciates models18:53
vengfulsquirreloh okay18:53
-!- cedric_b(n=cedric@ANantes-158-1-110-142.w86-199.abo.wanadoo.fr) has joined #tryton19:52
-!- essich(n=essich@f053112029.adsl.alicedsl.de) has joined #tryton20:08
cedkvengfulsquirrel: hi, I suppose that your patch is because you create a lot of location (one per product)?20:50
vengfulsquirrelyes but the functionality in the patch doesn't implement that specifically it just allows the core tryton module to be extended by another module that implements that20:51
vengfulsquirrelcedk:^20:51
vengfulsquirrelI don't think there will be many companies that do inventory one location at a time though.20:52
cedkvengfulsquirrel: I need to think about that. Because in Tryton location is a place on which you compute stock quantities20:53
vengfulsquirrelcedk: Yes but I use a tree of views where the root is the main storage zone and all leaves are STORAGE but all non-leaves are VIEW, so it kind of makes more sense when you think about it that way.20:54
vengfulsquirrelSo like if you had a building with storage shelves you'd take inventory usually on the entire building not each shelf.20:55
vengfulsquirrelbut you'd still want to know that the product was at a certain shelf20:56
cedkvengfulsquirrel: you must encode per location the quantities20:56
vengfulsquirrelyes so the quantities are only assigned to the leaf nodes of the tree20:56
vengfulsquirrelso like warehouse A has bin 1, the quantity is at location == A - 1 of type storage, but location A - 1 is a child of warehouse A of type view20:57
vengfulsquirrelit seems to work for me20:57
cedkvengfulsquirrel: I understand20:57
cedkvengfulsquirrel: but it is difficult to have a good design for both cases20:58
vengfulsquirrelYes but it supports both now, and the current design cannot support both.20:58
vengfulsquirrelbut yes I think the only other solution is just create a seperate module that is compeltely different20:58
cedkI don't know20:58
cedkvengfulsquirrel: we had developped a module to create all inventories21:04
cedkI find it is a simplier solution21:05
cedkwe will publish it soon21:05
vengfulsquirrelWhat do you mean all inventories?21:08
essichcedk: Hi, I'm nearly finished writing helper scripts for Windows installation download.21:12
essichcedk: What about adding a mercurial-repos 'helper-scripts' to maintain them?21:13
essichcedk: tryton-dev.sh could go there, too21:13
vengfulsquirrelcedk: gotta run, I'll talk to you about it tomorrow, thanks for looking at it21:19
udonoessich: http://hg.tryton.org/hgwebdir.cgi/tryton-dev/21:23
essichudono: IC.21:32
essichcedk: may I please have write-access to this repos?21:32
-!- bechamel(n=user@host-85-201-74-27.brutele.be) has joined #tryton22:19
-!- bechamel(n=user@host-85-201-74-27.brutele.be) has left #tryton23:29
CIA-68h.goebel@goebel-consult.de * r672 /wiki/BuildingRPMs.wiki: Renamed page23:59
CIA-68h.goebel@goebel-consult.de * r673 /wiki/TableOfContents.wiki: Edited wiki page through web user interface.23:59
CIA-68h.goebel@goebel-consult.de * r674 /wiki/BuilingRPMs.wiki: Deleting wiki page BuilingRPMs.23:59
CIA-68h.goebel@goebel-consult.de * r675 /wiki/InstallationWindows.wiki: Edited wiki page through web user interface.23:59

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