<?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>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># Probe known skins to determine whether erp5_base and erp5_dms are installed.\n
basic_mode = (getattr(context, \'Currency_view\', None) is not None)\n
dms_mode = (getattr(context, \'DocumentModule_viewDocumentList\', None) is not None)\n
\n
express_pref_dict = context.ERP5Site_getExpressPreferenceDict()\n
subscription_status = express_pref_dict.get(\'subscription_status\')\n
configuration_status = express_pref_dict.get(\'configuration_status\')\n
user_id = express_pref_dict.get(\'user_id\')\n
\n
SUPPORT_ENABLED = \'support_enabled\'\n
SUPPORT_DISABLED = \'support_disabled\'\n
ADVERTISEMENT_ENABLED = \'advertisement_enabled\'\n
\n
portal = context.getPortalObject()\n
\n
if getattr(portal, \'portal_wizard\', None) is None:\n
  express_mode = SUPPORT_DISABLED\n
elif subscription_status:\n
  if user_id:\n
    express_mode = SUPPORT_ENABLED\n
  else:\n
    express_mode = SUPPORT_DISABLED\n
else:\n
  express_mode = ADVERTISEMENT_ENABLED\n
\n
# One more test for express\n
# If a user uses an account for configurator, only express tab will be displayed.\n
member = portal.portal_membership.getAuthenticatedMember()\n
role_list = list(member.getRoles())\n
role_list.sort()\n
group_list = ()\n
getGroups = getattr(member, \'getGroups\', None)\n
if role_list == [\'Authenticated\', \'Member\'] and not getGroups():\n
  basic_mode = False\n
  dms_mode = False\n
\n
return {\'basic_mode\': basic_mode,\n
        \'dms_mode\': dms_mode,\n
        \'express_mode\': express_mode,}\n
</string> </value>
        </item>
        <item>
            <key> <string>_code</string> </key>
            <value>
              <none/>
            </value>
        </item>
        <item>
            <key> <string>_params</string> </key>
            <value> <string></string> </value>
        </item>
        <item>
            <key> <string>_proxy_roles</string> </key>
            <value>
              <tuple>
                <string>Manager</string>
              </tuple>
            </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>0</int> </value>
                    </item>
                    <item>
                        <key> <string>co_varnames</string> </key>
                        <value>
                          <tuple>
                            <string>getattr</string>
                            <string>context</string>
                            <string>None</string>
                            <string>basic_mode</string>
                            <string>dms_mode</string>
                            <string>_getattr_</string>
                            <string>express_pref_dict</string>
                            <string>subscription_status</string>
                            <string>configuration_status</string>
                            <string>user_id</string>
                            <string>SUPPORT_ENABLED</string>
                            <string>SUPPORT_DISABLED</string>
                            <string>ADVERTISEMENT_ENABLED</string>
                            <string>portal</string>
                            <string>express_mode</string>
                            <string>member</string>
                            <string>list</string>
                            <string>role_list</string>
                            <string>group_list</string>
                            <string>getGroups</string>
                            <string>False</string>
                          </tuple>
                        </value>
                    </item>
                  </dictionary>
                </state>
              </object>
            </value>
        </item>
        <item>
            <key> <string>func_defaults</string> </key>
            <value>
              <none/>
            </value>
        </item>
        <item>
            <key> <string>id</string> </key>
            <value> <string>ERP5Site_getConfiguredStatusDict</string> </value>
        </item>
        <item>
            <key> <string>title</string> </key>
            <value> <string>ProxyRole(Manager)</string> </value>
        </item>
        <item>
            <key> <string>warnings</string> </key>
            <value>
              <tuple/>
            </value>
        </item>
      </dictionary>
    </pickle>
  </record>
</ZopeData>
