~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/stories/webservice/xx-bug.txt

Merged db-devel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
448
448
    http://.../debian/+milestone/3.1
449
449
 
450
450
We can change the task's target. Here we change the task's target from
451
 
the mozilla-firefox package to alsa-utils.
 
451
the mozilla-firefox package to alsa-utils. Only published packages can
 
452
have tasks, so we first add a publication.
452
453
 
 
454
    >>> from lp.registry.interfaces.distribution import IDistributionSet
 
455
    >>> login('admin@canonical.com')
 
456
    >>> debian = getUtility(IDistributionSet).getByName('debian')
 
457
    >>> ignored = factory.makeSourcePackagePublishingHistory(
 
458
    ...     distroseries=debian.currentseries, sourcepackagename='evolution')
 
459
    >>> logout()
453
460
    >>> print webservice.named_post(
454
461
    ...     task['self_link'], 'transitionToTarget',
455
462
    ...     target=webservice.getAbsoluteUrl('/debian/+source/evolution'))
526
533
We can change a distribution task to a task with a package from the same
527
534
distribution.
528
535
 
529
 
    >>> from lp.registry.interfaces.distribution import IDistributionSet
530
536
    >>> login('foo.bar@canonical.com')
531
537
    >>> distro_bugtask = factory.makeBugTask(
532
538
    ...     target=getUtility(IDistributionSet).getByName('ubuntu'))