Base_preConvert.xml 2.9 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
<?xml version="1.0"?>
<ZopeData>
  <record id="1" aka="AAAAAAAAAAE=">
    <pickle>
      <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
    </pickle>
    <pickle>
      <dictionary>
        <item>
            <key> <string>Script_magic</string> </key>
            <value> <int>3</int> </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>"""\n
54
  Do actual conversion of any Base type.\n
55 56 57
"""\n
portal = context.getPortalObject()\n
\n
58 59
format_kw = {\'format\': format,\n
            \'quality\': quality}\n
60
            \n
61 62
for display in display_list:\n
  format_kw[\'display\'] = display\n
63 64
  if display is None:\n
    format_kw.pop(\'display\')\n
65
  context.convert(**format_kw)\n
66 67 68 69
</string> </value>
        </item>
        <item>
            <key> <string>_params</string> </key>
70 71 72 73 74 75 76 77 78
            <value> <string>format, quality, display_list</string> </value>
        </item>
        <item>
            <key> <string>_proxy_roles</string> </key>
            <value>
              <tuple>
                <string>Manager</string>
              </tuple>
            </value>
79 80 81 82 83 84 85 86 87
        </item>
        <item>
            <key> <string>id</string> </key>
            <value> <string>Base_preConvert</string> </value>
        </item>
      </dictionary>
    </pickle>
  </record>
</ZopeData>