[Erp5-report] r13806 - /erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_a...

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Mar 30 08:21:03 CEST 2007


Author: kazuhiko
Date: Fri Mar 30 08:20:56 2007
New Revision: 13806

URL: http://svn.erp5.org?rev=13806&view=rev
Log:
use selection_name instead of selection.

Modified:
    erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getMirrorAccountUrl.xml
    erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getTransactionListUrl.xml

Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getMirrorAccountUrl.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getMirrorAccountUrl.xml?rev=13806&r1=13805&r2=13806&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getMirrorAccountUrl.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getMirrorAccountUrl.xml Fri Mar 30 08:20:56 2007
@@ -70,14 +70,13 @@
             <key> <string>_body</string> </key>
             <value> <string encoding="cdata"><![CDATA[
 
-index = selection.getIndex()\n
-name = selection.getName()\n
+index = context.portal_selections.getSelectionIndexFor(selection_name)\n
 object = brain.getObject()\n
 object = object.getDestinationValue()\n
 if object is None:\n
   url = None\n
 else:\n
-  url = object.absolute_url() + \'/view?selection_index=%s&selection_name=%s&reset=1\' % (index, name)\n
+  url = object.absolute_url() + \'/view?selection_index=%s&selection_name=%s&reset=1\' % (index, selection_name)\n
 \n
 return url\n
 
@@ -98,7 +97,7 @@
         </item>
         <item>
             <key> <string>_params</string> </key>
-            <value> <string>brain=None, selection=None</string> </value>
+            <value> <string>brain=None, selection=None, selection_name=None</string> </value>
         </item>
         <item>
             <key> <string>errors</string> </key>
@@ -118,7 +117,7 @@
                   <dictionary>
                     <item>
                         <key> <string>co_argcount</string> </key>
-                        <value> <int>2</int> </value>
+                        <value> <int>3</int> </value>
                     </item>
                     <item>
                         <key> <string>co_varnames</string> </key>
@@ -128,7 +127,6 @@
                             <string>selection</string>
                             <string>_getattr_</string>
                             <string>index</string>
-                            <string>name</string>
                             <string>object</string>
                             <string>None</string>
                             <string>url</string>

Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getTransactionListUrl.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getTransactionListUrl.xml?rev=13806&r1=13805&r2=13806&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getTransactionListUrl.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getTransactionListUrl.xml Fri Mar 30 08:20:56 2007
@@ -70,8 +70,7 @@
             <key> <string>_body</string> </key>
             <value> <string>from ZTUtils import make_query\n
 \n
-index = selection.getIndex()\n
-name = selection.getName()\n
+index = context.portal_selections.getSelectionIndexFor(selection_name)\n
 object = brain.getObject()\n
 \n
 # this is for domain_tree mode\n
@@ -80,7 +79,7 @@
 \n
 method = \'Account_viewAccountingTransactionList\'\n
 kw = { \'selection_index\': str(index),\n
-       \'selection_name\' : name, \n
+       \'selection_name\' : selection_name, \n
        \'reset\' : \'1\', \n
      }\n
 \n
@@ -101,7 +100,7 @@
         </item>
         <item>
             <key> <string>_params</string> </key>
-            <value> <string>brain=None, selection=None, **kwd</string> </value>
+            <value> <string>brain=None, selection=None, selection_name=None, **kwd</string> </value>
         </item>
         <item>
             <key> <string>errors</string> </key>
@@ -121,7 +120,7 @@
                   <dictionary>
                     <item>
                         <key> <string>co_argcount</string> </key>
-                        <value> <int>2</int> </value>
+                        <value> <int>3</int> </value>
                     </item>
                     <item>
                         <key> <string>co_varnames</string> </key>
@@ -134,7 +133,6 @@
                             <string>make_query</string>
                             <string>_getattr_</string>
                             <string>index</string>
-                            <string>name</string>
                             <string>object</string>
                             <string>method</string>
                             <string>str</string>




More information about the Erp5-report mailing list