<?xml version="1.0"?>
<ZopeData>
  <record id="1" aka="AAAAAAAAAAE=">
    <pickle>
      <tuple>
        <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
        <tuple/>
      </tuple>
    </pickle>
    <pickle>
      <dictionary>
        <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_subpath</string> </key>
                                <value> <string>traverse_subpath</string> </value>
                            </item>
                          </dictionary>
                        </value>
                    </item>
                  </dictionary>
                </state>
              </object>
            </value>
        </item>
        <item>
            <key> <string>_text</string> </key>
            <value> <string encoding="cdata"><![CDATA[

<tal:block\n
  xmlns:tal="http://xml.zope.org/namespaces/tal"\n
  xmlns:metal="http://xml.zope.org/namespaces/metal"\n
  xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n
  tal:define="field_id here/getId;\n
              form_id python: here.getForm().id;\n
              selection_name here/getSelectionName;\n
              selection here/getSelection;\n
              portal_url_string here/getPortalUrlString;\n
              real_context here/getContext;\n
              context_url real_context/absolute_url;\n
              md5_string here/getMD5Checksum;\n
              hide_rows_on_no_search_criterion here/isHideRowsOnNoSearchCriterion;\n
              line_list here/query;\n
              is_domain_tree_mode here/isDomainTreeMode;\n
              is_report_tree_mode here/isReportTreeMode;\n
              is_domain_tree_supported here/isDomainTreeSupported;\n
              is_report_tree_supported here/isReportTreeSupported;\n
              show_select_column here/showSelectColumn;\n
              show_anchor_column here/showAnchorColumn;\n
              show_search_line here/showSearchLine;\n
              is_web_mode request/is_web_mode | nothing;\n
              list_style python:request.get(\'list_style\', \n
                selection.getParams().get(\'list_style\', is_web_mode and \'table\' or None));\n
              is_gadget_mode request/is_gadget_mode | nothing;\n
              ">\n
  <!-- ListBox starts here.  -->\n
  <input type="hidden" name="list_selection_name" value="default" tal:attributes="value selection_name" />\n
  <input type="hidden" name="list_selection_name" value="default"\n
                       tal:attributes="value selection_name;\n
                                       name string:${field_id}_list_selection_name" />\n
  <input tal:condition="md5_string" type="hidden" name="md5_object_uid_list" value="checksum" tal:attributes="value md5_string" />\n
  \n
  <tal:block tal:condition="is_gadget_mode">\n
    <tal:block tal:define="global box_relative_url python: request.get(\'box_relative_url\', \'\');\n
               global box python: real_context.restrictedTraverse(box_relative_url); \n
               global box_id python: \'visual_%s\' %box_relative_url.split(\'/\')[-1];\n
               global dom_id python: request.get(\'dom_id\',None) or box_id;">\n
      <input tal:condition="python:form_id" \n
            type="hidden" name="gadget_form_id"\n
            tal:attributes="value form_id" />\n
    </tal:block>\n
  </tal:block>\n
\n
  <tal:replace tal:content="nothing">\n
    Because TAL cannot accept unbalanced tags, the support for a domain tree is realized by a macro.\n
    The macro ListBoxContainer is a no-op, if not in domain tree mode. Otherwise, the macro constructs\n
    a domain tree and extracts the body in an extra table.\n
  </tal:replace>\n
\n
  <tal:block tal:define="expand python: 0">\n
    <tal:block metal:define-macro="ListBoxContainer">\n
      <tal:block tal:condition="expand">\n
        <table tal:condition="is_domain_tree_mode"\n
          style="width: 100%;" cellpadding="0" cellspacing="0"\n
          summary="This table contains the domain tree with the switch button"\n
          tal:define="selected_domain_path here/getSelectedDomainPath">\n
          <tr>\n
            <td valign="top">\n
              <select name="domain_root_url"\n
                tal:attributes="onChange string:submitAction(this.form, \'${context_url}/setDomainRoot\')">\n
                <tal:block tal:repeat="c here/getDomainRootList">\n
                  <option value="base_domain"\n
                    tal:define="path python: c[0]; title python: c[1]"\n
                    tal:attributes="selected python: path == selected_domain_path; value path"\n
                    tal:content="title"\n
                    i18n:translate="" i18n:domain="ui">Base Domain</option>\n
                </tal:block>\n
              </select>\n
              <table id="listbox_domain_tree_table" cellpadding="0"\n
                summary="This table contains the domain tree"\n
                class="listbox_domain_tree_table"\n
                tal:attributes="id string:${field_id}_domain_tree_table"\n
                tal:define="report_tree_list python: here.makeReportTreeList(report_path = selected_domain_path, unfolded_list = selection.getDomainList(), is_report_opened = False);\n
                            total_depth python: max([report_tree.depth for report_tree in report_tree_list] + [-1])">\n
                <tr tal:repeat="report_tree report_tree_list">\n
                  <tal:block tal:repeat="i python: range(report_tree.depth)">\n
                    <td width="12" nowrap="nowrap">&nbsp;</td>\n
                  </tal:block>\n
\t\t              <td colspan="1" style="text-align: left; vertical-align: top; white-space: nowrap;"\n
                    tal:attributes="colspan python: total_depth - report_tree.depth + 1">\n
                    <a href="method" class="tree_open"\n
                      tal:condition="report_tree/is_open"\n
                      tal:attributes="href string:foldDomain?domain_url=${report_tree/domain_url}&form_id=${form_id}&list_selection_name=${selection_name}&domain_depth:int=${report_tree/depth}">\n
                      <b tal:content="report_tree/obj/getTranslatedTitleOrId">Domain</b></a>\n
                    <a href="method" class="tree_closed"\n
                      tal:condition="not: report_tree/is_open"\n
                      tal:attributes="href string:unfoldDomain?domain_url=${report_tree/domain_url}&form_id=${form_id}&list_selection_name=${selection_name}&domain_depth:int=${report_tree/depth}">\n
                      <tal:block tal:content="report_tree/obj/getTranslatedTitleOrId">Domain</tal:block></a>\n
                  </td>\n
                </tr>\n
              </table>\n
            </td>\n
            <td style="vertical-align: top">\n
              <tal:block metal:define-slot="ListBoxBody" />\n
            </td>\n
          </tr>\n
        </table>\n
        <tal:block tal:condition="not: is_domain_tree_mode">\n
          <tal:block metal:define-slot="ListBoxBody" />\n
        </tal:block>\n
      </tal:block>\n
    </tal:block>\n
  </tal:block>\n
  <tal:block tal:condition="python: list_style == \'search\'">\n
    <span metal:use-macro="real_context/ListBox_asSearchStyleHTML/macros/main"/>\n
  </tal:block>\n
  <tal:block tal:condition="python: list_style == \'table\'">\n
    <span metal:use-macro="real_context/ListBox_asTableStyleHTML/macros/main"/>\n
  </tal:block>\n
  <tal:block tal:condition="python: list_style not in (\'search\', \'table\')">\n
    <span metal:use-macro="real_context/ListBox_asStandardHTML/macros/main"/>\n
  </tal:block>\n
\n
</tal:block>\n


]]></string> </value>
        </item>
        <item>
            <key> <string>content_type</string> </key>
            <value> <string>text/html</string> </value>
        </item>
        <item>
            <key> <string>expand</string> </key>
            <value> <int>0</int> </value>
        </item>
        <item>
            <key> <string>id</string> </key>
            <value> <string>ListBox_asHTML</string> </value>
        </item>
        <item>
            <key> <string>title</string> </key>
            <value> <string></string> </value>
        </item>
      </dictionary>
    </pickle>
  </record>
</ZopeData>
