[gen] Bugfix in portlet.

This commit is contained in:
Gaetan Delannay 2014-03-06 14:09:19 +01:00
parent 74f8592517
commit 2b33c420a4

View file

@ -468,7 +468,7 @@ class ToolMixin(BaseMixin):
if not klass.__dict__.has_key('create'): if not klass.__dict__.has_key('create'):
return ['form'] return ['form']
else: else:
means = pythonClass.create means = klass.create
if means: if means:
if isinstance(means, basestring): res = [means] if isinstance(means, basestring): res = [means]
else: res = means else: res = means