Ejemplo n.º 1
0
    def __init__(self, data=None, context=None):

        if data is None:
            raise ValueError("data can't be None")
        client_id = utils.UrnToClientId(context.GetDataAttribute(data, "urn"))

        super(Client, self).__init__(client_id=client_id, context=context)

        self.data = data
Ejemplo n.º 2
0
    def __init__(self, data=None, context=None):

        if data is None:
            raise ValueError("data can't be None")

        super(Client, self).__init__(client_id=utils.UrnToClientId(data.urn),
                                     context=context)

        self.data = data
Ejemplo n.º 3
0
    def __init__(self, data=None, context=None):
        if data is None:
            raise ValueError("data can't be None")

        client_id = utils.UrnToClientId(data.urn)
        flow_id = data.flow_id

        super(Flow, self).__init__(client_id=client_id,
                                   flow_id=flow_id,
                                   context=context)

        self.data = data
Ejemplo n.º 4
0
    def __init__(self, data=None, username=None, context=None):

        if data is None:
            raise ValueError("data can't be None")

        super(ClientApproval,
              self).__init__(client_id=utils.UrnToClientId(data.subject.urn),
                             approval_id=data.id,
                             username=username,
                             context=context)

        self.data = data