one-to-one association, howto
Wara Songkran <[email protected]> Thu, 17 Feb 2005 15:50:57 +0700
| Newsgroups | gmane.comp.python.modeling |
|---|---|
| Message-ID | <[email protected]> |
I've try to create one-to-one association from table Task to Supplier by define
model.association = [
Association('Task', 'Supplier',multiplicity=[ [0, 1], [0, 1] ])
]
but the error said
ValueError: invalid multiplicity dst->src: should be toMany
I've also apply the patch from
http://sourceforge.net/mailarchive/message.php?msg_id=9401573
Did I done something wrong?
Regrads
Wara Songkran
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click