Commit 76ecef89 authored by Georgios Dagkakis's avatar Georgios Dagkakis

All business templates migrated to new format with files like Python Scripts,...

All business templates migrated to new format with files like Python Scripts, Web Pages, Web Scripts etc. separate to xml
parent 1e028d6d

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

......@@ -3,7 +3,7 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="WebSite" module="Products.ERP5Type.Document.WebSite"/>
<global name="WebSite" module="Products.ERP5.Document.WebSite"/>
<tuple/>
</tuple>
</pickle>
......@@ -245,7 +245,7 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="WebSiteTraversalHook" module="Products.ERP5Type.Document.WebSite"/>
<global name="WebSiteTraversalHook" module="Products.ERP5.Document.WebSite"/>
<tuple/>
</tuple>
</pickle>
......
document_module
image_module
person_module
\ No newline at end of file
<registered_skin_selection>
<skin_folder_selection>
<skin_folder>cloudooo_erp5_base</skin_folder>
<skin_selection>View,Cloudooo</skin_selection>
<skin_selection>Cloudooo,View</skin_selection>
</skin_folder_selection>
<skin_folder_selection>
<skin_folder>cloudooo_erp5_ingestion</skin_folder>
<skin_selection>View,Cloudooo</skin_selection>
<skin_selection>Cloudooo,View</skin_selection>
</skin_folder_selection>
<skin_folder_selection>
<skin_folder>cloudooo_web</skin_folder>
......
"""
Get Person assignment details.
"""
#For Cloudooo : Proxify it to allow anonymous user to discover metadata of uploaded file
from Products.ERP5Type.Cache import CachingMethod
portal = context.getPortalObject()
result = {'group_list': [],
'site_list': [],
'function_list': [],
'destination_trade_relative_url': None}
person = portal.ERP5Site_getAuthenticatedMemberPersonValue(user_name=user_name)
if person is None:
return result
def getAssignmentDict(username):
person = portal.restrictedTraverse(person_relative_url)
assignment_list = person.Person_getAvailableAssignmentValueList()
for assignment in assignment_list:
assignment = assignment.getObject()
result['group_list'].extend(assignment.getGroupList())
result['function_list'].extend(assignment.getFunctionList())
result['site_list'].extend(assignment.getSiteList())
result['destination_trade_relative_url'] = assignment.getDestinationTradeRelativeUrl()
return result
person_relative_url = person.getRelativeUrl()
getAssignmentDict = CachingMethod(getAssignmentDict,
("ERP5Site_getPersonAssignmentDict",),
cache_factory='erp5_ui_short')
return getAssignmentDict(person_relative_url)
......@@ -48,43 +48,6 @@
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>"""\n
Get Person assignment details.\n
"""\n
#For Cloudooo : Proxify it to allow anonymous user to discover metadata of uploaded file\n
\n
from Products.ERP5Type.Cache import CachingMethod\n
\n
portal = context.getPortalObject()\n
result = {\'group_list\': [],\n
\'site_list\': [],\n
\'function_list\': [],\n
\'destination_trade_relative_url\': None}\n
person = portal.ERP5Site_getAuthenticatedMemberPersonValue(user_name=user_name)\n
\n
if person is None:\n
return result\n
\n
def getAssignmentDict(username):\n
person = portal.restrictedTraverse(person_relative_url)\n
assignment_list = person.Person_getAvailableAssignmentValueList()\n
for assignment in assignment_list:\n
assignment = assignment.getObject()\n
result[\'group_list\'].extend(assignment.getGroupList())\n
result[\'function_list\'].extend(assignment.getFunctionList())\n
result[\'site_list\'].extend(assignment.getSiteList())\n
result[\'destination_trade_relative_url\'] = assignment.getDestinationTradeRelativeUrl()\n
return result\n
\n
person_relative_url = person.getRelativeUrl()\n
getAssignmentDict = CachingMethod(getAssignmentDict,\n
("ERP5Site_getPersonAssignmentDict",),\n
cache_factory=\'erp5_ui_short\')\n
return getAssignmentDict(person_relative_url)\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>user_name=None</string> </value>
......
"""Script use by notification message to resolve the mapping"""
#XXX: Commmit it in erp5_base !
return mapping_dict