Edgewall Software

Changes between Version 6 and Version 7 of TracDev/ConfigApi


Ignore:
Timestamp:
Jan 8, 2011, 11:03:52 AM (13 years ago)
Author:
Sebastian Krysmanski <sebastian@…>
Comment:

Added link to descriptor howto

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/ConfigApi

    v6 v7  
    153153}}}
    154154
    155 The first way uses the instance variable which is the actual list, while the second way uses the class variable which is the actual `ListOption` object.
     155The first way uses the ''instance'' attribute which is the actual list, while the second way uses the ''class'' attribute which is the actual `ListOption` object.
    156156
    157157When you try to access another component's defined options the difference between these two ways is less obvious, so be careful:
     
    167167print type(OtherComponent.my_option)
    168168}}}
     169
     170For a more deeper understanding of how this implementation works, see the official [http://docs.python.org/howto/descriptor.html Descriptor HowTo Guide] - since the `Option` class is a data descriptor. 
    169171
    170172== Listing known options == #listing_options