diff --git a/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/copy_of_EGov_getCategoryChildItemListByFieldName.xml b/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/copy_of_EGov_getCategoryChildItemListByFieldName.xml deleted file mode 100644 index 034ddf2d97e646a88a87c8fad0988af0c0a58b49..0000000000000000000000000000000000000000 --- a/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/copy_of_EGov_getCategoryChildItemListByFieldName.xml +++ /dev/null @@ -1,192 +0,0 @@ -<?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> diff --git a/bt5/erp5_egov/bt/revision b/bt5/erp5_egov/bt/revision index 40ca05e7ba3a6947e1ead5d6607b994de5d8ffc2..b18fcc5ba20b46f0d2e054e2f0fe5290e5f25b14 100644 --- a/bt5/erp5_egov/bt/revision +++ b/bt5/erp5_egov/bt/revision @@ -1 +1 @@ -534 \ No newline at end of file +535 \ No newline at end of file