Code review comment for lp:~thumper/launchpad/fix-canonical-url-for-api-2

Revision history for this message
Tim Penhey (thumper) wrote :

The current implementation of the api_url tales formatter doesn't do what it thinks it does. Setting the rootsite to None does not mean that the site isn't shown.

To fix this, I've added an option to canonical_url to force the local path only. I've also fixed the doctest for tales to make a distribution instead of a product where the example clearly indicates that the object should be a distribution. Also added the missing api_url to the Branch formatter, and added tests to cover these areas.

« Back to merge proposal