Uploaded image for project: 'Hue (READ ONLY)'
  1. Hue (READ ONLY)
  2. HUE-499

Comma-separated values in ini config files

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not A Bug
    • Affects Version/s: backlog
    • Fix Version/s: None
    • Component/s: core.api
    • Labels:
    • Environment:

      Ubuntu 10.10

      Description

      in test.ini:
      [test]
      commatest=foo,bar

      in conf.py:
      COMMATEST = Config('commatest', default='mydefault', type=str, help='Test for omma separated values')

      in your views/templates:
      conf.COMMATEST.get() # => "['foo','bar']" (a string!)

      I thought it would be related to configobj, so I tried
      [test]
      commatest=string(foo,bar)

      but that results in
      conf.COMMATEST.get() # => "['string(foo','bar)']"

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              karel1980 Karel Vervaeke
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: