def txn_request_attr(attr_name):
    """
    Sets a `property` on the class that looks up the attr_name off of the
    request_data.
    """
    def inner(self):
        return self.request_data[attr_name]

    inner.__name__ = attr_name
    return property(inner)