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

chat.freenode.net #tryton log beginning Sat Jul 16 00:00:02 CEST 2011
2011-07-16 00:21 -!- saxa(~sasa@189.26.255.43) has joined #tryton
2011-07-16 00:37 -!- zodman(~zodman@foresight/developer/zodman) has joined #tryton
2011-07-16 01:04 -!- alimon(~alimon@201.158.247.118) has joined #tryton
2011-07-16 02:28 -!- ciupicri(~ciupicri@81.180.234.249) has joined #tryton
2011-07-16 02:40 -!- elbenfreund(~elbenfreu@p54B945DD.dip.t-dialin.net) has joined #tryton
2011-07-16 03:35 -!- saxa(~sasa@189.26.255.43) has joined #tryton
2011-07-16 04:44 -!- sharoon(~sharoon@2001:470:5:630:e2f8:47ff:fe22:f228) has joined #tryton
2011-07-16 05:13 -!- elbenfreund1(~elbenfreu@p54B95628.dip.t-dialin.net) has joined #tryton
2011-07-16 05:16 -!- yangoon(~mathiasb@p549F2E38.dip.t-dialin.net) has joined #tryton
2011-07-16 05:44 -!- alimon(~alimon@189.154.61.121) has joined #tryton
2011-07-16 06:07 -!- sharoon(~sharoon@c-76-109-201-37.hsd1.fl.comcast.net) has joined #tryton
2011-07-16 09:44 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2011-07-16 10:01 -!- cheche(cheche@46.25.80.67) has joined #tryton
2011-07-16 12:06 -!- pjstevns(~pjstevns@helpoort.xs4all.nl) has joined #tryton
2011-07-16 12:07 -!- pjstevns(~pjstevns@helpoort.xs4all.nl) has left #tryton
2011-07-16 14:19 -!- lem0na(~lem0na@95.87.233.210) has joined #tryton
2011-07-16 14:19 -!- blast_hardcheese(~blast_har@cpe-98-151-31-186.socal.res.rr.com) has joined #tryton
2011-07-16 15:15 -!- sharoon(~sharoon@2001:470:5:630:e2f8:47ff:fe22:f228) has joined #tryton
2011-07-16 15:35 <sharoon> cedk: ping
2011-07-16 15:44 <cedk> sharoon: pong
2011-07-16 15:44 <sharoon> cedk: just going through the carrier and shipment_cost modules
2011-07-16 15:45 <sharoon> cedk: i see that the cost is fixed to the list_price of the product
2011-07-16 15:45 <cedk> sharoon: yes simple method
2011-07-16 15:45 <sharoon> cedk: 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 company
2011-07-16 15:46 <sharoon> cedk: 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 repeat
2011-07-16 15:46 <cedk> sharoon: create a new cost method
2011-07-16 15:46 <sharoon> cedk: ok
2011-07-16 15:48 <sharoon> cedk: implement _get_carrier_context to have the values we need for such computation and implement the remaining logic in get_sale_price ?
2011-07-16 15:49 <sharoon> cedk: also what is the use of the sale_shipment_cost_method ? it doesnt seem to be used anywhere
2011-07-16 15:50 -!- shalabhaggarwal(~shalabhag@110.234.18.80) has joined #tryton
2011-07-16 15:54 -!- shalabhaggarwal(~shalabhag@110.234.18.80) has left #tryton
2011-07-16 15:54 <sharoon> cedk: 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 carriers
2011-07-16 15:55 -!- shalabhaggarwal(~shalabhag@110.234.18.80) has joined #tryton
2011-07-16 15:58 -!- gremly(~gremly@200.106.218.64) has joined #tryton
2011-07-16 16:07 -!- alimon(~alimon@189.154.61.121) has joined #tryton
2011-07-16 16:09 -!- saxa(~sasa@189.26.255.43) has joined #tryton
2011-07-16 16:14 <cedk> sharoon: yes
2011-07-16 16:15 <sharoon> cedk: isnt that a problem ?
2011-07-16 16:15 <cedk> sharoon: why
2011-07-16 16:16 <sharoon> cedk: for example FedEx offer 10 different shipment methods for domestic alone and if each of the method must be defined as a new carrier ?
2011-07-16 16:16 <sharoon> cedk: each carrier == new party!
2011-07-16 16:16 <cedk> sharoon: no use the same party
2011-07-16 16:16 <sharoon> ACTION checking the view of carrier
2011-07-16 16:18 <sharoon> cedk: got it, it allows choosing the party.
2011-07-16 16:18 <sharoon> cedk: next question is API settings. For example each API needs usernames, password credentials etc.. would the best practise be to create company specific singletons ?
2011-07-16 16:18 <cedk> sharoon: why not
2011-07-16 16:19 <cedk> sharoon: it depends if it depends on the company
2011-07-16 16:19 <cedk> sharoon: it could be also a config file
2011-07-16 16:20 <sharoon> cedk: config files is an option but does not easily allow administration from the frontend
2011-07-16 16:21 <sharoon> cedk: 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 ?
2011-07-16 16:23 <cedk> sharoon: yes
2011-07-16 16:23 <sharoon> cedk: thanks cedk... it clarifies a lot
2011-07-16 16:26 <cedk> sharoon: by the way, I'm thinking about redesign the configuration file of trytond
2011-07-16 16:26 <cedk> sharoon: to allow new section for modules
2011-07-16 16:26 <sharoon> cedk: ok, we could use configobj for that ?
2011-07-16 16:27 <sharoon> cedk: do we need nested sections ? or just multiple sections ?
2011-07-16 16:27 <cedk> sharoon: I don't think it is good to have no business configuration in the DB
2011-07-16 16:27 <cedk> sharoon: don't know
2011-07-16 17:01 -!- gremly(~gremly@200.106.218.64) has joined #tryton
2011-07-16 17:28 -!- vladimirek(~vladimire@adsl-dyn-146.95-102-183.t-com.sk) has joined #tryton
2011-07-16 17:34 -!- elbenfreund(~elbenfreu@p54B95628.dip.t-dialin.net) has joined #tryton
2011-07-16 18:23 -!- gremly(~gremly@200.106.218.64) has joined #tryton
2011-07-16 19:16 -!- plantian(~ian@c-67-169-72-36.hsd1.ca.comcast.net) has joined #tryton
2011-07-16 19:21 -!- lem0na(~lem0na@95.87.233.210) has joined #tryton
2011-07-16 20:30 -!- ciupicri(~ciupicri@81.180.234.249) has joined #tryton
2011-07-16 20:34 -!- shalabhaggarwal(~shalabhag@14.98.244.239) has joined #tryton
2011-07-16 20:59 -!- shalabhaggarwal(~shalabhag@14.98.53.180) has joined #tryton
2011-07-16 21:11 -!- shalabhaggarwal(~shalabhag@14.98.159.163) has joined #tryton
2011-07-16 22:16 -!- sharoon(~sharoon@2001:470:5:630:e2f8:47ff:fe22:f228) has joined #tryton
2011-07-16 22:53 -!- dfamorato(~dfamorato@173-9-190-185-miami.txt.hfc.comcastbusiness.net) has joined #tryton
2011-07-16 23:10 -!- ciupicri(~ciupicri@81.180.234.249) has joined #tryton
2011-07-16 23:40 -!- dfamorato(~dfamorato@c-75-74-235-36.hsd1.fl.comcast.net) has joined #tryton
2011-07-16 23:45 -!- bechamel(~user@host-85-201-144-79.brutele.be) has joined #tryton

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!