Code

Changes between Initial Version and Version 1 of Ticket #8892, comment 9


Ignore:
Timestamp:
07/08/11 03:20:26 (3 years ago)
Author:
blacklwhite
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8892, comment 9

    initial v1  
    3030---- 
    3131 
    32 Problems I've considered (sometimes I use id as synonym for the foreign key of an object): 
     32Problems I've considered: 
    3333* Compatible to users accessing to the foreign key field as follows: 
    3434{{{ 
     
    3939>>> a.b_id 
    4040}}} 
    41 So it is neccessary to set the id to a_id during the __set__ method of a.b = b. However the assertion that the id of b is the same as a.b_id must be before writing a to the database. 
     41So it is neccessary to set the id to a_id during the __set__ method of a.b = b. However, the assertion that the fk of b is the same as a.b_id must be true before writing a to the database. 
    4242 
    4343* Not loading the related object from the database.