From 8372ee1898b0b3f1fcf81b6a2bf85138b7290c8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Tue, 7 Feb 2006 19:37:42 +0000 Subject: [PATCH] remove "Source" from the name of Entity_getAccountingTransactionSourceGapId git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5613 20353a03-c40f-0410-a6d1-a30d3c3de9de --- ... Entity_getAccountingTransactionGapId.xml} | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) rename bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/{Entity_getAccountingTransactionSourceGapId.xml => Entity_getAccountingTransactionGapId.xml} (84%) diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Entity_getAccountingTransactionSourceGapId.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Entity_getAccountingTransactionGapId.xml similarity index 84% rename from bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Entity_getAccountingTransactionSourceGapId.xml rename to bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Entity_getAccountingTransactionGapId.xml index 3d8d5c56ca..82f8e2157c 100755 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Entity_getAccountingTransactionSourceGapId.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Entity_getAccountingTransactionGapId.xml @@ -66,9 +66,9 @@ </item> <item> <key> <string>_body</string> </key> - <value> <string>account = brain.getObject().getSourceValue()\n -if account is not None:\n - return account.Account_getGapId()\n + <value> <string>account_uid = brain.account_uid\n +account = context.portal_catalog.getObject(account_uid)\n +return account.Account_getGapId()\n </string> </value> </item> <item> @@ -79,11 +79,11 @@ if account is not None:\n </item> <item> <key> <string>_filepath</string> </key> - <value> <string>Script (Python):/nexedi/portal_skins/erp5_accounting/Entity_getAccountingTransactionSourceGapId</string> </value> + <value> <string>Script (Python):/erp5/portal_skins/erp5_accounting/Entity_getAccountingTransactionGapId</string> </value> </item> <item> <key> <string>_params</string> </key> - <value> <string>brain, selection</string> </value> + <value> <string>brain=None, selection=None</string> </value> </item> <item> <key> <string>errors</string> </key> @@ -112,8 +112,9 @@ if account is not None:\n <string>brain</string> <string>selection</string> <string>_getattr_</string> + <string>account_uid</string> + <string>context</string> <string>account</string> - <string>None</string> </tuple> </value> </item> @@ -125,12 +126,19 @@ if account is not None:\n <item> <key> <string>func_defaults</string> </key> <value> - <none/> + <tuple> + <none/> + <none/> + </tuple> </value> </item> <item> <key> <string>id</string> </key> - <value> <string>Entity_getAccountingTransactionSourceGapId</string> </value> + <value> <string>Entity_getAccountingTransactionGapId</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> </item> <item> <key> <string>warnings</string> </key> -- 2.30.9