pax_global_header 0000666 0000000 0000000 00000000064 12406560543 0014517 g ustar 00root root 0000000 0000000 52 comment=2f7b81cc17551be67e0c7ad4f3589fd0a54413c4
erp5-2f7b81cc17551be67e0c7ad4f3589fd0a54413c4-bt5-erp5_data_protection/ 0000775 0000000 0000000 00000000000 12406560543 0024174 5 ustar 00root root 0000000 0000000 erp5-2f7b81cc17551be67e0c7ad4f3589fd0a54413c4-bt5-erp5_data_protection/bt5/ 0000775 0000000 0000000 00000000000 12406560543 0024666 5 ustar 00root root 0000000 0000000 erp5-2f7b81cc17551be67e0c7ad4f3589fd0a54413c4-bt5-erp5_data_protection/bt5/erp5_data_protection/ 0000775 0000000 0000000 00000000000 12406560543 0031000 5 ustar 00root root 0000000 0000000 ActionTemplateItem/ 0000775 0000000 0000000 00000000000 12406560543 0034451 5 ustar 00root root 0000000 0000000 erp5-2f7b81cc17551be67e0c7ad4f3589fd0a54413c4-bt5-erp5_data_protection/bt5/erp5_data_protection portal_types/ 0000775 0000000 0000000 00000000000 12406560543 0037176 5 ustar 00root root 0000000 0000000 erp5-2f7b81cc17551be67e0c7ad4f3589fd0a54413c4-bt5-erp5_data_protection/bt5/erp5_data_protection/ActionTemplateItem Data%20Protection%20Request%20Module/ 0000775 0000000 0000000 00000000000 12406560543 0045462 5 ustar 00root root 0000000 0000000 erp5-2f7b81cc17551be67e0c7ad4f3589fd0a54413c4-bt5-erp5_data_protection/bt5/erp5_data_protection/ActionTemplateItem/portal_types Data%20Protection%20Request%20Module/view.xml 0000664 0000000 0000000 00000004731 12406560543 0047163 0 ustar 00root root 0000000 0000000 erp5-2f7b81cc17551be67e0c7ad4f3589fd0a54413c4-bt5-erp5_data_protection/bt5/erp5_data_protection/ActionTemplateItem/portal_types
actionAAAAAAAAAAI=categoriesaction_type/object_listcategoryobject_listconditiondescriptioniconidviewpermissionsViewportal_typeAction Informationpriority1.0titleViewvisible1textstring:${object_url}/DataProtectionRequestModule_viewDataProtectionRequestList
Data%20Protection%20Request/ 0000775 0000000 0000000 00000000000 12406560543 0044105 5 ustar 00root root 0000000 0000000 erp5-2f7b81cc17551be67e0c7ad4f3589fd0a54413c4-bt5-erp5_data_protection/bt5/erp5_data_protection/ActionTemplateItem/portal_types Data%20Protection%20Request/erase_some_original_data.xml 0000664 0000000 0000000 00000006322 12406560543 0051631 0 ustar 00root root 0000000 0000000 erp5-2f7b81cc17551be67e0c7ad4f3589fd0a54413c4-bt5-erp5_data_protection/bt5/erp5_data_protection/ActionTemplateItem/portal_types
actionAAAAAAAAAAI=categoriesaction_type/object_actioncategoryobject_actionconditionAAAAAAAAAAM=descriptioniconiderase_some_original_datapermissionsViewportal_typeAction Informationpriority1.0titleErase some original datavisible1textstring:${object_url}/DataProtectionRequest_viewEraseSomeOriginalDataDialog?reset:int=1textpython:here.getValidationState() in (\'submitted\', \'open\') and [x for x in object.getPortalObject().portal_membership.getAuthenticatedMember().getRolesInContext(object) if x in (\'Assignor\', \'Manager\')] and here.getAgentValue(checked_permission=\'View\') is not None
Data%20Protection%20Request/view.xml 0000664 0000000 0000000 00000004672 12406560543 0045612 0 ustar 00root root 0000000 0000000 erp5-2f7b81cc17551be67e0c7ad4f3589fd0a54413c4-bt5-erp5_data_protection/bt5/erp5_data_protection/ActionTemplateItem/portal_types
actionAAAAAAAAAAI=categoriesaction_type/object_viewcategoryobject_viewconditiondescriptioniconidviewpermissionsViewportal_typeAction Informationpriority1.0titleViewvisible1textstring:${object_url}/DataProtectionRequest_view
portal_actions/ 0000775 0000000 0000000 00000000000 12406560543 0042217 5 ustar 00root root 0000000 0000000 erp5-2f7b81cc17551be67e0c7ad4f3589fd0a54413c4-bt5-erp5_data_protection/bt5/erp5_data_protection/ActionTemplateItem/portal_types raise_data_protection_request.xml 0000664 0000000 0000000 00000005311 12406560543 0051053 0 ustar 00root root 0000000 0000000 erp5-2f7b81cc17551be67e0c7ad4f3589fd0a54413c4-bt5-erp5_data_protection/bt5/erp5_data_protection/ActionTemplateItem/portal_types/portal_actions
actionAAAAAAAAAAI=categoryobject_actionconditionAAAAAAAAAAM=descriptioniconidraise_data_protection_requestpermissionsViewpriority5.0titleRaise Data Protection Requestvisible1textstring:${object_url}/Base_viewRaiseDataProtectionRequestDialogtextpython: portal.Base_checkPermission(\'data_protection_request_module\', \'Add portal content\') and here.getPortalType() not in portal.getPortalModuleTypeList()
ExtensionTemplateItem/ 0000775 0000000 0000000 00000000000 12406560543 0035210 5 ustar 00root root 0000000 0000000 erp5-2f7b81cc17551be67e0c7ad4f3589fd0a54413c4-bt5-erp5_data_protection/bt5/erp5_data_protection portal_components/ 0000775 0000000 0000000 00000000000 12406560543 0040756 5 ustar 00root root 0000000 0000000 erp5-2f7b81cc17551be67e0c7ad4f3589fd0a54413c4-bt5-erp5_data_protection/bt5/erp5_data_protection/ExtensionTemplateItem extension.erp5.DataProtectionRequestUtils.py 0000664 0000000 0000000 00000006303 12406560543 0051531 0 ustar 00root root 0000000 0000000 erp5-2f7b81cc17551be67e0c7ad4f3589fd0a54413c4-bt5-erp5_data_protection/bt5/erp5_data_protection/ExtensionTemplateItem/portal_components # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2008-2010 Nexedi SA and Contributors. All Rights Reserved.
# Nicolas Delaby
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# garantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
from Products.ERP5Form.FormBox import FormBox
from urlparse import urlparse
def Base_updatePropertyMapListWithFieldLabel(self, property_map_list):
"""Try to get the title of field which edit the given inside property_map_list
- This script loopup portal_type, then list actions of type view
- Fetch the form by parsing url
- list fields, and get the field label
- update the dictionary and return the list of updated dictionaries.
"""
def getLabelFromForm(form, property_id):
for field in form.get_fields():
if isinstance(field, FormBox):
# Special use case for FormBox
delegated_form_id = field.get_value('formbox_target_id')
form_box = getattr(field, delegated_form_id)
label = getLabelFromForm(form_box, property_id)
if label:
return label
if 'my_%s' % property_id == field.id:
label = field.get_value('title')
return label
portal = self.getPortalObject()
result_list = []
action_list_dict = portal.portal_actions.listFilteredActionsFor(self)
action_list = action_list_dict.get('object_view', ())
form_id_list = [urlparse(action['url'])[2].split('/')[-1] \
for action in action_list]
for property_map in property_map_list:
label = None
for form_id in form_id_list:
form = getattr(portal, form_id)
if form.meta_type != 'ERP5 Form':
continue
label = getLabelFromForm(form, property_map['id'])
if label:
property_map['label'] = label
break
result_list.append(property_map)
return tuple(result_list)
def Base_purgeWorkflowHistoryCommentList(self):
"""Delete all comment in wokflow history stored on document.
"""
for workflow_id in self.workflow_history:
[history.update({'comment': None}) for history in self.workflow_history[workflow_id]]
extension.erp5.DataProtectionRequestUtils.xml 0000664 0000000 0000000 00000006601 12406560543 0051702 0 ustar 00root root 0000000 0000000 erp5-2f7b81cc17551be67e0c7ad4f3589fd0a54413c4-bt5-erp5_data_protection/bt5/erp5_data_protection/ExtensionTemplateItem/portal_components
default_referenceDataProtectionRequestUtilsidextension.erp5.DataProtectionRequestUtilsportal_typeExtension Componentsidversionerp5workflow_historyAAAAAAAAAAI=datacomponent_validation_workflowAAAAAAAAAAM=actionvalidateactorERP5TypeTestCasecommenttimevalidation_statevalidated
ModuleTemplateItem/ 0000775 0000000 0000000 00000000000 12406560543 0034461 5 ustar 00root root 0000000 0000000 erp5-2f7b81cc17551be67e0c7ad4f3589fd0a54413c4-bt5-erp5_data_protection/bt5/erp5_data_protection data_protection_request_module.xml 0000664 0000000 0000000 00000004602 12406560543 0043501 0 ustar 00root root 0000000 0000000 erp5-2f7b81cc17551be67e0c7ad4f3589fd0a54413c4-bt5-erp5_data_protection/bt5/erp5_data_protection/ModuleTemplateItem data_protection_request_moduleAccess Transient ObjectsAssigneeAssignorAssociateAuditorAuthorManagerAccess contents informationAssigneeAssignorAssociateAuditorAuthorManagerAccess session dataAssigneeAssignorAssociateAuditorAuthorManagerAdd portal contentAssignorAuthorManagerAdd portal foldersAssignorAuthorManagerChange local rolesAssignorManagerCopy or MoveAssigneeAssignorAssociateAuditorAuthorManagerDelete objectsAssignorManagerList folder contentsAssigneeAssignorAssociateAuditorAuthorManagerModify portal contentAssignorManagerViewAssigneeAssignorAssociateAuditorManagerView HistoryAssigneeAssignorAssociateAuditorAuthorManagerData Protection Request ModuleData Protection Requests