def pop_object(self, element):
        '''
        Pop the object element if the object contains an higher TLP then allowed.
        '''

        redacted_text = "Redacted. Object contained TLP value higher than allowed."

        element['id'] = ''
        element['url'] = ''
        element['type'] = ''
        element['tags'] = []
        element['etlp'] = None
        element['title'] = redacted_text
        element['tlpColor'] = element['tlpColor']
        element['uploaded_on'] = ''
        element['uploaded_by'] = ''
        element['description'] = redacted_text
        element['children_types'] = []

        element['summary']['type'] = ''
        element['summary']['value'] = ''
        element['summary']['title'] = redacted_text
        element['summary']['description'] = redacted_text

        return element
def pop_object ( self , element ) : redacted_text = "Redacted. Object contained TLP value higher than allowed." element [ 'id' ] = '' element [ 'url' ] = '' element [ 'type' ] = '' element [ 'tags' ] = [ ] element [ 'etlp' ] = None element [ 'title' ] = redacted_text element [ 'tlpColor' ] = element [ 'tlpColor' ] element [ 'uploaded_on' ] = '' element [ 'uploaded_by' ] = '' element [ 'description' ] = redacted_text element [ 'children_types' ] = [ ] element [ 'summary' ] [ 'type' ] = '' element [ 'summary' ] [ 'value' ] = '' element [ 'summary' ] [ 'title' ] = redacted_text element [ 'summary' ] [ 'description' ] = redacted_text return element
Pop the object element if the object contains an higher TLP then allowed.