Sorry, I misunderstood when you said:

"m_dsc_clients - is not a legacy table and defined in db.py, "


This line in dal.py is wrong (it was recently fixed in trunk):

 if rfieldname in hasattr(rtable,'_primarykey') \

it should read:

if rfieldname in rtable._primarykey \


You can either update it manually or use latest trunk.



On Thursday, February 28, 2013 11:41:29 PM UTC-5, Dmitry Mosin wrote:
>
> eyed tables can only reference (or be referenced by) other keyed tables.
>>
>>
> But this table is keyed, isn't it?
>
> db.define_table('m_dsc_
> clients',
>     Field('cn','string'),
>     Field('cardid','reference m_dsc_cards'),
>     primarykey=['cn'],
> )
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to