Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

23 lignes
471B

  1. import os
  2. from cfg_aux import *
  3. from cld import *
  4. from ht_Context import *
  5. # Construct section -> key -> value tree from config contents
  6. #
  7. # Conditions:
  8. # 1. Config contents have just become available
  9. @cld_by_value
  10. def cfg_parseConfigTree(
  11. c: ht_Context
  12. ) -> ht_Context:
  13. if (
  14. c.recentField == "cfgContents"
  15. ):
  16. c.cfgTree = cfg_aux_tree(c.cfgContents)
  17. c.recentField = "cfgTree"
  18. return c
  19. c.recentField = "none"
  20. return c