From 28bc7baec3db15dd4e478bbbb9006cc46c72bfad Mon Sep 17 00:00:00 2001 From: Yusei Tahara <yusei@nexedi.com> Date: Wed, 6 Feb 2008 18:17:32 +0000 Subject: [PATCH] tell datetime_search_keys argument explicitly. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19112 20353a03-c40f-0410-a6d1-a30d3c3de9de --- ...untingTransactionModule_countAccountingTransactionList.xml | 4 ++-- ...countingTransactionModule_getAccountingTransactionList.xml | 4 ++-- .../AccountingTransactionModule_statSourceCredit.xml | 4 ++-- .../AccountingTransactionModule_statSourceDebit.xml | 4 ++-- bt5/erp5_accounting/bt/revision | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_countAccountingTransactionList.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_countAccountingTransactionList.xml index b44e9e020b..fe22666ca9 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_countAccountingTransactionList.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_countAccountingTransactionList.xml @@ -77,11 +77,11 @@ if kw.get(\'operation_date\', {}).get(\'query\'):\n ss_q = Query(format=operation_date_dict[\'format\'],\n type=operation_date_dict[\'type\'],\n **{\'delivery.start_date\':operation_date_dict[\'query\']})\n - kw[\'source_section_where_expression\'] = ss_q()[\'where_expression\']\n + kw[\'source_section_where_expression\'] = ss_q(datetime_search_keys=[\'delivery.start_date\'])[\'where_expression\']\n ds_q = Query(format=operation_date_dict[\'format\'],\n type=operation_date_dict[\'type\'],\n **{\'delivery.stop_date\':operation_date_dict[\'query\']})\n - kw[\'destination_section_where_expression\'] = ds_q()[\'where_expression\']\n + kw[\'destination_section_where_expression\'] = ds_q(datetime_search_keys=[\'delivery.stop_date\'])[\'where_expression\']\n del kw[\'operation_date\']\n \n return context.AccountingTransactionModule_zGetAccountingTransactionList( selection=None,\n diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getAccountingTransactionList.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getAccountingTransactionList.xml index dbc3edc756..9cf2120e57 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getAccountingTransactionList.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_getAccountingTransactionList.xml @@ -96,11 +96,11 @@ if params.get(\'operation_date\', {}).get(\'query\'):\n ss_q = Query(format=operation_date_dict[\'format\'],\n type=operation_date_dict[\'type\'],\n **{\'delivery.start_date\':operation_date_dict[\'query\']})\n - params[\'source_section_where_expression\'] = ss_q()[\'where_expression\']\n + params[\'source_section_where_expression\'] = ss_q(datetime_search_keys=[\'delivery.start_date\'])[\'where_expression\']\n ds_q = Query(format=operation_date_dict[\'format\'],\n type=operation_date_dict[\'type\'],\n **{\'delivery.stop_date\':operation_date_dict[\'query\']})\n - params[\'destination_section_where_expression\'] = ds_q()[\'where_expression\']\n + params[\'destination_section_where_expression\'] = ds_q(datetime_search_keys=[\'delivery.stop_date\'])[\'where_expression\']\n del params[\'operation_date\']\n \n # this method can be used to build another complex query, for example\n diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_statSourceCredit.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_statSourceCredit.xml index f591a4174d..dfee3620b2 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_statSourceCredit.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_statSourceCredit.xml @@ -78,11 +78,11 @@ if params.get(\'operation_date\', {}).get(\'query\'):\n ss_q = Query(format=operation_date_dict[\'format\'],\n type=operation_date_dict[\'type\'],\n **{\'delivery.start_date\':operation_date_dict[\'query\']})\n - params[\'source_section_where_expression\'] = ss_q()[\'where_expression\']\n + params[\'source_section_where_expression\'] = ss_q(datetime_search_keys=[\'delivery.start_date\'])[\'where_expression\']\n ds_q = Query(format=operation_date_dict[\'format\'],\n type=operation_date_dict[\'type\'],\n **{\'delivery.stop_date\':operation_date_dict[\'query\']})\n - params[\'destination_section_where_expression\'] = ds_q()[\'where_expression\']\n + params[\'destination_section_where_expression\'] = ds_q(datetime_search_keys=[\'delivery.stop_date\'])[\'where_expression\']\n del params[\'operation_date\']\n \n result = context.AccountingTransactionModule_zGetAccountingTransactionList(\n diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_statSourceDebit.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_statSourceDebit.xml index a6d7e5ac1f..bb352fcd8d 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_statSourceDebit.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_statSourceDebit.xml @@ -78,11 +78,11 @@ if params.get(\'operation_date\', {}).get(\'query\'):\n ss_q = Query(format=operation_date_dict[\'format\'],\n type=operation_date_dict[\'type\'],\n **{\'delivery.start_date\':operation_date_dict[\'query\']})\n - params[\'source_section_where_expression\'] = ss_q()[\'where_expression\']\n + params[\'source_section_where_expression\'] = ss_q(datetime_search_keys=[\'delivery.start_date\'])[\'where_expression\']\n ds_q = Query(format=operation_date_dict[\'format\'],\n type=operation_date_dict[\'type\'],\n **{\'delivery.stop_date\':operation_date_dict[\'query\']})\n - params[\'destination_section_where_expression\'] = ds_q()[\'where_expression\']\n + params[\'destination_section_where_expression\'] = ds_q(datetime_search_keys=[\'delivery.stop_date\'])[\'where_expression\']\n del params[\'operation_date\']\n \n result = context.AccountingTransactionModule_zGetAccountingTransactionList(\n diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index ed615204d1..995fb338a8 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -590 \ No newline at end of file +593 \ No newline at end of file -- 2.30.9