Bugzilla plugin is now converted to backend sync service

as the summary, Bugzilla is now a backend sync service. It can be used simply as it was a plugin before. When enable this service, any added task will be handled and attempt to sync bug information from specific related Bugzilla service.

This version works well, but not perfect. I'm being continue to add more features, such as the configuration ability.
Hi,
Let's hold this patch for now. We had a SoC student working on revamping
the service framework. Hence there would be considerable API changes. So
let's first merge that and work on this.
Sorry for coming in so late into the thread.
@Chenxiong: You had some ideas about reworking the backends, right? Lets
try to integrate them with the existing service rework and then we will
merge this code to prevent refactoring this again and again.

Nimit Shah

On Fri, Nov 7, 2014 at 12:07 PM, Izidor Matušov <notifications@github.com>
wrote:

> In GTG/backends/bugzilla/bugzilla.py:
>
> > +        except socket.gaierror as err:
> > +            # NOTE: TBD, is it necessary to let user know this problem?
> > +            Log.error('Failed to synchronize bug {0} due to a network problem '
> > +                      '"{1}"'.format(task_info.bug_id, str(err)))
> > +        except Exception as err:
> > +            error_message = BUGZILLA_BUG_SYNC_FAIL_MESSAGE % task_info.bug_id
> > +            send_notification(self.backend,
> > +                              ERRNO_BUGZILLA_BUG_SYNC_FAIL,
> > +                              error_message)
> > +            Log.error('Failed to synchronize information of bug {0} from {1}. '
> > +                      'Server error message "{2}"'.format(task_info.bug_id,
> > +                                                          bugzillaService.name,
> > +                                                          str(err)))
> > +        else:
> > +            title = '#%s: %s' % (task_info.bug_id, bug.summary)
> > +            GObject.idle_add(self.task.set_title, title)
>
> again, GObject.idle_add should not be in these code (maybe a layer up?)
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/getting-things-gnome/gtg/pull/55/files#r19996636>.
>