def _restore_app_status(app, save=True):
 log.info(('Changing app from incomplete to previous status: %d' % app.pk))
 app.status = (app.highest_status if (app.highest_status != mkt.STATUS_NULL) else mkt.STATUS_PENDING)
 if save:
  app.save()

def _restore_app_status ( app , save = True ) : log . info ( ( 'Changing app from incomplete to previous status: %d' % app . pk ) ) app . status = ( app . highest_status if ( app . highest_status != mkt . STATUS_NULL ) else mkt . STATUS_PENDING ) if save : app . save ( )
restore an incomplete app to its former status .