Use id to track shipper

This commit is contained in:
Frédéric Péters 2011-07-27 17:11:58 +02:00
parent b774c84e25
commit 52d2c54389
1 changed files with 1 additions and 2 deletions

View File

@ -64,8 +64,7 @@ class Migrate(BrowserView):
shipper_id = plone_tool.normalizeString(shipper)
if not portal.contacts.has_key(shipper_id):
portal.contacts.invokeFactory('themis.datatypes.contact', shipper_id, title=shipper)
#ob.expediteur.append('contact:%s' % shipper_id)
ob.expediteur.append(shipper)
ob.expediteur.append('contact:%s' % shipper_id)
try:
workflow_tool.doActionFor(ob, 'publish')