Comment 2 for bug 298502

Revision history for this message
Curtis Hovey (sinzui) wrote : Re: karma not granular enough in api

I imagine someone can update the Person to export the attribute

IPerson...
karma_category_caches = exported(
        CollectionField(
            title=_("The caches of karma scores, by karma category"),
            readonly=False, required=False,
            value_type=Reference(schema=IKarmaCache)))

But a lot more work is need to export IKarmaCache which is not Published by Launchpad. There is not infrastructure to support this. This problem is like gpg_keys (which is still broken at the moment) or distribution mirrors. At a minimum, someone must create a safe url to that REST use may be/?

    <browser:url
        for="lp.registry.interfaces.karma.IKarmaCache"
        path_expression="string:+karma-caches/${id}"
        rootsite="api"
        attribute_to_parent="person" />

Then update the interface:
IKarmaCache...
export_as_webservice_entry('karma_cache')...

Then export some or all the of the fields.