Project

General

Profile

0001-WIP-data-processing-records-24494.patch

Paul Marillonnet, 13 Jun 2018 10:44 AM

Download (2.97 KB)

View differences:

Subject: [PATCH] WIP data processing records (#24494)

 wcs/admin/workflows.py | 33 ++++++++++++++++++++++++++++++++-
 1 file changed, 32 insertions(+), 1 deletion(-)
wcs/admin/workflows.py
1314 1314
class WorkflowPage(Directory):
1315 1315
    _q_exports = ['', 'edit', 'delete', 'newstatus', ('status', 'status_dir'), 'update_order',
1316 1316
            'duplicate', 'export', 'svg', ('variables', 'variables_dir'), 'inspect',
1317
            ('backoffice-fields', 'backoffice_fields_dir'),
1317
            'record_pii_process', ('backoffice-fields', 'backoffice_fields_dir'),
1318 1318
            'update_actions_order', 'update_criticality_levels_order',
1319 1319
            ('functions', 'functions_dir'), ('global-actions', 'global_actions_dir'),
1320 1320
            ('criticality-levels', 'criticality_levels_dir'),
......
1552 1552
        r += htmltext('</ul>')
1553 1553
        return r.getvalue()
1554 1554

  
1555
    def record_pii_process(self):
1556
        self.html_top('%s - %s' % (_('Workflow'), self.workflow.name))
1557
        r = TemplateIO(html=True)
1558
        r += htmltext('<h2>%s %s</h2>') % (_('Record of PII-processing activities for WF'), self.workflow.name)
1559

  
1560
        # add worlkflow attribute field here?
1561
        # r += htmltext('%s: %s') % (_('Short Description'), self.workflow.description.short())
1562
        # r += htmltext('%s: %s') % (_('Long Description'), self.workflow.description.long())
1563

  
1564
        r += htmltext('<h3>%s</h3>') % _('Summary')
1565
        r += htmltext('<ul>')
1566
        r += htmltext('<li>%s: %s</li>') % (_('Roles responsible for the data processing'), self.workflow.roles.values())
1567
        r += htmltext('<li>%s: %s</li>') % (_('Last modification time'), self.workflow.last_modification_time)
1568
        r += htmltext('<li>%s: %s</li>') % (_('Last modification user'), self.workflow.last_modification_user_id)
1569
        # add worlkflow attribute field here?
1570
        # r += htmltext('<li>%s: %s</li>') % (_('Workflow owner'), self.workflow.owner_user_id)
1571

  
1572
        r += htmltext('<li>')
1573
        r += htmltext('%s') % _('List of processed PII')
1574
        if self.workflow.variables_formdef:
1575
            r += htmltext('%s') % _('Workflow Variables')
1576
            r += self.expand_workflow_formdef(self.workflow.variables_formdef)
1577
        if self.workflow.backoffice_fields_formdef:
1578
            r += htmltext(' ; %s') % _('Backoffice Fields')
1579
            r += self.expand_workflow_formdef(self.workflow.backoffice_fields_formdef)
1580
        r += htmltext('</li>')
1581
        r += htmltext('</ul>')
1582

  
1583
        return r.getvalue()
1584

  
1585

  
1555 1586
    def inspect(self):
1556 1587
        self.html_top('%s - %s' % (_('Workflow'), self.workflow.name))
1557 1588
        r = TemplateIO(html=True)
1558
-