IArchive API doesn't provide a way to get a subscription URL

Bug #996053 reported by James Westby
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Won't Fix
Low
Unassigned

Bug Description

IPerson provides getArchiveSubscriptionURL(archive). It would be useful to have IArchive.getArchiveSubscriptionURL(person) since the IPerson API is easily missed when looking for a way to get the tokens over the API.

Tags: api ppa privacy
Changed in launchpad:
status: New → Triaged
importance: Undecided → Low
tags: added: api ppa privacy
Revision history for this message
Julian Edwards (julian-edwards) wrote :

Is there a problem with using IPerson.getArchiveSubscriptionURL() ?

From the docstring:
        """Get a text line that is suitable to be used for a sources.list
        entry.

        It will create a new IArchiveAuthToken if one doesn't already exist.
        """

Changed in launchpad:
status: Triaged → Incomplete
Revision history for this message
James Westby (james-w) wrote : Re: [Bug 996053] Re: Expose ArchiveAuthToken on the API

On Wed, 09 May 2012 07:16:46 -0000, Julian Edwards <email address hidden> wrote:
> Is there a problem with using IPerson.getArchiveSubscriptionURL() ?
>
> >From the docstring:
> """Get a text line that is suitable to be used for a sources.list
> entry.
>
> It will create a new IArchiveAuthToken if one doesn't already exist.
> """

Only that I didn't find it :-)

Sounds like a winner, thanks.

James

William Grant (wgrant)
Changed in launchpad:
status: Incomplete → Won't Fix
Revision history for this message
Julian Edwards (julian-edwards) wrote : Re: Expose ArchiveAuthToken on the API

Hehe np. Is there anything that would have made this more discoverable for you?

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 996053] Re: Expose ArchiveAuthToken on the API

On Mon, 14 May 2012 02:24:11 -0000, Julian Edwards <email address hidden> wrote:
> Hehe np. Is there anything that would have made this more discoverable
> for you?

I was looking on Archive and looked to see if ArchiveAuthToken was
exposed. A grep might have helped, but I guess I didn't expect it to be
available on Person.

Thanks,

James

Revision history for this message
Julian Edwards (julian-edwards) wrote :

I guess there would be no harm in doing what IPerson is providing, but on
IArchive instead (so you have a context archive and provide a person).

summary: - Expose ArchiveAuthToken on the API
+ IArchive API doesn't provide a way to get a subscription URL
description: updated
Changed in launchpad:
status: Won't Fix → Triaged
Revision history for this message
Julian Edwards (julian-edwards) wrote :

Fixed title and description to reflect this.

Revision history for this message
Robert Collins (lifeless) wrote :

I'm going to wontfix this - the harm is that we'd then have code to maintain that does nothing new for the system - its not better (or worse) than the existing facility, only different, which makes it a loss from LOC and maintenance perspectives.

Changed in launchpad:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.