Code

Changes between Version 20 and Version 21 of DescriptorFields


Ignore:
Timestamp:
01/16/06 15:04:18 (8 years ago)
Author:
adrian
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DescriptorFields

    v20 v21  
    2424 * When accessed via the instance, they would return a representation of the value they  
    2525   hold. This could be 
    26    - the simple data instance from the private dict that was fetched from the db.  
    27    - a lazily computed value, eg a BLOB field which would be fetched from the db on first access, not at initial load time, or a ForeignKey relationship that hasn't been loaded yet. 
     26   - the simple data instance from the private dict that was fetched from the DB.  
     27   - a lazily computed value, eg a BLOB field which would be fetched from the DB on first access, not at initial load time, or a !ForeignKey relationship that hasn't been loaded yet. 
    2828 
    29  * ForeignKeys and other related fields would place another descriptor on the related class. 
     29 * !ForeignKeys and other related fields would place another descriptor on the related class. 
    3030   When accessed via the instance, this would return a lazy collection object. It will act like a set  
    3131   (an ordered one if there is an ordering involved).   
    3232    
    33    This would also support other methods in favour of the get_related_list things.  
     33   This would also support other methods in favor of the get_related_list things.  
    3434  
    3535   Methods which change the meaning of the lazy collection are as follows:  
     
    3838   * {{{.order_by()}}}: adds/changes ordering parameters. 
    3939 
    40    The collection supports the appropriate collection protocols : It acts as a set, with ordering  
     40   The collection supports the appropriate collection protocols: It acts as a set, with ordering  
    4141   if there is an ordering in the underlying query. The query is only done when a collection protocol is used.  
    4242   Sometimes, multiple queries will be used to save traffic, eg if you access reporter.article_set[10000:10020] and then reporter.article_set[:20].