Tiramisu
latest
  • Getting started
  • The Config
    • The handling of options
      • Instanciate an option
      • Default Options type
      • The symbolic link option: SymLinkOption
      • Create it’s own option
    • Option description are nested Options
    • Config
    • Go futher with Option and Config
  • Browse the Config
  • Manage values
  • Playing with property
  • A full application
  • Bonus: Let’s create a quiz!
  • Glossary
Tiramisu
  • The Config
  • The symbolic link option: SymLinkOption

The symbolic link option: SymLinkOption

A SymLinkOption is an option that actually points to another option.

Each time we will access to a properties of this options, we will have in return the value of other option.

Creation a SymLinkOption is easy:

>>> from tiramisu import StrOption, SymLinkOption
>>> st = StrOption('str', 'str')
>>> sym = SymLinkOption('sym', st)
Previous Next

© Copyright 2011-2023, Silique. Revision 93fa26f8.