Commit 8f5b26bc authored by Mayoro Diagne's avatar Mayoro Diagne

2010-06-16 mayoro

* remove unused script (commiting this file was a mistake)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36409 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cce8271a
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>if field_name is None or field_name=="":\n
return [(\'\',\'\')]\n
\n
category = None\n
\n
if field_name == "my_contact_function":\n
category = context.portal_categories.function\n
elif field_name =="my_organisation_direction_service":\n
category = context.portal_categories.group\n
elif field_name.startswith(\'my_involved_service_group_\'):\n
category = context.portal_categories.group\n
elif field_name.startswith(\'my_involved_service_function_\'):\n
category = context.portal_categories.function\n
elif field_name == "my_procedure_target":\n
category = context.portal_categories.target\n
elif field_name == "my_submission_site_list":\n
category = context.portal_categories.site\n
elif field_name == "my_procedure_publication_section":\n
category = context.portal_categories.publication_section\n
elif field_name == "my_submission_site":\n
category = context.portal_categories.site\n
elif field_name.startswith("my_civility"):\n
category = context.portal_categories.gender\n
elif field_name.startswith("my_citizen_gender"):\n
category = context.portal_categories.civility\n
elif field_name.startswith("my_citizen_function"):\n
category = context.portal_categories.function\n
elif field_name.startswith("my_citizen_city"):\n
category = context.portal_categories.site\n
elif field_name.startswith("my_company_boss_gender"):\n
category = context.portal_categories.civility\n
elif field_name.startswith("my_company_boss_function"):\n
category = context.portal_categories.function\n
elif field_name.startswith("my_company_city"):\n
category = context.portal_categories.site\n
elif field_name.startswith("my_company_country"):\n
category = context.portal_categories.nationality\n
elif field_name.startswith("my_accountant_gender"):\n
category = context.portal_categories.civility\n
elif field_name.startswith("my_accountant_function"):\n
category = context.portal_categories.function\n
elif field_name.startswith("my_accountant_city"):\n
category = context.portal_categories.site\n
elif field_name.startswith("my_accountant_country"):\n
category = context.portal_categories.nationality\n
\n
if category is not None:\n
return context.Base_getPreferredCategoryChildItemList(category, filter_node=0, translate=False)\n
elif field_name.startswith("my_attachment_model_"):\n
portal_type_list = context.portal_catalog(portal_type=\'Contribution Predicate\')\n
contribution_type_list = [(\'\',\'\')] + [(a.getObject().getTitle(),a.getObject().getTitle()) for a in portal_type_list]\n
pdf_type_list = context.getPortalObject().portal_types.contentValues(filter={\'portal_type\': \'PDF Type\'})\n
all_type_list = contribution_type_list + [(pt.getId(), pt.getId()) for pt in pdf_type_list]\n
return all_type_list\n
else:\n
return [(\'\',\'\')]\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>field_name=\'\'</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>field_name</string>
<string>None</string>
<string>category</string>
<string>_getattr_</string>
<string>context</string>
<string>False</string>
<string>portal_type_list</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string>
<string>a</string>
<string>contribution_type_list</string>
<string>pdf_type_list</string>
<string>pt</string>
<string>all_type_list</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<string></string>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>copy_of_EGov_getCategoryChildItemListByFieldName</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
534 535
\ No newline at end of file \ No newline at end of file
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