def to_dict(self):
        data = []
        attributes = [attr for attr in dir(self)
                      if not callable(getattr(self, attr)) and
                      not attr.startswith("__")]
        for attr in attributes:
            if getattr(self, attr):
                tmp = {}
                tmp[attr.__str__()] = getattr(self, attr)
                data.append(tmp)
        return data
Handler for GET requests.
dataset/ETHPy150Open dave-tucker/hp-sdn-client/hpsdnclient/datatypes.py/Match.to_dict--crossover with--dataset/ETHPy150Open AppScale/appscale/AppDashboard/dashboard.py/ShibbolethRedirect.get