Commit dfd5a653 authored by Tristan Cavelier's avatar Tristan Cavelier

f

parent 2a2adc4e
...@@ -110,12 +110,11 @@ for line in line_list:\n ...@@ -110,12 +110,11 @@ for line in line_list:\n
result = project_search_dict.get(line_source_project_title, None)\n result = project_search_dict.get(line_source_project_title, None)\n
error_message = None\n error_message = None\n
if result is None:\n if result is None:\n
# Reference is a better way to search\n
result = portal.portal_catalog(portal_type=(\'Project\', \'Project Line\'),\n result = portal.portal_catalog(portal_type=(\'Project\', \'Project Line\'),\n
reference=line_source_project_title)\n reference=line_source_project_title)\n
if len(result) == 0:\n if len(result) == 0:\n
result = portal.portal_catalog(portal_type=(\'Project\', \'Project Line\'),\n result = portal.portal_catalog(portal_type=(\'Project\', \'Project Line\'),\n
title=line_source_project_title)\n title=line_source_project_title)\n
project_search_dict[line_source_project_title] = result\n project_search_dict[line_source_project_title] = result\n
if len(result) == 0:\n if len(result) == 0:\n
error_message = "No such project"\n error_message = "No such project"\n
......
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