def _get_endpoint(reviewer=False):
 active = (settings.SIGNED_APPS_REVIEWER_SERVER_ACTIVE if reviewer else settings.SIGNED_APPS_SERVER_ACTIVE)
 server = (settings.SIGNED_APPS_REVIEWER_SERVER if reviewer else settings.SIGNED_APPS_SERVER)
 if active:
  if (not server):
   raise ValueError(('Invalid config. The %sserver setting is empty.' % ('reviewer ' if reviewer else '')))
  return (server + '/1.0/sign_app')

def _get_endpoint ( reviewer = False ) : active = ( settings . SIGNED_APPS_REVIEWER_SERVER_ACTIVE if reviewer else settings . SIGNED_APPS_SERVER_ACTIVE ) server = ( settings . SIGNED_APPS_REVIEWER_SERVER if reviewer else settings . SIGNED_APPS_SERVER ) if active : if ( not server ) : raise ValueError ( ( 'Invalid config. The %sserver setting is empty.' % ( 'reviewer ' if reviewer else '' ) ) ) return ( server + '/1.0/sign_app' )
returns the proper api endpoint depending whether we are signing for reviewer or for public consumption .