def _edit_tags(self, tag, items, locked=True, remove=False):
if not isinstance(items, list):<EOL><INDENT>items = [items]<EOL><DEDENT>value = getattr(self, tag + '<STR_LIT:s>')<EOL>existing_cols = [t.tag for t in value if t and remove is False]<EOL>d = tag_helper(tag, existing_cols + items, locked, remove)<EOL>self.edit(**d)<EOL>self.refresh()<EOL>
Helper to edit and refresh a tags.

            Parameters:
                tag (str): tag name
                items (list): list of tags to add
                locked (bool): lock this field.
                remove (bool): If this is active remove the tags in items.