<?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>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>from ZTUtils import LazyFilter\n
portal = context.getPortalObject()\n
\n
if not organisation:\n
  organisation = portal.portal_preferences\\\n
               .getPreferredAccountingTransactionSourceSection()\n
\n
if not organisation:\n
  return [(\'\', \'\')]\n
\n
\n
organisation_value = portal.restrictedTraverse(organisation)\n
item_list = [(\'\', \'\')]\n
for bank in LazyFilter(organisation_value.contentValues(\n
                portal_type=portal.getPortalPaymentNodeTypeList()), skip=\'View\'):\n
\n
  if skip_invalidated_bank_accounts and bank.getValidationState() == \'invalidated\':\n
    continue\n
     \n
  if bank.getReference() and bank.getTitle() \\\n
                  and bank.getReference() != bank.getTitle():\n
    item_list.append((\'%s - %s\' % ( bank.getReference(),\n
                                    bank.getTitle() or \n
                                    bank.getSourceFreeText() or\n
                                    bank.getSourceTitle()),\n
                                    bank.getRelativeUrl()))\n
  else:\n
    item_list.append(( bank.getReference() or\n
                       bank.getTitle() or \n
                       bank.getSourceFreeText() or\n
                       bank.getSourceTitle(),\n
                       bank.getRelativeUrl() ))\n
\n
return item_list\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>_owner</string> </key>
            <value>
              <none/>
            </value>
        </item>
        <item>
            <key> <string>_params</string> </key>
            <value> <string>organisation=None, skip_invalidated_bank_accounts=1</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>2</int> </value>
                    </item>
                    <item>
                        <key> <string>co_varnames</string> </key>
                        <value>
                          <tuple>
                            <string>organisation</string>
                            <string>skip_invalidated_bank_accounts</string>
                            <string>ZTUtils</string>
                            <string>LazyFilter</string>
                            <string>_getattr_</string>
                            <string>context</string>
                            <string>portal</string>
                            <string>organisation_value</string>
                            <string>item_list</string>
                            <string>_getiter_</string>
                            <string>bank</string>
                          </tuple>
                        </value>
                    </item>
                  </dictionary>
                </state>
              </object>
            </value>
        </item>
        <item>
            <key> <string>func_defaults</string> </key>
            <value>
              <tuple>
                <none/>
                <int>1</int>
              </tuple>
            </value>
        </item>
        <item>
            <key> <string>id</string> </key>
            <value> <string>AccountModule_getBankAccountItemList</string> </value>
        </item>
        <item>
            <key> <string>warnings</string> </key>
            <value>
              <tuple/>
            </value>
        </item>
      </dictionary>
    </pickle>
  </record>
</ZopeData>
