Commit ba74bc07 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Take into account that the cache may be used by multiple portal sites.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2929 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6a759ae8
No related merge requests found
...@@ -30328,6 +30328,591 @@ Delivery_zIsDivergent</string> </value> ...@@ -30328,6 +30328,591 @@ Delivery_zIsDivergent</string> </value>
</value> </value>
</item> </item>
</dictionary> </dictionary>
<dictionary>
<item>
<key> <string>building_action</string> </key>
<value> <string>rebuild_action</string> </value>
</item>
<item>
<key> <string>building_actor</string> </key>
<value> <string>yo</string> </value>
</item>
<item>
<key> <string>building_comment</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>building_state</string> </key>
<value> <string>built</string> </value>
</item>
<item>
<key> <string>building_time</string> </key>
<value>
<object>
<klass> <reference id="24.1"/> </klass>
<tuple>
<none/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>_aday</string> </key>
<value> <string>Tue</string> </value>
</item>
<item>
<key> <string>_amon</string> </key>
<value> <string>Apr</string> </value>
</item>
<item>
<key> <string>_d</string> </key>
<value> <float>38094.714442</float> </value>
</item>
<item>
<key> <string>_day</string> </key>
<value> <int>19</int> </value>
</item>
<item>
<key> <string>_dayoffset</string> </key>
<value> <int>2</int> </value>
</item>
<item>
<key> <string>_fday</string> </key>
<value> <string>Tuesday</string> </value>
</item>
<item>
<key> <string>_fmon</string> </key>
<value> <string>April</string> </value>
</item>
<item>
<key> <string>_hour</string> </key>
<value> <int>19</int> </value>
</item>
<item>
<key> <string>_millis</string> </key>
<value> <long>1113930527790</long> </value>
</item>
<item>
<key> <string>_minute</string> </key>
<value> <int>8</int> </value>
</item>
<item>
<key> <string>_month</string> </key>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>_nearsec</string> </key>
<value> <float>47.0</float> </value>
</item>
<item>
<key> <string>_pday</string> </key>
<value> <string>Tue.</string> </value>
</item>
<item>
<key> <string>_pm</string> </key>
<value> <string>pm</string> </value>
</item>
<item>
<key> <string>_pmhour</string> </key>
<value> <int>7</int> </value>
</item>
<item>
<key> <string>_pmon</string> </key>
<value> <string>Apr.</string> </value>
</item>
<item>
<key> <string>_second</string> </key>
<value> <float>47.79</float> </value>
</item>
<item>
<key> <string>_t</string> </key>
<value> <float>1113930527.79</float> </value>
</item>
<item>
<key> <string>_tz</string> </key>
<value> <string>GMT+2</string> </value>
</item>
<item>
<key> <string>_year</string> </key>
<value> <int>2005</int> </value>
</item>
<item>
<key> <string>time</string> </key>
<value> <float>0.714442013887</float> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
</dictionary>
<dictionary>
<item>
<key> <string>building_action</string> </key>
<value> <string>clean</string> </value>
</item>
<item>
<key> <string>building_actor</string> </key>
<value> <string>yo</string> </value>
</item>
<item>
<key> <string>building_comment</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>building_state</string> </key>
<value> <string>modified</string> </value>
</item>
<item>
<key> <string>building_time</string> </key>
<value>
<object>
<klass> <reference id="24.1"/> </klass>
<tuple>
<none/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>_aday</string> </key>
<value> <string>Tue</string> </value>
</item>
<item>
<key> <string>_amon</string> </key>
<value> <string>Apr</string> </value>
</item>
<item>
<key> <string>_d</string> </key>
<value> <float>38094.7144421</float> </value>
</item>
<item>
<key> <string>_day</string> </key>
<value> <int>19</int> </value>
</item>
<item>
<key> <string>_dayoffset</string> </key>
<value> <int>2</int> </value>
</item>
<item>
<key> <string>_fday</string> </key>
<value> <string>Tuesday</string> </value>
</item>
<item>
<key> <string>_fmon</string> </key>
<value> <string>April</string> </value>
</item>
<item>
<key> <string>_hour</string> </key>
<value> <int>19</int> </value>
</item>
<item>
<key> <string>_millis</string> </key>
<value> <long>1113930527799</long> </value>
</item>
<item>
<key> <string>_minute</string> </key>
<value> <int>8</int> </value>
</item>
<item>
<key> <string>_month</string> </key>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>_nearsec</string> </key>
<value> <float>47.0</float> </value>
</item>
<item>
<key> <string>_pday</string> </key>
<value> <string>Tue.</string> </value>
</item>
<item>
<key> <string>_pm</string> </key>
<value> <string>pm</string> </value>
</item>
<item>
<key> <string>_pmhour</string> </key>
<value> <int>7</int> </value>
</item>
<item>
<key> <string>_pmon</string> </key>
<value> <string>Apr.</string> </value>
</item>
<item>
<key> <string>_second</string> </key>
<value> <float>47.799</float> </value>
</item>
<item>
<key> <string>_t</string> </key>
<value> <float>1113930527.8</float> </value>
</item>
<item>
<key> <string>_tz</string> </key>
<value> <string>GMT+2</string> </value>
</item>
<item>
<key> <string>_year</string> </key>
<value> <int>2005</int> </value>
</item>
<item>
<key> <string>time</string> </key>
<value> <float>0.714442118056</float> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
</dictionary>
<dictionary>
<item>
<key> <string>building_action</string> </key>
<value> <string>clean</string> </value>
</item>
<item>
<key> <string>building_actor</string> </key>
<value> <string>yo</string> </value>
</item>
<item>
<key> <string>building_comment</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>building_state</string> </key>
<value> <string>modified</string> </value>
</item>
<item>
<key> <string>building_time</string> </key>
<value>
<object>
<klass> <reference id="24.1"/> </klass>
<tuple>
<none/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>_aday</string> </key>
<value> <string>Tue</string> </value>
</item>
<item>
<key> <string>_amon</string> </key>
<value> <string>Apr</string> </value>
</item>
<item>
<key> <string>_d</string> </key>
<value> <float>38094.7144422</float> </value>
</item>
<item>
<key> <string>_day</string> </key>
<value> <int>19</int> </value>
</item>
<item>
<key> <string>_dayoffset</string> </key>
<value> <int>2</int> </value>
</item>
<item>
<key> <string>_fday</string> </key>
<value> <string>Tuesday</string> </value>
</item>
<item>
<key> <string>_fmon</string> </key>
<value> <string>April</string> </value>
</item>
<item>
<key> <string>_hour</string> </key>
<value> <int>19</int> </value>
</item>
<item>
<key> <string>_millis</string> </key>
<value> <long>1113930527802</long> </value>
</item>
<item>
<key> <string>_minute</string> </key>
<value> <int>8</int> </value>
</item>
<item>
<key> <string>_month</string> </key>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>_nearsec</string> </key>
<value> <float>47.0</float> </value>
</item>
<item>
<key> <string>_pday</string> </key>
<value> <string>Tue.</string> </value>
</item>
<item>
<key> <string>_pm</string> </key>
<value> <string>pm</string> </value>
</item>
<item>
<key> <string>_pmhour</string> </key>
<value> <int>7</int> </value>
</item>
<item>
<key> <string>_pmon</string> </key>
<value> <string>Apr.</string> </value>
</item>
<item>
<key> <string>_second</string> </key>
<value> <float>47.802</float> </value>
</item>
<item>
<key> <string>_t</string> </key>
<value> <float>1113930527.8</float> </value>
</item>
<item>
<key> <string>_tz</string> </key>
<value> <string>GMT+2</string> </value>
</item>
<item>
<key> <string>_year</string> </key>
<value> <int>2005</int> </value>
</item>
<item>
<key> <string>time</string> </key>
<value> <float>0.714442152777</float> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
</dictionary>
<dictionary>
<item>
<key> <string>building_action</string> </key>
<value> <string>build</string> </value>
</item>
<item>
<key> <string>building_actor</string> </key>
<value> <string>yo</string> </value>
</item>
<item>
<key> <string>building_comment</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>building_state</string> </key>
<value> <string>built</string> </value>
</item>
<item>
<key> <string>building_time</string> </key>
<value>
<object>
<klass> <reference id="24.1"/> </klass>
<tuple>
<none/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>_aday</string> </key>
<value> <string>Tue</string> </value>
</item>
<item>
<key> <string>_amon</string> </key>
<value> <string>Apr</string> </value>
</item>
<item>
<key> <string>_d</string> </key>
<value> <float>38094.7145261</float> </value>
</item>
<item>
<key> <string>_day</string> </key>
<value> <int>19</int> </value>
</item>
<item>
<key> <string>_dayoffset</string> </key>
<value> <int>2</int> </value>
</item>
<item>
<key> <string>_fday</string> </key>
<value> <string>Tuesday</string> </value>
</item>
<item>
<key> <string>_fmon</string> </key>
<value> <string>April</string> </value>
</item>
<item>
<key> <string>_hour</string> </key>
<value> <int>19</int> </value>
</item>
<item>
<key> <string>_millis</string> </key>
<value> <long>1113930535052</long> </value>
</item>
<item>
<key> <string>_minute</string> </key>
<value> <int>8</int> </value>
</item>
<item>
<key> <string>_month</string> </key>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>_nearsec</string> </key>
<value> <float>55.0</float> </value>
</item>
<item>
<key> <string>_pday</string> </key>
<value> <string>Tue.</string> </value>
</item>
<item>
<key> <string>_pm</string> </key>
<value> <string>pm</string> </value>
</item>
<item>
<key> <string>_pmhour</string> </key>
<value> <int>7</int> </value>
</item>
<item>
<key> <string>_pmon</string> </key>
<value> <string>Apr.</string> </value>
</item>
<item>
<key> <string>_second</string> </key>
<value> <float>55.052</float> </value>
</item>
<item>
<key> <string>_t</string> </key>
<value> <float>1113930535.05</float> </value>
</item>
<item>
<key> <string>_tz</string> </key>
<value> <string>GMT+2</string> </value>
</item>
<item>
<key> <string>_year</string> </key>
<value> <int>2005</int> </value>
</item>
<item>
<key> <string>time</string> </key>
<value> <float>0.714526064818</float> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
</dictionary>
<dictionary>
<item>
<key> <string>building_action</string> </key>
<value> <string>build</string> </value>
</item>
<item>
<key> <string>building_actor</string> </key>
<value> <string>yo</string> </value>
</item>
<item>
<key> <string>building_comment</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>building_state</string> </key>
<value> <string>built</string> </value>
</item>
<item>
<key> <string>building_time</string> </key>
<value>
<object>
<klass> <reference id="24.1"/> </klass>
<tuple>
<none/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>_aday</string> </key>
<value> <string>Tue</string> </value>
</item>
<item>
<key> <string>_amon</string> </key>
<value> <string>Apr</string> </value>
</item>
<item>
<key> <string>_d</string> </key>
<value> <float>38094.7145261</float> </value>
</item>
<item>
<key> <string>_day</string> </key>
<value> <int>19</int> </value>
</item>
<item>
<key> <string>_dayoffset</string> </key>
<value> <int>2</int> </value>
</item>
<item>
<key> <string>_fday</string> </key>
<value> <string>Tuesday</string> </value>
</item>
<item>
<key> <string>_fmon</string> </key>
<value> <string>April</string> </value>
</item>
<item>
<key> <string>_hour</string> </key>
<value> <int>19</int> </value>
</item>
<item>
<key> <string>_millis</string> </key>
<value> <long>1113930535055</long> </value>
</item>
<item>
<key> <string>_minute</string> </key>
<value> <int>8</int> </value>
</item>
<item>
<key> <string>_month</string> </key>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>_nearsec</string> </key>
<value> <float>55.0</float> </value>
</item>
<item>
<key> <string>_pday</string> </key>
<value> <string>Tue.</string> </value>
</item>
<item>
<key> <string>_pm</string> </key>
<value> <string>pm</string> </value>
</item>
<item>
<key> <string>_pmhour</string> </key>
<value> <int>7</int> </value>
</item>
<item>
<key> <string>_pmon</string> </key>
<value> <string>Apr.</string> </value>
</item>
<item>
<key> <string>_second</string> </key>
<value> <float>55.055</float> </value>
</item>
<item>
<key> <string>_t</string> </key>
<value> <float>1113930535.06</float> </value>
</item>
<item>
<key> <string>_tz</string> </key>
<value> <string>GMT+2</string> </value>
</item>
<item>
<key> <string>_year</string> </key>
<value> <int>2005</int> </value>
</item>
<item>
<key> <string>time</string> </key>
<value> <float>0.714526099538</float> </value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
</dictionary>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -92698,38 +93283,19 @@ dWxlPgEAAABzAAAAAA==</string> </value> ...@@ -92698,38 +93283,19 @@ dWxlPgEAAABzAAAAAA==</string> </value>
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>from Permission import Permission\n <value> <string>valid_role_list = context.valid_roles()\n
\n
CHECKED = \'CHECKED\'\n
NOCHECKED = \'\'\n
\n
valid_role_list = context.valid_roles()\n
role_index_list = range(len(valid_role_list))\n role_index_list = range(len(valid_role_list))\n
permission_list = context.permission_settings()\n permission_list = context.possible_permissions()\n
print permission_list\n #return context.possible_permissions()\n
\n
# First, remove all permissions (very secure by default)\n
# for permission in permission_list:\n
# context.manage_permission(permission[\'name\'], [], 0)\n
\n
# permission[\'acquire\'] = NOCHECKED\n
# for role in permission[\'roles\']:\n
# role[\'checked\'] = NOCHECKED\n
\n
for permission in context.ac_inherited_permissions(1):\n
name, value = permission[:2]\n
p = Permission(name, value, context)\n
p.setRoles([])\n
\n \n
\n \n
\n # First, remove all permissions (very secure by default)\n
# No acquisition by default\n # We should keep only Manager, or we will not be able to\n
acquired_permission_list = []\n # do the end of the script\n
# No permission by default\n for permission in permission_list:\n
role_permission_dict = dict([(role_index, []) for role_index in role_index_list])\n context.manage_permission(permission, [\'Manager\'], 0)\n
\n \n
# Then, define default ERP5 permissions\n # Then, define default ERP5 permissions\n
permission_name_list = [x[\'name\'] for x in permission_list]\n
\n \n
common_permission_list = [\n common_permission_list = [\n
\'Access Transient Objects\',\n \'Access Transient Objects\',\n
...@@ -92746,93 +93312,66 @@ author_permission_list = [\n ...@@ -92746,93 +93312,66 @@ author_permission_list = [\n
\n \n
assignor_permission_list = [\n assignor_permission_list = [\n
\'Modify portal content\',\n \'Modify portal content\',\n
\'View management screens\'\n
]\n ]\n
\n \n
# Define ERP5 permissions for each role\n # Define ERP5 permissions for each role\n
erp5_permission_dict = {\n erp5_role_dict = {\n
\'Assignee\': common_permission_list,\n \'Assignee\': common_permission_list,\n
\'Assignor\': common_permission_list + author_permission_list +\\\n \'Assignor\': common_permission_list + author_permission_list +\\\n
assignor_permission_list, \n assignor_permission_list, \n
\'Associate\': common_permission_list, \n \'Associate\': common_permission_list, \n
\'Auditor\' : common_permission_list,\n \'Auditor\' : common_permission_list,\n
\'Author\': common_permission_list + author_permission_list,\n \'Author\': common_permission_list + author_permission_list,\n
\'Manager\': permission_name_list\n \'Manager\': permission_list\n
}\n }\n
\n \n
# Add ERP5 permissions\n # Add ERP5 permissions\n
for role_name in erp5_permission_dict.keys():\n erp5_permission_dict = {}\n
role_index = list(valid_role_list).index(role_name)\n for role,permission_list in erp5_role_dict.items():\n
role_permission_dict[role_index] = erp5_permission_dict[role_name]\n for permission in permission_list:\n
\n if not erp5_permission_dict.has_key(permission):\n
for permission in permission_list:\n erp5_permission_dict[permission] = []\n
permission_name = permission[\'name\']\n erp5_permission_dict[permission].append(role)\n
if permission_name in acquired_permission_list:\n
permission[\'acquire\'] = CHECKED\n
\n \n
for role in permission[\'roles\']:\n for permission,role_list in erp5_permission_dict.items():\n
name = role[\'name\']\n context.manage_permission(permission,role_list, 0)\n
pos = name.find(\'r\')\n
index = int(name[pos+1:])\n
if index in role_permission_dict.keys():\n
if permission_name in role_permission_dict[index]:\n
role[\'checked\'] = CHECKED\n
\n \n
print permission_list\n return "finished"\n
return printed\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAAAAACYAAAAmAAAAQwAA <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAAAAABIAAAASAAAAQwAA
AHMWAwAAdAAAgwAAfQEAZAEAawIAbAIAfQIAAWQCAH0DAGQDAH0EAHQFAHQGAGQEAIMCAIMAAH0H AHPAAQAAdAAAdAEAZAEAgwIAgwAAfQIAdAMAdAQAfAIAgwEAgwEAfQUAdAAAdAEAZAIAgwIAgwAA
AHQIAHQJAHwHAIMBAIMBAH0KAHQFAHQGAGQFAIMCAIMAAH0LAHwBAAR8CwACSUp4agB0DAB0BQB0 fQYAeDAAdAcAfAYAgwEARF0iAH0IAHQAAHQBAGQDAIMCAHwIAGQEAGcBAGQFAIMDAAFxQwBXZAYA
BgBkBgCDAgBkBwCDAQCDAQBEXU0AfQ0AdA4AfA0AZAAAZAgAhQIAgwIAdAwAAoMBAFwCAH0PAH0Q ZAcAZAgAZAkAZAoAZAsAZwYAfQkAZAwAZwEAfQoAZA0AZwEAfQsAaAAAB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GAQ8BDQEUAhYABgEPARUBHwEZARYBIAIKASgBAAAAcxcAAABCYXNlX3NldERlZmF1
bHRTZWN1cml0eSgBAAAAcxcAAABCYXNlX3NldERlZmF1bHRTZWN1cml0eSgAAAAAKAAAAABzDwAA
AFNjcmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value>
</item> </item>
<item> <item>
<key> <string>_dav_writelocks</string> </key> <key> <string>_dav_writelocks</string> </key>
...@@ -92884,11 +93423,6 @@ AFNjcmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value> ...@@ -92884,11 +93423,6 @@ AFNjcmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>_print_</string>
<string>_print</string>
<string>Permission</string>
<string>CHECKED</string>
<string>NOCHECKED</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>valid_role_list</string> <string>valid_role_list</string>
...@@ -92898,30 +93432,15 @@ AFNjcmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value> ...@@ -92898,30 +93432,15 @@ AFNjcmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value>
<string>permission_list</string> <string>permission_list</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>permission</string> <string>permission</string>
<string>_getitem_</string>
<string>name</string>
<string>value</string>
<string>p</string>
<string>acquired_permission_list</string>
<string>dict</string>
<string>append</string>
<string>$append0</string>
<string>role_index</string>
<string>role_permission_dict</string>
<string>x</string>
<string>permission_name_list</string>
<string>common_permission_list</string> <string>common_permission_list</string>
<string>author_permission_list</string> <string>author_permission_list</string>
<string>assignor_permission_list</string> <string>assignor_permission_list</string>
<string>erp5_role_dict</string>
<string>erp5_permission_dict</string> <string>erp5_permission_dict</string>
<string>role_name</string>
<string>list</string>
<string>_write_</string>
<string>permission_name</string>
<string>role</string> <string>role</string>
<string>pos</string> <string>_write_</string>
<string>int</string> <string>_getitem_</string>
<string>index</string> <string>role_list</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -102393,7 +102912,7 @@ try:\n ...@@ -102393,7 +102912,7 @@ try:\n
except:\n except:\n
user = None\n user = None\n
\n \n
def getModuleItemList(user=None):\n def getModuleItemList(user=None, portal_path=None):\n
translate = context.translation_service.translate\n translate = context.translation_service.translate\n
\n \n
item_list = []\n item_list = []\n
...@@ -102416,44 +102935,48 @@ def getModuleItemList(user=None):\n ...@@ -102416,44 +102935,48 @@ def getModuleItemList(user=None):\n
return item_list\n return item_list\n
\n \n
getModuleItemList = CachingMethod(getModuleItemList, id=\'ERP5Site_getModuleItemList\')\n getModuleItemList = CachingMethod(getModuleItemList, id=\'ERP5Site_getModuleItemList\')\n
return getModuleItemList(user=user)\n portal_path = context.getPortalObject().getPhysicalPath()\n
return getModuleItemList(user=user, portal_path=portal_path)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAAAAAAcAAAAIAAAAQwAA <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAAAAAAgAAAAJAAAAQwAA
AHN3AAAAZAEAawAAbAEAfQEAAXkrAHQCAHQCAHQCAHQDAGQCAIMCAGQDAIMCAIMAAGQEAIMCAIMA AHOeAAAAZAEAawAAbAEAfQEAAXkrAHQCAHQCAHQCAHQDAGQCAIMCAGQDAIMCAIMAAGQEAIMCAIMA
AH0EAFduDQABAQF0BQB9BABuAQBYdAUAZAUAhAEAfQYAfAEAfAYAZAYAZAcAgwEBfQYAfAYAZAgA AH0EAFduDQABAQF0BQB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4CCgIMFhIBKAEAAABzGgAAAEVSUDVTaXRlX2dldE1vZHVsZUl0ZW1MaXN0KAEA AABfZ2V0YXR0cl9zBwAAAGNvbnRleHRzBAAAAHVzZXJzBAAAAE5vbmVzEQAAAGdldE1vZHVsZUl0
AABzGgAAAEVSUDVTaXRlX2dldE1vZHVsZUl0ZW1MaXN0KAAAAAAoAAAAAHMPAAAAU2NyaXB0IChQ ZW1MaXN0cwsAAABwb3J0YWxfcGF0aCgAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMaAAAA
eXRob24pcwgAAAA8bW9kdWxlPgEAAABzAAAAAA==</string> </value> RVJQNVNpdGVfZ2V0TW9kdWxlSXRlbUxpc3QBAAAAcw4AAAANAgMBLgIKAg8WEgEeASgBAAAAcxoA
AABFUlA1U2l0ZV9nZXRNb2R1bGVJdGVtTGlzdCgBAAAAcxoAAABFUlA1U2l0ZV9nZXRNb2R1bGVJ
dGVtTGlzdCgAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAA
AAA=</string> </value>
</item> </item>
<item> <item>
<key> <string>_filepath</string> </key> <key> <string>_filepath</string> </key>
...@@ -102490,10 +103013,11 @@ eXRob24pcwgAAAA8bW9kdWxlPgEAAABzAAAAAA==</string> </value> ...@@ -102490,10 +103013,11 @@ eXRob24pcwgAAAA8bW9kdWxlPgEAAABzAAAAAA==</string> </value>
<string>Products.ERP5Type.Cache</string> <string>Products.ERP5Type.Cache</string>
<string>CachingMethod</string> <string>CachingMethod</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>user</string> <string>user</string>
<string>None</string> <string>None</string>
<string>getModuleItemList</string> <string>getModuleItemList</string>
<string>portal_path</string>
</tuple> </tuple>
</value> </value>
</item> </item>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment