Commit 1b2ec4d6 authored by Jérome Perrin's avatar Jérome Perrin

Helper script to create a report and associate it with the business template

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25377 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e579ac1f
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>action</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>category</string> </key>
<value> <string>object_action</string> </value>
</item>
<item>
<key> <string>condition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>icon</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>create_report</string> </value>
</item>
<item>
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>Manage portal</string>
</tuple>
</value>
</item>
<item>
<key> <string>priority</string> </key>
<value> <float>36.0</float> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Create ERP5 Report</string> </value>
</item>
<item>
<key> <string>visible</string> </key>
<value> <int>1</int> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="Expression" module="Products.CMFCore.Expression"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/BusinessTemplate_viewCreateReportDialog</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>portal = context.getPortalObject()\n
skin_folder = getattr(portal.portal_skins, skin_folder)\n
\n
type_name = portal_type.replace(\' \', \'\')\n
report_name_part = \'\'.join([part.capitalize() for part in report_name.split()])\n
dialog_form_name = \'%s_view%sReportDialog\' % (type_name, report_name_part)\n
report_form_name = \'%s_view%sReport\' % (type_name, report_name_part)\n
report_section_form_name = \'%s_view%sReportSection\' % (type_name,\n
report_name_part)\n
get_report_section_script_name = \'%s_get%sReportSectionList\' % (type_name,\n
report_name_part)\n
get_line_list_script_name = \'%s_get%sLineList\' % (type_name, report_name_part)\n
action_id = "%s_report" % \'_\'.join([part.lower() for part in report_name.split()])\n
\n
# Create the dialog\n
skin_folder.manage_addProduct[\'ERP5Form\'].addERP5Form(dialog_form_name, report_name)\n
dialog = getattr(skin_folder, dialog_form_name)\n
dialog.manage_settings(\n
dict(field_title=dialog.title,\n
field_name=dialog.name,\n
field_description=dialog.description,\n
field_action=report_form_name,\n
field_update_action=dialog.update_action,\n
field_enctype=dialog.enctype,\n
field_encoding=dialog.encoding,\n
field_stored_encoding=dialog.stored_encoding,\n
field_unicode_mode=dialog.unicode_mode,\n
field_method=dialog.method,\n
field_row_length=str(dialog.row_length),\n
field_pt=\'form_dialog\',\n
field_edit_order=[]))\n
\n
if use_from_date_at_date:\n
dialog.manage_addField(\n
id=\'your_from_date\',\n
fieldname=\'ProxyField\',\n
title=\'\')\n
dialog.your_from_date.manage_edit_xmlrpc(\n
dict(form_id=\'Base_viewDialogFieldLibrary\',\n
field_id=\'your_from_date\'))\n
dialog.manage_addField(\n
id=\'your_at_date\',\n
fieldname=\'ProxyField\',\n
title=\'\')\n
dialog.your_at_date.manage_edit_xmlrpc(\n
dict(form_id=\'Base_viewDialogFieldLibrary\',\n
field_id=\'your_at_date\'))\n
\n
dialog.manage_addField(\n
id=\'your_portal_skin\',\n
fieldname=\'ProxyField\',\n
title=\'\')\n
dialog.your_portal_skin.manage_edit_xmlrpc(\n
dict(form_id=\'Base_viewDialogFieldLibrary\',\n
field_id=\'your_portal_skin\'))\n
dialog.manage_addField(\n
id=\'your_format\',\n
fieldname=\'ProxyField\',\n
title=\'\')\n
dialog.your_format.manage_edit_xmlrpc(\n
dict(form_id=\'Base_viewDialogFieldLibrary\',\n
field_id=\'your_format\'))\n
\n
# Associate the dialog with type information\n
type_information = portal.portal_types.getTypeInfo(portal_type)\n
max_priority = 0\n
action_list = type_information.listActions()\n
if action_list:\n
max_priority = max([ai.getPriority() for ai in action_list])\n
\n
type_information.addAction(\n
action_id,\n
report_name,\n
"string:${object_url}/%s" % dialog_form_name,\n
\'\',\n
\'View\',\n
\'object_report\',\n
priority=max_priority+1,)\n
\n
# Associate the dialog with type information in business template meta data\n
if context.getPortalType() == \'Business Template\' and \\\n
context.getInstallationState() != \'installed\':\n
context.setTemplateActionPathList(context.getTemplateActionPathList() +\n
(\'%s | %s\' % (portal_type, action_id) ,), )\n
\n
# Create the report\n
skin_folder.manage_addProduct[\'ERP5Form\'].addERP5Report(report_form_name, report_name)\n
report = getattr(skin_folder, report_form_name)\n
report.manage_settings(\n
dict(field_title=report.title,\n
field_name=report.name,\n
field_description=report.description,\n
field_action=report_form_name,\n
field_update_action=report.update_action,\n
field_enctype=report.enctype,\n
field_encoding=report.encoding,\n
field_stored_encoding=report.stored_encoding,\n
field_unicode_mode=report.unicode_mode,\n
field_method=report.method,\n
field_row_length=str(report.row_length),\n
field_pt=\'report_view\',\n
field_report_method=get_report_section_script_name,\n
field_edit_order=[]))\n
\n
skin_folder.manage_addProduct[\'ERP5Form\'].addERP5Form(\n
report_section_form_name, report_name)\n
report_section_form = getattr(skin_folder, report_section_form_name)\n
report_section_form.manage_settings(\n
dict(field_title=report_section_form.title,\n
field_name=report_section_form.name,\n
field_description=report_section_form.description,\n
field_action=\'\',\n
field_update_action=report_section_form.update_action,\n
field_enctype=report_section_form.enctype,\n
field_encoding=report_section_form.encoding,\n
field_stored_encoding=report_section_form.stored_encoding,\n
field_unicode_mode=report_section_form.unicode_mode,\n
field_method=report_section_form.method,\n
field_row_length=str(report_section_form.row_length),\n
field_pt=\'form_view\',\n
field_report_method=get_report_section_script_name,\n
field_edit_order=[]))\n
\n
report_section_form.manage_addField(\n
id=\'listbox\',\n
fieldname=\'ProxyField\',\n
title=\'\')\n
report_section_form.listbox.manage_edit_xmlrpc(\n
dict(form_id=\'Base_viewFieldLibrary\',\n
field_id=\'my_view_mode_listbox\'))\n
report_section_form.move_field_group((\'listbox\',), \'left\', \'bottom\')\n
\n
report_section_form.listbox.manage_edit_surcharged_xmlrpc(\n
dict(selection_name=(\'_\'.join((portal_type + report_name).split())).lower() + \'_selection\',\n
title=report_name,\n
# XXX this must be a Method, but as far as I know, we cannot set list\n
# method in restricted environment\n
# list_method=get_line_list_script_name\n
))\n
\n
if use_from_date_at_date:\n
report.manage_addField(\n
id=\'your_from_date\',\n
fieldname=\'ProxyField\',\n
title=\'\')\n
report.your_from_date.manage_edit_xmlrpc(\n
dict(form_id=\'Base_viewReportFieldLibrary\',\n
field_id=\'your_from_date\'))\n
report.manage_addField(\n
id=\'your_at_date\',\n
fieldname=\'ProxyField\',\n
title=\'\')\n
report.your_at_date.manage_edit_xmlrpc(\n
dict(form_id=\'Base_viewReportFieldLibrary\',\n
field_id=\'your_at_date\'))\n
\n
# Create the report section script\n
skin_folder.manage_addProduct[\'PythonScripts\'].manage_addPythonScript(\n
get_report_section_script_name)\n
script = getattr(skin_folder, get_report_section_script_name)\n
\n
get_param_part = \'\'\n
if use_from_date_at_date:\n
get_param_part = \'from_date = request.get("from_date")\\n\'\\\n
\'at_date = request.get("at_date")\'\n
\n
script.ZPythonScript_edit(\'\',\n
"""from Products.ERP5Form.Report import ReportSection\n
portal = context.getPortalObject()\n
request = container.REQUEST\n
%s\n
\n
return [ReportSection(form_id=\'%s\',\n
path=context.getPhysicalPath())]\n
""" % (get_param_part, report_section_form_name))\n
\n
\n
# Create the script to get list of lines\n
skin_folder.manage_addProduct[\'PythonScripts\'].manage_addPythonScript(\n
get_line_list_script_name)\n
script = getattr(skin_folder, get_line_list_script_name)\n
params = \'**kw\'\n
if use_from_date_at_date:\n
params = \'from_date=None, at_date=None, **kw\'\n
\n
script.ZPythonScript_edit(params,\n
"""from Products.PythonScripts.standard import Object\n
portal = context.getPortalObject()\n
\n
# TODO: get list of lines here\n
\n
return [Object(uid=\'new_\',\n
title=\'Nothing\',\n
)]\n
""")\n
\n
\n
return context.Base_redirect(form_id,\n
keep_items=dict(portal_status_message=\n
context.Base_translateString(\'Report created.\')))\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>form_id=\'view\', portal_type, report_name, skin_folder, use_from_date_at_date</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>5</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>form_id</string>
<string>portal_type</string>
<string>report_name</string>
<string>skin_folder</string>
<string>use_from_date_at_date</string>
<string>_getattr_</string>
<string>context</string>
<string>portal</string>
<string>getattr</string>
<string>type_name</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string>
<string>part</string>
<string>report_name_part</string>
<string>dialog_form_name</string>
<string>report_form_name</string>
<string>report_section_form_name</string>
<string>get_report_section_script_name</string>
<string>get_line_list_script_name</string>
<string>action_id</string>
<string>_getitem_</string>
<string>dialog</string>
<string>dict</string>
<string>str</string>
<string>type_information</string>
<string>max_priority</string>
<string>action_list</string>
<string>max</string>
<string>ai</string>
<string>report</string>
<string>report_section_form</string>
<string>script</string>
<string>get_param_part</string>
<string>params</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<string>view</string>
<none/>
<none/>
<none/>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>BusinessTemplate_createReportDialog</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ERP5Form" module="Products.ERP5Form.Form"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<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/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value> <string>BusinessTemplate_createReportDialog</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>edit_order</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>enctype</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>group_list</string> </key>
<value>
<list>
<string>left</string>
<string>right</string>
<string>center</string>
<string>bottom</string>
<string>hidden</string>
</list>
</value>
</item>
<item>
<key> <string>groups</string> </key>
<value>
<dictionary>
<item>
<key> <string>bottom</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>center</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>hidden</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>left</string> </key>
<value>
<list>
<string>your_skin_folder</string>
<string>your_portal_type</string>
<string>your_report_name</string>
<string>your_use_from_date_at_date</string>
</list>
</value>
</item>
<item>
<key> <string>right</string> </key>
<value>
<list/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>BusinessTemplate_viewCreateReportDialog</string> </value>
</item>
<item>
<key> <string>method</string> </key>
<value> <string>POST</string> </value>
</item>
<item>
<key> <string>name</string> </key>
<value> <string>BusinessTemplate_viewCreateReportDialog</string> </value>
</item>
<item>
<key> <string>pt</string> </key>
<value> <string>form_dialog</string> </value>
</item>
<item>
<key> <string>row_length</string> </key>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>stored_encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Create Report</string> </value>
</item>
<item>
<key> <string>unicode_mode</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>update_action</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ListField" module="Products.Formulator.StandardFields"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>your_portal_type</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
<item>
<key> <string>required_not_found</string> </key>
<value> <string>Input is required but no input given.</string> </value>
</item>
<item>
<key> <string>unknown_selection</string> </key>
<value> <string>You selected an item that was not in the list.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra_item</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>first_item</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>items</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>unicode</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra_item</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>first_item</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>items</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>unicode</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>The type on which this report is used</string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra_item</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>first_item</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>items</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>required</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Report Context</string> </value>
</item>
<item>
<key> <string>unicode</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <int>0</int> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: [(ti, ti) for ti in context.portal_types.objectIds()]</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>title</string>
<string>display_width</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>your_report_name</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>display_width</string> </key>
<value> <int>20</int> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_string_field</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Report Name</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>title</string>
<string>default</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>your_skin_folder</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>default</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_string_field</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Skin Folder in which the report will be created</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>here/getTemplateSkinId | string: custom</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="CheckBoxField" module="Products.Formulator.StandardFields"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>your_use_from_date_at_date</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>The report will have configurable "From Date" and "At Date" fields</string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Use From Date / At Date Parameters</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
439
\ No newline at end of file
440
\ No newline at end of file
......@@ -6,6 +6,7 @@ Bug | document_list
Bug | new_file
Bug | view
Business Template | commit
Business Template | create_report
Business Template | svn_cleanup_locks
Business Template | svn_conflicted_files
Business Template | svn_unversioned_files
......
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