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)']"