id summary reporter owner description type status priority milestone component version severity resolution keywords cc branch changelog apichanges internalchanges 8763 ListOption doesn't always work as expected Jeff Hammel Remy Blank "`ListOption` does not always unpack values. Given the example code: {{{ class StyleMarkers(Component): """"""apply a static style to the markers"""""" implements(IMapMarkerStyle) styles = ListOption('geo', 'static_marker_style', '', ""static styles to apply to markers"") def style(self, ticket, req, **style): retval = {} import pdb; pdb.set_trace() for s in self.styles: key, value = s.split(':', 1) key = key.strip() value = value.strip() if key not in style: retval[key] = value return retval }}} in `trac.ini` {{{ static_marker_style = fillOpacity: 0.3, graphicOpacity: 0.3, strokeOpacity: 0.3 }}} However, upon hitting the `pdb`, the values are not unpacked: {{{ (Pdb) self.styles [u'fillOpacity: 0.3, graphicOpacity: 0.3, strokeOpacity: 0.3'] }}} However, `self.env.config.getlist` does work as expected: {{{ (Pdb) self.env.config.getlist('geo', 'static_marker_style') [u'fillOpacity: 0.3', u'graphicOpacity: 0.3', u'strokeOpacity: 0.3'] }}} I will use `getlist` for now, but would love to see the API fixed properly so I didn't have to do work arounds. I've noticed this bug off and on. Not sure what the reason for it is or why it seems intermittent" defect closed normal general 0.11.5 normal worksforme