>Unfortunately, DefaultValues property set in biz layer doesn't affect db layer.
>In db layer all new field values are initialized by its type, e.g. str is 
>initialized to '', etc.

I think I haven't made myself clear.
The tables are like this;
 
stat    (statid, statnm)
dist    (distid,distnm,statid)  so, 'statid' is fk in this table.
Both tables have auto-generated pks.
 
>So, if you have FK fields in your table, you must set these fields explicitly
>to the proper values to satisfy database RI rules.
 
The 'statid' fk is explicitly specified already.
dts = ({'distid':None, 'distnm': 'delmenow11', 'statid': 17},)
 
>In your situation, you should initialize distid field to None value or any 
>valid FK.
>Regards
>Jacek Kałucki
 
'distid' is auto-generated by DB.
Would it make any sense to initialize 'distid' field to None value or any valid 
FK?
 
---Regards
   Vineet

--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to