1. 29 May, 2019 5 commits
    • Karel Koci's avatar
      euci: add option to ensure that tupple is returned · 4a110faa
      Karel Koci authored
      Idea of this is that user can set to configuration file instead of list
      option but we want to make sure that even if he does that that we get
      tuple of values. This is exactly for that case. Setting list to True
      ensures that get never returns anything else then list. Where on the
      other hand setting list to False causes it to never return tuple even if
      value is lists (in which case first found list is returned).
      4a110faa
    • Karel Koci's avatar
      euci: add support for getting and settings lists · c1ddf063
      Karel Koci authored
      This fixes handling of lists in euci.
      c1ddf063
    • Karel Koci's avatar
      euci: integrace *_default methods to get method · aa8b73ec
      Karel Koci authored
      This is much more versatile and compact syntax. You can optionally set
      default keywords argument and that gives you behavior where
      UciExceptionNotFound is never thrown out.
      This also adds tests for defaults.
      aa8b73ec
    • Karel Koci's avatar
      euci: overload default get and set methods to support types · 7ed4c4a7
      Karel Koci authored
      This drops previous get_t and set_t methods in favor of overloaded get
      and set methods.
      You can optionally add keyword argument dtype to get method to ensure
      that returned data is of specified type. For now only str, int and bool
      are supported.
      set methods now detects value argument type and behaves according to it.
      In general it just converts value to string but in case of bool it
      replaces it with defined value.
      7ed4c4a7
    • Karel Koci's avatar
      euci: implement get_t and set_t method · 4b9ab0a6
      Karel Koci authored
      These are intended to be used as smart wrappers on top of get_* and
      set_* methods. In case of get_t method you can specify type you are
      expecting like a python type (str, bool and int). In case of set_t is
      type autodetected from provided value.
      4b9ab0a6
  2. 31 Jan, 2019 2 commits
  3. 15 Mar, 2018 3 commits
  4. 26 Feb, 2018 1 commit