def delete(self):
with self.draft_context():<EOL><INDENT>draft = self.one(Q._uid == self._uid)<EOL>if draft:<EOL><INDENT>super(PublisherFrame, draft).delete()<EOL><DEDENT><DEDENT>with self.published_context():<EOL><INDENT>published = self.one(Q._uid == self._uid)<EOL>if published:<EOL><INDENT>super(PublisherFrame, published).delete()<EOL><DEDENT><DEDENT>
Delete this document and any counterpart document