You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 3 месеца
12345678910111213141516171819202122
  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