def register_ui(review_ui):
 if (not issubclass(review_ui, FileAttachmentReviewUI)):
  raise TypeError(u'Only FileAttachmentReviewUI subclasses can be registered')
 _file_attachment_review_uis.append(review_ui)

def register_ui ( review_ui ) : if ( not issubclass ( review_ui , FileAttachmentReviewUI ) ) : raise TypeError ( u'Only FileAttachmentReviewUI subclasses can be registered' ) _file_attachment_review_uis . append ( review_ui )
registers a review ui class .