~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/doc/bugnotifications.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-02 04:21:43 UTC
  • mfrom: (13571.2.4 createtask-and-addtask)
  • Revision ID: launchpad@pqm.canonical.com-20110802042143-26jeqxhukor1eg0e
[r=benji][no-qa] Bug.addTask and BugTaskSet.createTask now take an
 IBugTarget directly instead of a target key.

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
    >>> debian = getUtility(IDistributionSet).get(3)
108
108
    >>> firefox_source = getUtility(ISourcePackageNameSet).get(1)
109
109
    >>> firefox_crashes_in_debian = getUtility(IBugTaskSet).createTask(
110
 
    ...     bug=firefox_crashes, distribution=debian,
111
 
    ...     sourcepackagename=firefox_source,
112
 
    ...     owner=bug_submitter)
 
110
    ...     firefox_crashes, bug_submitter,
 
111
    ...     debian.getSourcePackage(firefox_source))
113
112
    >>> notify(ObjectCreatedEvent(
114
113
    ...     firefox_crashes_in_debian, firefox_crashes_in_debian.owner))
115
114
 
134
133
 
135
134
    >>> sid = getUtility(IDistroSeriesSet).get(8)
136
135
    >>> firefox_crashes_in_sid = getUtility(IBugTaskSet).createTask(
137
 
    ...     bug=firefox_crashes, distroseries=sid,
138
 
    ...     sourcepackagename=firefox_source, owner=bug_submitter)
 
136
    ...     firefox_crashes, bug_submitter,
 
137
    ...     sid.getSourcePackage(firefox_source))
139
138
    >>> notify(ObjectCreatedEvent(
140
139
    ...     firefox_crashes_in_sid, firefox_crashes_in_sid.owner))
141
140
 
163
162
 
164
163
    >>> evolution = getUtility(IProductSet).get(5)
165
164
    >>> evolution_crashes_too = getUtility(IBugTaskSet).createTask(
166
 
    ...     bug=firefox_crashes, product=evolution, owner=bug_submitter)
 
165
    ...     firefox_crashes, bug_submitter, evolution)
167
166
    >>> notify(ObjectCreatedEvent(
168
167
    ...     evolution_crashes_too, evolution_crashes_too.owner))
169
168
 
185
184
 
186
185
    >>> trunk = evolution.getSeries('trunk')
187
186
    >>> firefox_crashes_in_trunk = getUtility(IBugTaskSet).createTask(
188
 
    ...     bug=firefox_crashes, productseries=trunk, owner=bug_submitter)
 
187
    ...     firefox_crashes, bug_submitter, trunk)
189
188
    >>> notify(ObjectCreatedEvent(
190
189
    ...     firefox_crashes_in_trunk, firefox_crashes_in_trunk.owner))
191
190