@task
@write
def reject_rereview(theme):
 storage = LocalFileStorage()
 rereview = theme.rereviewqueuetheme_set.all()
 reupload = rereview[0]
 storage.delete(reupload.header_path)
 if reupload.footer:
  storage.delete(reupload.footer_path)
 rereview.delete()

@ task @ write def reject_rereview ( theme ) : storage = LocalFileStorage ( ) rereview = theme . rereviewqueuetheme_set . all ( ) reupload = rereview [ 0 ] storage . delete ( reupload . header_path ) if reupload . footer : storage . delete ( reupload . footer_path ) rereview . delete ( )
delete pending theme from filesystem .