Exemplo n.º 1
0
    def _preprocess_raw_data(self, data):
        groups = []
        for g_data in data['groups'][:]:
            groups.append(Group.from_data(g_data, self.client))
        data['groups'] = groups

        groupsets = {
            groupset_id: Groupset.from_data(gs_data, self.client)
            for groupset_id, gs_data in data['groupsets'].iteritems()
        }
        data['groupsets'] = groupsets

        self._stats = Stats(data)

        return data
Exemplo n.º 2
0
    def _preprocess_raw_data(self, data):
        groups = []
        for g_data in data['groups'][:]:
            groups.append(Group.from_data(g_data, self.client))
        data['groups'] = groups

        groupsets = {
            groupset_id: Groupset.from_data(gs_data, self.client)
            for groupset_id, gs_data in data['groupsets'].iteritems()
        }
        data['groupsets'] = groupsets

        self._stats = Stats(data)

        return data
Exemplo n.º 3
0
 def _preprocess_raw_data(self, data):
     groups = []
     for g_data in data["groups"][:]:
         groups.append(Group.from_data(g_data, self.client))
     data["groups"] = groups
     return data
Exemplo n.º 4
0
 def _preprocess_raw_data(self, data):
     groups = []
     for g_data in data['groups'][:]:
         groups.append(Group.from_data(g_data, self.client))
     data['groups'] = groups
     return data