Commit ecceb142 authored by Klaus Wölfel's avatar Klaus Wölfel

Only add user if login does not exist yet

parent e2f70046
......@@ -61,7 +61,11 @@ class PersonConfiguratorItem(XMLObject, ConfiguratorItemMixin):
, PropertySheet.Login)
def _checkConsistency(self, fixit=False, filter=None, **kw):
error_list = ["Person %s should be created" % self.getReference(),]
error_list = []
person = self.portal_catalog.getResultValue(reference=self.getReference(),
portal_type="Person")
if person is None:
error_list.append("Person %s should be created" % self.getReference())
if fixit:
person_module = self.getPortalObject().person_module
person = person_module.newContent(portal_type="Person")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment