Re: Learner looking for assistance

2014-04-15 Thread Anthony Smith
On Tuesday, 15 April 2014 18:29:27 UTC+10, Steven D'Aprano wrote: > On Mon, 14 Apr 2014 00:43:41 -0700, Anthony Smith wrote: > > > > > > > the calc_total does not return a estimated_total_weight > > > > That's because you don't tell it to. Your calc_total method multiplies by > > estimat

Re: Learner looking for assistance

2014-04-15 Thread Steven D'Aprano
On Mon, 14 Apr 2014 00:43:41 -0700, Anthony Smith wrote: > the calc_total does not return a estimated_total_weight That's because you don't tell it to. Your calc_total method multiplies by estimated_weight_hd which is not the same as estimated_total_weight. > > if add the estimated_total_weig

Re: Learner looking for assistance

2014-04-15 Thread Chris Angelico
On Tue, Apr 15, 2014 at 5:52 PM, Anthony Smith wrote: > To see what I am trying go to yambuk.no-ip.org:8000/admin > > this will allow hands on what I am what the program does > Recommendation: Take the code out of this framework and just run the scripts manually. From there, you should have an ea

Re: Learner looking for assistance

2014-04-15 Thread Anthony Smith
On Monday, 14 April 2014 17:43:41 UTC+10, Anthony Smith wrote: > Hi All > > > > I am probably doing something wrong but don't know what > > Any help would great > > > > Code below > > > > the calc_total does not return a estimated_total_weight > > > > if add the estimated_total_wei

Re: Learner looking for assistance

2014-04-14 Thread Anthony Smith
On Monday, 14 April 2014 17:43:41 UTC+10, Anthony Smith wrote: > Hi All > > > > I am probably doing something wrong but don't know what > > Any help would great > > > > Code below > > > > the calc_total does not return a estimated_total_weight > > > > if add the estimated_total_wei

Re: Learner looking for assistance

2014-04-14 Thread Ben Finney
Anthony Smith writes: > the calc_total does not return a estimated_total_weight > > if add the estimated_total_weight the rest of the code works > > I am at a lose as to why ? When it's too confusing, simplify. The code you present is fine, but is more complex than it needs to be for the sp

Learner looking for assistance

2014-04-14 Thread Anthony Smith
Hi All I am probably doing something wrong but don't know what Any help would great Code below the calc_total does not return a estimated_total_weight if add the estimated_total_weight the rest of the code works I am at a lose as to why ? def calc_total(self): amount = 0