IRC logs of #tryton for Saturday, 2011-07-16

chat.freenode.net #tryton log beginning Sat Jul 16 00:00:02 CEST 2011
-!- saxa(~sasa@189.26.255.43) has joined #tryton00:21
-!- zodman(~zodman@foresight/developer/zodman) has joined #tryton00:37
-!- alimon(~alimon@201.158.247.118) has joined #tryton01:04
-!- ciupicri(~ciupicri@81.180.234.249) has joined #tryton02:28
-!- elbenfreund(~elbenfreu@p54B945DD.dip.t-dialin.net) has joined #tryton02:40
-!- saxa(~sasa@189.26.255.43) has joined #tryton03:35
-!- sharoon(~sharoon@2001:470:5:630:e2f8:47ff:fe22:f228) has joined #tryton04:44
-!- elbenfreund1(~elbenfreu@p54B95628.dip.t-dialin.net) has joined #tryton05:13
-!- yangoon(~mathiasb@p549F2E38.dip.t-dialin.net) has joined #tryton05:16
-!- alimon(~alimon@189.154.61.121) has joined #tryton05:44
-!- sharoon(~sharoon@c-76-109-201-37.hsd1.fl.comcast.net) has joined #tryton06:07
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:44
-!- cheche(cheche@46.25.80.67) has joined #tryton10:01
-!- pjstevns(~pjstevns@helpoort.xs4all.nl) has joined #tryton12:06
-!- pjstevns(~pjstevns@helpoort.xs4all.nl) has left #tryton12:07
-!- lem0na(~lem0na@95.87.233.210) has joined #tryton14:19
-!- blast_hardcheese(~blast_har@cpe-98-151-31-186.socal.res.rr.com) has joined #tryton14:19
-!- sharoon(~sharoon@2001:470:5:630:e2f8:47ff:fe22:f228) has joined #tryton15:15
sharooncedk: ping15:35
cedksharoon: pong15:44
sharooncedk: just going through the carrier and shipment_cost modules15:44
sharooncedk: i see that the cost is fixed to the list_price of the product15:45
cedksharoon: yes simple method15:45
sharooncedk: i dont know if i have missed something, but what would be the most preferred way to integrate it to get prices from web services of a shipping company15:45
sharooncedk: for example, we have APIs for UPS, USPS and FEDEX. We want to integrate them tightly with the carrier and shipment_cost module because it does quite a lot and we dont want to repeat15:46
cedksharoon: create a new cost method15:46
sharooncedk: ok15:46
sharooncedk: implement _get_carrier_context to have the values we need for such computation and implement the remaining logic in get_sale_price ?15:48
sharooncedk: also what is the use of the sale_shipment_cost_method ? it doesnt seem to be used anywhere15:49
-!- shalabhaggarwal(~shalabhag@110.234.18.80) has joined #tryton15:50
-!- shalabhaggarwal(~shalabhag@110.234.18.80) has left #tryton15:54
sharooncedk: also i feel that the API is limiting the shipping method to 1 per carrier ( because its a many 2 one to carrier product) and there is only a many2one to carrier from sale. So for multiple shipment methods like `express`  `standard` etc we need to create new carriers15:54
-!- shalabhaggarwal(~shalabhag@110.234.18.80) has joined #tryton15:55
-!- gremly(~gremly@200.106.218.64) has joined #tryton15:58
-!- alimon(~alimon@189.154.61.121) has joined #tryton16:07
-!- saxa(~sasa@189.26.255.43) has joined #tryton16:09
cedksharoon: yes16:14
sharooncedk: isnt that a problem ?16:15
cedksharoon: why16:15
sharooncedk: for example FedEx offer 10 different shipment methods for domestic alone and if each of the method must be defined as a new carrier ?16:16
sharooncedk: each carrier == new party!16:16
cedksharoon: no use the same party16:16
sharoonACTION checking the view of carrier16:16
sharooncedk: got it, it allows choosing the party.16:18
sharooncedk: next question is API settings. For example each API needs usernames, password credentials etc.. would the best practise be to create company specific singletons ?16:18
cedksharoon: why not16:18
cedksharoon: it depends if it depends on the company16:19
cedksharoon: it could be also a config file16:19
sharooncedk: config files is an option but does not easily allow administration from the frontend16:20
sharooncedk: perhaps a silly question: we may have separate modules for each carrier (like UPS, USPS etc), in that case we could just handle corresponding methods in the `get_sale_price` and then call the super function ? how will this be handled ? can all these methods coexist ?16:21
cedksharoon: yes16:23
sharooncedk: thanks cedk... it clarifies a lot16:23
cedksharoon: by the way, I'm thinking about redesign the configuration file of trytond16:26
cedksharoon: to allow new section for modules16:26
sharooncedk: ok, we could use configobj for that ?16:26
sharooncedk: do we need nested sections ? or just multiple sections ?16:27
cedksharoon: I don't think it is good to have no business configuration in the DB16:27
cedksharoon: don't know16:27
-!- gremly(~gremly@200.106.218.64) has joined #tryton17:01
-!- vladimirek(~vladimire@adsl-dyn-146.95-102-183.t-com.sk) has joined #tryton17:28
-!- elbenfreund(~elbenfreu@p54B95628.dip.t-dialin.net) has joined #tryton17:34
-!- gremly(~gremly@200.106.218.64) has joined #tryton18:23
-!- plantian(~ian@c-67-169-72-36.hsd1.ca.comcast.net) has joined #tryton19:16
-!- lem0na(~lem0na@95.87.233.210) has joined #tryton19:21
-!- ciupicri(~ciupicri@81.180.234.249) has joined #tryton20:30
-!- shalabhaggarwal(~shalabhag@14.98.244.239) has joined #tryton20:34
-!- shalabhaggarwal(~shalabhag@14.98.53.180) has joined #tryton20:59
-!- shalabhaggarwal(~shalabhag@14.98.159.163) has joined #tryton21:11
-!- sharoon(~sharoon@2001:470:5:630:e2f8:47ff:fe22:f228) has joined #tryton22:16
-!- dfamorato(~dfamorato@173-9-190-185-miami.txt.hfc.comcastbusiness.net) has joined #tryton22:53
-!- ciupicri(~ciupicri@81.180.234.249) has joined #tryton23:10
-!- dfamorato(~dfamorato@c-75-74-235-36.hsd1.fl.comcast.net) has joined #tryton23:40
-!- bechamel(~user@host-85-201-144-79.brutele.be) has joined #tryton23:45

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