コード例 #1
0
    def search(self, url_params=None):
        api_resp = super(DecodedRecords, self).search(url_params)

        # decode the api response
        decode(api_resp, self.dictionaryOfSchemas)
        print 'x'

        return api_resp
コード例 #2
0
    def find(self, id):
        api_resp = super(DecodedRecords, self).find(id)

        # decode the api response
        # decode(api_resp, self.fieldNameLookups)
        decode(api_resp, self.dictionaryOfSchemas)

        return api_resp
コード例 #3
0
    def update(self, id, obj):
        # reapply the keys to the json object that has been passed back before it is written back to Fulcrum
        recode(obj, self.dictionaryOfSchemas)

        api_resp = super(DecodedRecords, self).update(id, obj)

        # now decode the api response
        decode(api_resp, self.dictionaryOfSchemas)

        return api_resp
コード例 #4
0
    def history(self, id):
        api_resp = super(DecodedRecords, self).history(id)

         # now decode the api response
        # probably need to extract the record aspects before this works
        api_resp= decode(api_resp, self.dictionaryOfSchemas)

        return api_resp