<?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>from Products.CMFActivity.ActiveResult import ActiveResult\n
\n
portal = context.getPortalObject()\n
web_site_module = getattr(portal, \'web_site_module\', None)\n
if web_site_module is None:\n
  # web_site_module is not present yet, so it is impossible\n
  # to keep the promise\n
  return False\n
\n
shacache = getattr(web_site_module, \'shacache\', None)\n
shadir = getattr(web_site_module, \'shadir\', None)\n
\n
expected_state = context.portal_preferences.getPreferredShacacheWebsiteExpectedState("published")\n
\n
active_result = ActiveResult()\n
if expected_state == "published" and shacache is None:\n
  severity = 1\n
  summary = "Shacache WebSite do not exist"\n
  detail = ""\n
elif expected_state == "published" and shadir is None:\n
  severity = 1\n
  summary = "Shadir WebSite do not exist"\n
  detail = ""\n
elif expected_state == "published" and shacache.getSkinSelectionName() != "SHACACHE":\n
  severity = 1\n
  summary = "shacache site don\'t have SHACACHE as skin selection name"\n
  detail = ""\n
elif expected_state == "published" and shadir.getSkinSelectionName() != "SHADIR":\n
  severity = 1\n
  summary = "shadir site don\'t have SHADIR as skin selection name"\n
  detail = ""\n
elif shacache is not None and shacache.getValidationState() != expected_state:\n
  severity = 1\n
  summary = "shacache site is not what is expected: %s" % expected_state\n
  detail = ""\n
elif shadir is not None and shadir.getValidationState() != expected_state:\n
  severity = 1\n
  summary = "shadir site is not published %s" % expected_state\n
  detail = ""\n
else:\n
  severity = 0\n
  summary = "Nothing to do."\n
  detail = ""\n
\n
active_result.edit(\n
  summary=summary, \n
  severity=severity,\n
  detail=detail)\n
\n
context.newActiveProcess().postResult(active_result)\n
</string> </value>
        </item>
        <item>
            <key> <string>_params</string> </key>
            <value> <string>tag, fixit=False, **kw</string> </value>
        </item>
        <item>
            <key> <string>id</string> </key>
            <value> <string>Alarm_checkPromiseShacacheWebSite</string> </value>
        </item>
      </dictionary>
    </pickle>
  </record>
</ZopeData>
