On Tuesday 28 of August 2012 00:56:38 Aron Parsons wrote: > I added the ContentSourceFilterSerializer recently > (fb0914444b6a20074fc861840952091e36b10c06..78e04edac79095c52849f300f0a3f170d > a0a0db7) for the channel.software.listRepoFilters API function but can't get > it to return exactly what I want. Instead of returning an array of > hashes, it returns an array of arrays. > > Returns: > [ [1, '+', 'cobbler'] ] > > What I want: > [ {'sortOrder' : 1, 'flag' : '+', 'filter' : 'cobbler'} ] > > Any help? In looking at most of the other serializers, I really don't > see what's out of place. >
Your problem was that the ContentSourceFilter.findBySourceId query didn't return objects of the ContentSourceFilter class, so they were not recognized to be passed to the ContentSourceFilterSerializer. Fixed in 31fc7f49. Tomas -- Tomas Lestach RHN Satellite Engineering > /aron > > _______________________________________________ > Spacewalk-devel mailing list > Spacewalk-devel@redhat.com > https://www.redhat.com/mailman/listinfo/spacewalk-devel _______________________________________________ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel