~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/interfaces/bugtracker.py

merge from db-devel

Show diffs side-by-side

added added

removed removed

Lines of Context:
250
250
            title=_('Updates for this bug tracker are enabled'),
251
251
            required=True, default=True))
252
252
 
 
253
    watches_ready_to_check = Attribute(
 
254
        "The set of bug watches that are scheduled to be checked.")
 
255
    watches_with_unpushed_comments = Attribute(
 
256
        "The set of bug watches that have unpushed comments.")
 
257
    watches_needing_update = Attribute(
 
258
        "The set of bug watches that need updating.")
 
259
 
253
260
    def getBugFilingAndSearchLinks(remote_product, summary=None,
254
261
                                   description=None):
255
262
        """Return the bug filing and search links for the tracker.
273
280
    def getBugsWatching(remotebug):
274
281
        """Get the bugs watching the given remote bug in this bug tracker."""
275
282
 
276
 
    def getBugWatchesNeedingUpdate(hours_since_last_check):
277
 
        """Get the bug watches needing to be updated.
278
 
 
279
 
        All bug watches not being updated for the last
280
 
        :hours_since_last_check: hours are considered needing to be
281
 
        updated.
282
 
        """
283
 
 
284
283
    def getLinkedPersonByName(name):
285
284
        """Return the `IBugTrackerPerson` for a given name on a bugtracker.
286
285
 
318
317
    def destroySelf():
319
318
        """Delete this bug tracker."""
320
319
 
321
 
    def resetWatches():
322
 
        """Reset the lastchecked times of this BugTracker's `BugWatch`es."""
 
320
    def resetWatches(now=None):
 
321
        """Reset the next_check times of this BugTracker's `BugWatch`es.
 
322
 
 
323
        :param now: If specified, contains the datetime to which to set
 
324
                    the BugWatches' next_check times. Defaults to
 
325
                    datetime.now().
 
326
        """
323
327
 
324
328
 
325
329
class IBugTrackerSet(Interface):
332
336
 
333
337
    title = Attribute('Title')
334
338
 
335
 
    bugtracker_count = Attribute("The number of registered bug trackers.")
 
339
    count = Attribute("The number of registered bug trackers.")
 
340
 
 
341
    names = Attribute("The names of all registered bug trackers.")
336
342
 
337
343
    def get(bugtracker_id, default=None):
338
344
        """Get a BugTracker by its id.