def METHOD_NAME(self):
    """Returns the uid from the request, if any
    """
    uid = self.request.form.get("uid", self.request.get("uid"))
    if api.is_uid(uid):
        return uid
    return None