Edgewall Software

Changes between Version 7 and Version 8 of TracDev/ConfigApi


Ignore:
Timestamp:
Jan 8, 2011, 2:01:52 PM (13 years ago)
Author:
Sebastian Krysmanski <sebastian@…>
Comment:

Added note about setting options through Option class

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/ConfigApi

    v7 v8  
    135135}}}
    136136
     137''Note:'' Currently (as with Trac ''0.12.1'') you can't ''set'' an option's value this way (e.g. with `self.my_option = new_option_value`). This will raise an !AttributeError, but there's ticket #9967 that aims to fix this problem.
     138
    137139=== Why does this work? ===
    138140So, how can one define an option as `ListOption` but end up with a list? This works because there are two ways to access the option: as class variable or as instance variable.