Commit 3a3b7709 authored by Georgios Dagkakis's avatar Georgios Dagkakis

Documents of portal types 'Python Script' and 'Test Page' have been migrated to the new format,

where the actual Python code or Test content is exported separately from the xml metadata
parent 090d24ba
if len(old_line_list) == 0 and len(new_line_list) == 6:
if '\n'.join(new_line_list) == """\
<key> <string>__translation_dict</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>""":
return True
return False
......@@ -48,25 +48,6 @@
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[
if len(old_line_list) == 0 and len(new_line_list) == 6:\n
if \'\\n\'.join(new_line_list) == """\\\n
<key> <string>__translation_dict</string> </key>\n
<value>\n
<dictionary/>\n
</value>\n
</item>\n
<item>""":\n
return True\n
\n
return False\n
]]></string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>old_line_list, new_line_list</string> </value>
......
context.Event_createFollowUpTicket(follow_up_ticket_type=follow_up_ticket_type,
follow_up_ticket_title=follow_up_ticket_title,
follow_up_campaign_resource=follow_up_campaign_resource,
follow_up_meeting_resource=follow_up_meeting_resource,
follow_up_sale_opportunity_resource=follow_up_sale_opportunity_resource,
follow_up_support_request_resource=follow_up_support_request_resource,
**kw)
if context.getPortalObject().portal_workflow.isTransitionPossible(
context, 'deliver'):
context.deliver()
return context.Base_redirect("",
keep_items={'portal_status_message':context.getPortalObject().Base_translateString("Follow Up Ticket Created.")})
......@@ -48,22 +48,6 @@
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>context.Event_createFollowUpTicket(follow_up_ticket_type=follow_up_ticket_type,\n
follow_up_ticket_title=follow_up_ticket_title,\n
follow_up_campaign_resource=follow_up_campaign_resource,\n
follow_up_meeting_resource=follow_up_meeting_resource,\n
follow_up_sale_opportunity_resource=follow_up_sale_opportunity_resource,\n
follow_up_support_request_resource=follow_up_support_request_resource,\n
**kw)\n
if context.getPortalObject().portal_workflow.isTransitionPossible(\n
context, \'deliver\'):\n
context.deliver()\n
return context.Base_redirect("",\n
keep_items={\'portal_status_message\':context.getPortalObject().Base_translateString("Follow Up Ticket Created.")})\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>follow_up_ticket_type=None, follow_up_ticket_title=None, follow_up_campaign_resource=None, follow_up_meeting_resource=None, follow_up_sale_opportunity_resource=None, follow_up_support_request_resource=None, **kw</string> </value>
......
org_list = context.getOrganisationList(*args, **kw)
org_dict = {}
for org in org_list:
org_gid = "%s %s" %(org.title, org.country)
if not org_dict.has_key(org_gid):
org_dict[org_gid] = org
context.log("org_dict", org_dict)
return org_dict.values()
......@@ -48,22 +48,6 @@
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>org_list = context.getOrganisationList(*args, **kw)\n
\n
org_dict = {}\n
\n
for org in org_list:\n
org_gid = "%s %s" %(org.title, org.country)\n
if not org_dict.has_key(org_gid):\n
org_dict[org_gid] = org\n
\n
context.log("org_dict", org_dict)\n
\n
return org_dict.values()\n
</string> </value>
</item>
<item>
<key> <string>_local_properties</string> </key>
<value>
......
if len(old_line_list) == 4 and len(new_line_list) == 1 and \
old_line_list[0] == '<tuple>' and \
old_line_list[2] == '<tuple/>' and \
old_line_list[3] =='</tuple>' and \
old_line_list[1]== new_line_list[0]:
return True
return False
if len(old_line_list) == 1 and len(new_line_list) == 1 and \
new_line_list[0] == old_line_list[0].replace("BTrees._OOBTree","BTrees.OOBTree"):
return True
return False
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