Changes between Initial Version and Version 1 of Ticket #17232, comment 2


Ignore:
Timestamp:
Nov 15, 2011, 9:32:59 AM (13 years ago)
Author:
hrharkins

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17232, comment 2

    initial v1  
     1'''[Edit: My paste buffer had the wrong version of the second feeble attempt -- I've updated it]'''
     2
    13I'm not sure about the assertion -- other than the "id" field, which is true should be duplicated for each level, the other "naked" fields would seem to imply only one representation in a shared base class.  I'm not sure exactly how AutoFields deal with single inheritance otherwise -- they are potentially multiple "id" fields stacked on different classes.
    24
     
    2426        for field in cache:
    2527            if field not in recache:
    26                 recache.append(field)
     28                recache.remove(field)
     29            recache.append(field)
    2730        self._field_cache = tuple(recache)
    2831
Back to Top