<?xml version="1.0"?>
<ZopeData>
  <record id="1" aka="AAAAAAAAAAE=">
    <pickle>
      <tuple>
        <tuple>
          <string>Products.PythonScripts.PythonScript</string>
          <string>PythonScript</string>
        </tuple>
        <none/>
      </tuple>
    </pickle>
    <pickle>
      <dictionary>
        <item>
            <key> <string>Python_magic</string> </key>
            <value>
              <none/>
            </value>
        </item>
        <item>
            <key> <string>Script_magic</string> </key>
            <value> <int>3</int> </value>
        </item>
        <item>
            <key> <string>__ac_local_roles__</string> </key>
            <value>
              <none/>
            </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 encoding="cdata"><![CDATA[

try:\n
  # XXX not used !\n
  currency = kwd[\'accounting_transaction_line_currency\']\n
  id = currency.split(\'/\')[-1]\n
except KeyError:\n
  id = \'\'\n
\n
if not id:\n
  id = \'&nbsp;\'\n
\n
kwd[\'select_expression\'] = "\'%s\' AS accounting_transaction_line_currency" % id\n
\n
# precision for editable fields\n
params = context.ERP5Accounting_getParams(selection_name)\n
if params.get(\'precision\', None) is not None:\n
  context.REQUEST.set(\'precision\', params[\'precision\'])\n
\n
# XXX workaround for #458, we rewrite sort_on id to sort_on using\n
# strict_membership.\n
new_sort_on = []\n
if sort_on is not None:\n
  for sort_on_item in sort_on:\n
    if sort_on_item[0] == \'preferred_gap_id\':\n
      new_sort_on.append(\n
            (\'preferred_gap_strict_membership_id\', sort_on_item[1]))\n
    else:\n
      new_sort_on.append(sort_on_item)\n
\n
return context.portal_catalog(sort_on=new_sort_on, **kwd)\n


]]></string> </value>
        </item>
        <item>
            <key> <string>_code</string> </key>
            <value>
              <none/>
            </value>
        </item>
        <item>
            <key> <string>_filepath</string> </key>
            <value>
              <none/>
            </value>
        </item>
        <item>
            <key> <string>_params</string> </key>
            <value> <string>sort_on=None, selection=None, selection_name=None, **kwd</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>3</int> </value>
                    </item>
                    <item>
                        <key> <string>co_varnames</string> </key>
                        <value>
                          <tuple>
                            <string>sort_on</string>
                            <string>selection</string>
                            <string>selection_name</string>
                            <string>kwd</string>
                            <string>_getitem_</string>
                            <string>currency</string>
                            <string>_getattr_</string>
                            <string>id</string>
                            <string>KeyError</string>
                            <string>_write_</string>
                            <string>context</string>
                            <string>params</string>
                            <string>None</string>
                            <string>new_sort_on</string>
                            <string>_getiter_</string>
                            <string>sort_on_item</string>
                            <string>_apply_</string>
                          </tuple>
                        </value>
                    </item>
                  </dictionary>
                </state>
              </object>
            </value>
        </item>
        <item>
            <key> <string>func_defaults</string> </key>
            <value>
              <tuple>
                <none/>
                <none/>
                <none/>
              </tuple>
            </value>
        </item>
        <item>
            <key> <string>id</string> </key>
            <value> <string>AccountModule_getAccountList</string> </value>
        </item>
        <item>
            <key> <string>warnings</string> </key>
            <value>
              <tuple/>
            </value>
        </item>
      </dictionary>
    </pickle>
  </record>
</ZopeData>
