Some more corrections to the documentation (manual) and some questios

"Ernesto Revilla" <[email protected]> Tue, 24 Feb 2004 23:51:19 +0100
Newsgroups gmane.comp.python.modeling
Message-ID <001c01c3fb28$c0625800$0100a8c0@servidor>
Hi,

in section  2.4.7.3 RToMany, it says:
RToOne objects describe a to-many relationship ... should be RToMany

in section 2.4.8 Association : incorrect spelling: shortvut should be shortcut

in section 2.6.3.2 A short example: 
Now that we now.... should read Now that we know...


Question: in secion 2.4.8 Association, in the 'Important' part it says:
Association objects always define a to-one association from the first entity to the second entity, and an inverse to-many relationship from the second entity to the first one.

Is this true, although the multiplicity has no be defined as:
              multiplicity=[ [0, 1], [0, None] ],
like
              multiplicity=[ [0, None], [0, 1] ],

?

If the foreign key value must not be null, e.g. like the 'customer' field . for invoices, orders, etc., the multiplicity would be:              [1, 1], [0, None]
as in:
    Association('Invoice', 'Customer', relations=['customer','invoices'],
                multiplicity=[ [1, 1] , [0, None] ],
                delete=['nullify','deny'])
??

Generation of DB-Schema with mdl_generate_DB_schema.py:
When I do:
    python p:mdl_generate_DB_schema.py -c -v -C modelo.py

I get:
    Error: option -C requires --admin-connection-dict
1.) I don't access the DB (-c option) so a admin dictionary should not be needed.
2.) there is no --admin-connection-dict parameter, only a --admin-dsn parameter


Best regards, Erny




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click