Got it working by adding float to the compute..thanks
On Tuesday, August 27, 2013 2:14:17 PM UTC-7, greenpoise wrote:
>
> I fixed the typo. No error though! I just get None as my value.
>
>
>
>
> On Tuesday, August 27, 2013 2:08:45 PM UTC-7, Anthony wrote:
>>
>> I would think you would get an
I fixed the typo. No error though! I just get None as my value.
On Tuesday, August 27, 2013 2:08:45 PM UTC-7, Anthony wrote:
>
> I would think you would get an error since both price and pricecoefficient
> appear to be strings rather than numeric types (also, pricecoefficient is
> misspelled
I fixed the typo. No error though! I just get None as my value.
On Tuesday, August 27, 2013 2:08:45 PM UTC-7, Anthony wrote:
>
> I would think you would get an error since both price and pricecoefficient
> appear to be strings rather than numeric types (also, pricecoefficient is
> misspelled
I would think you would get an error since both price and pricecoefficient
appear to be strings rather than numeric types (also, pricecoefficient is
misspelled in the table definition).
Anthony
On Tuesday, August 27, 2013 1:37:51 PM UTC-7, greenpoise wrote:
>
> I get NONE. I have these:
>
> db.
I get NONE. I have these:
db.define_table('supplier',
Field('suppliercode'),
Field('suppliername'),
Field('pricecoeficient'),
format='%(suppliercode)s')
db.define_table('product',
Field('series', 'reference series'),
Field('suppliercode','reference supplier'),
Field('price
I do not know the model but looks plausible. does it not work?
On Tuesday, 27 August 2013 13:02:08 UTC-5, greenpoise wrote:
>
> Is this correct?
>
> Field('cost',compute=lambda r: r['price']*db.supplier[r.supplier_id].
> pricecoefficient)
>
>
>
--
---
You received this message because you are
6 matches
Mail list logo