[FIX] splitting of whitelist in demo:fields directive

This commit is contained in:
Xavier Morel 2015-07-14 11:02:53 +02:00
parent 469bfd3c8a
commit e443ce59bf

View File

@ -50,7 +50,7 @@ class Fields(Directive):
return [self.state_machine.reporter.warning( return [self.state_machine.reporter.warning(
"Could not find any field related to the action [%s]" % self.arguments[0] "Could not find any field related to the action [%s]" % self.arguments[0]
)] )]
whitelist = set(self.options.get('only', '').split('')) whitelist = set(self.options.get('only', '').split())
return [nodes.field_list('', *( return [nodes.field_list('', *(
nodes.field('', nodes.field('',
nodes.field_name(text=v['string'] or k), nodes.field_name(text=v['string'] or k),