From 4fef4171ba820bbaa2682f524eb13e75246506d2 Mon Sep 17 00:00:00 2001
From: Ivan Tyagov <ivan@nexedi.com>
Date: Thu, 13 Nov 2008 08:32:32 +0000
Subject: [PATCH] Move portal_sessions to erp5_core

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24573 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_caches/erp5_session_cache.xml      |  75 -----------
 .../portal_caches/erp5_session_cache/1.xml    |  93 --------------
 .../PathTemplateItem/portal_sessions.xml      | 102 ---------------
 .../portal_types/Session%20Tool.xml           | 118 ------------------
 bt5/erp5_commerce/bt/change_log               |   3 +
 bt5/erp5_commerce/bt/revision                 |   2 +-
 bt5/erp5_commerce/bt/template_path_list       |   3 -
 .../bt/template_portal_type_id_list           |   1 -
 8 files changed, 4 insertions(+), 393 deletions(-)
 delete mode 100644 bt5/erp5_commerce/PathTemplateItem/portal_caches/erp5_session_cache.xml
 delete mode 100644 bt5/erp5_commerce/PathTemplateItem/portal_caches/erp5_session_cache/1.xml
 delete mode 100644 bt5/erp5_commerce/PathTemplateItem/portal_sessions.xml
 delete mode 100644 bt5/erp5_commerce/PortalTypeTemplateItem/portal_types/Session%20Tool.xml

diff --git a/bt5/erp5_commerce/PathTemplateItem/portal_caches/erp5_session_cache.xml b/bt5/erp5_commerce/PathTemplateItem/portal_caches/erp5_session_cache.xml
deleted file mode 100644
index 34f68d7329..0000000000
--- a/bt5/erp5_commerce/PathTemplateItem/portal_caches/erp5_session_cache.xml
+++ /dev/null
@@ -1,75 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <global name="CacheFactory" module="Products.ERP5Type.Document.CacheFactory"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>_count</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>_mt_index</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>_tree</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>cache_duration</string> </key>
-            <value> <int>86400</int> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>erp5_session_cache</string> </value>
-        </item>
-        <item>
-            <key> <string>last_id</string> </key>
-            <value> <string>2</string> </value>
-        </item>
-        <item>
-            <key> <string>portal_type</string> </key>
-            <value> <string>Cache Factory</string> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Session Cache</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="2" aka="AAAAAAAAAAI=">
-    <pickle>
-      <global name="Length" module="BTrees.Length"/>
-    </pickle>
-    <pickle> <int>0</int> </pickle>
-  </record>
-  <record id="3" aka="AAAAAAAAAAM=">
-    <pickle>
-      <global name="OOBTree" module="BTrees._OOBTree"/>
-    </pickle>
-    <pickle>
-      <none/>
-    </pickle>
-  </record>
-  <record id="4" aka="AAAAAAAAAAQ=">
-    <pickle>
-      <global name="OOBTree" module="BTrees._OOBTree"/>
-    </pickle>
-    <pickle>
-      <none/>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_commerce/PathTemplateItem/portal_caches/erp5_session_cache/1.xml b/bt5/erp5_commerce/PathTemplateItem/portal_caches/erp5_session_cache/1.xml
deleted file mode 100644
index 69c3395389..0000000000
--- a/bt5/erp5_commerce/PathTemplateItem/portal_caches/erp5_session_cache/1.xml
+++ /dev/null
@@ -1,93 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <global name="RamCache" module="Products.ERP5Type.Document.RamCache"/>
-        <tuple/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>_count</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>_mt_index</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>_tree</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>cache_expire_check_interval</string> </key>
-            <value> <int>1800</int> </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>1</string> </value>
-        </item>
-        <item>
-            <key> <string>int_index</string> </key>
-            <value> <int>0</int> </value>
-        </item>
-        <item>
-            <key> <string>portal_type</string> </key>
-            <value> <string>Ram Cache</string> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>RAM Cache</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="2" aka="AAAAAAAAAAI=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>BTrees.Length</string>
-          <string>Length</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle> <int>0</int> </pickle>
-  </record>
-  <record id="3" aka="AAAAAAAAAAM=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>BTrees.OOBTree</string>
-          <string>OOBTree</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <none/>
-    </pickle>
-  </record>
-  <record id="4" aka="AAAAAAAAAAQ=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>BTrees.OOBTree</string>
-          <string>OOBTree</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <none/>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_commerce/PathTemplateItem/portal_sessions.xml b/bt5/erp5_commerce/PathTemplateItem/portal_sessions.xml
deleted file mode 100644
index 9380166c1f..0000000000
--- a/bt5/erp5_commerce/PathTemplateItem/portal_sessions.xml
+++ /dev/null
@@ -1,102 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.Tool.SessionTool</string>
-          <string>SessionTool</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>__ac_local_roles__</string> </key>
-            <value>
-              <none/>
-            </value>
-        </item>
-        <item>
-            <key> <string>_count</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>_mt_index</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>_owner</string> </key>
-            <value>
-              <none/>
-            </value>
-        </item>
-        <item>
-            <key> <string>_tree</string> </key>
-            <value>
-              <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
-            </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>portal_sessions</string> </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Session Tool</string> </value>
-        </item>
-        <item>
-            <key> <string>uid</string> </key>
-            <value>
-              <none/>
-            </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-  <record id="2" aka="AAAAAAAAAAI=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>BTrees.Length</string>
-          <string>Length</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle> <int>0</int> </pickle>
-  </record>
-  <record id="3" aka="AAAAAAAAAAM=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>BTrees.OOBTree</string>
-          <string>OOBTree</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <none/>
-    </pickle>
-  </record>
-  <record id="4" aka="AAAAAAAAAAQ=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>BTrees.OOBTree</string>
-          <string>OOBTree</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <none/>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_commerce/PortalTypeTemplateItem/portal_types/Session%20Tool.xml b/bt5/erp5_commerce/PortalTypeTemplateItem/portal_types/Session%20Tool.xml
deleted file mode 100644
index bf9ee688d4..0000000000
--- a/bt5/erp5_commerce/PortalTypeTemplateItem/portal_types/Session%20Tool.xml
+++ /dev/null
@@ -1,118 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
-  <record id="1" aka="AAAAAAAAAAE=">
-    <pickle>
-      <tuple>
-        <tuple>
-          <string>Products.ERP5Type.ERP5Type</string>
-          <string>ERP5TypeInformation</string>
-        </tuple>
-        <none/>
-      </tuple>
-    </pickle>
-    <pickle>
-      <dictionary>
-        <item>
-            <key> <string>__ac_local_roles__</string> </key>
-            <value>
-              <none/>
-            </value>
-        </item>
-        <item>
-            <key> <string>_actions</string> </key>
-            <value>
-              <tuple/>
-            </value>
-        </item>
-        <item>
-            <key> <string>_aliases</string> </key>
-            <value>
-              <dictionary/>
-            </value>
-        </item>
-        <item>
-            <key> <string>_owner</string> </key>
-            <value>
-              <none/>
-            </value>
-        </item>
-        <item>
-            <key> <string>_roles</string> </key>
-            <value>
-              <list/>
-            </value>
-        </item>
-        <item>
-            <key> <string>acquire_local_roles</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-        <item>
-            <key> <string>allowed_content_types</string> </key>
-            <value>
-              <tuple/>
-            </value>
-        </item>
-        <item>
-            <key> <string>base_category_list</string> </key>
-            <value>
-              <tuple/>
-            </value>
-        </item>
-        <item>
-            <key> <string>content_icon</string> </key>
-            <value> <string>folder_icon.gif</string> </value>
-        </item>
-        <item>
-            <key> <string>content_meta_type</string> </key>
-            <value> <string>ERP5 Session Tool</string> </value>
-        </item>
-        <item>
-            <key> <string>description</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>factory</string> </key>
-            <value> <string>addFolder</string> </value>
-        </item>
-        <item>
-            <key> <string>filter_content_types</string> </key>
-            <value> <int>1</int> </value>
-        </item>
-        <item>
-            <key> <string>group_list</string> </key>
-            <value>
-              <tuple/>
-            </value>
-        </item>
-        <item>
-            <key> <string>hidden_content_type_list</string> </key>
-            <value>
-              <tuple/>
-            </value>
-        </item>
-        <item>
-            <key> <string>id</string> </key>
-            <value> <string>Session Tool</string> </value>
-        </item>
-        <item>
-            <key> <string>init_script</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>permission</string> </key>
-            <value> <string></string> </value>
-        </item>
-        <item>
-            <key> <string>property_sheet_list</string> </key>
-            <value>
-              <tuple/>
-            </value>
-        </item>
-        <item>
-            <key> <string>title</string> </key>
-            <value> <string>Session Tool</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
-</ZopeData>
diff --git a/bt5/erp5_commerce/bt/change_log b/bt5/erp5_commerce/bt/change_log
index 3d2020ed84..e6d723332b 100644
--- a/bt5/erp5_commerce/bt/change_log
+++ b/bt5/erp5_commerce/bt/change_log
@@ -1,3 +1,6 @@
+2008-11-13 ivan
+* Move portal_sessions to erp5_core
+
 2008-08-28 ivan
 * Decrease default session life time
 
diff --git a/bt5/erp5_commerce/bt/revision b/bt5/erp5_commerce/bt/revision
index 5a396e28e8..3fdc173dab 100644
--- a/bt5/erp5_commerce/bt/revision
+++ b/bt5/erp5_commerce/bt/revision
@@ -1 +1 @@
-121
\ No newline at end of file
+122
\ No newline at end of file
diff --git a/bt5/erp5_commerce/bt/template_path_list b/bt5/erp5_commerce/bt/template_path_list
index e1b1d2d80d..e69de29bb2 100644
--- a/bt5/erp5_commerce/bt/template_path_list
+++ b/bt5/erp5_commerce/bt/template_path_list
@@ -1,3 +0,0 @@
-portal_caches/erp5_session_cache
-portal_caches/erp5_session_cache/**
-portal_sessions
\ No newline at end of file
diff --git a/bt5/erp5_commerce/bt/template_portal_type_id_list b/bt5/erp5_commerce/bt/template_portal_type_id_list
index 2029d6e56a..e69de29bb2 100644
--- a/bt5/erp5_commerce/bt/template_portal_type_id_list
+++ b/bt5/erp5_commerce/bt/template_portal_type_id_list
@@ -1 +0,0 @@
-Session Tool
\ No newline at end of file
-- 
2.30.9