Logo Search packages:      
Sourcecode: debgtd version File versions  Download package

def debgtd::controller::Controller::import_new_bugs (   self )
      Grab bugs from the BTS that match certain criteria and import
      them into our system.

Definition at line 117 of file controller.py.

                               :
            """
                  Grab bugs from the BTS that match certain criteria and import
                  them into our system.
            """
            model = self.model
            if not model:
                  return
            submitter  = self.server.get_bugs("submitter", model.user)._aslist()
            maintainer = self.server.get_bugs("maint", model.user)._aslist()
            foo = list( set(submitter) | set(maintainer) )
            # remove ones we don't care about
            foo = filter(lambda x: \
                  not (x in self.model.bugs and self.model.bugs[x].ignoring()), foo)

            # assume the above executed ok and update our local data
            if 0 < len(foo):
                  self.needswrite = True
                  self.reload_backend(foo)


Generated by  Doxygen 1.6.0   Back to index