Example #1
0
def connect_signals():
    review_request_closed.connect(review_request_closed_cb, sender=ReviewRequest)
    review_request_published.connect(review_request_published_cb, sender=ReviewRequest)
    review_request_reopened.connect(review_request_reopened_cb, sender=ReviewRequest)

    review_published.connect(review_published_cb, sender=Review)
    reply_published.connect(reply_published_cb, sender=Review)
Example #2
0
def connect_signals():
    """Connect e-mail callbacks to signals."""
    review_request_published.connect(review_request_published_cb, sender=ReviewRequest)
    review_published.connect(review_published_cb, sender=Review)
    reply_published.connect(reply_published_cb, sender=Review)
    review_request_closed.connect(review_request_closed_cb, sender=ReviewRequest)
    user_registered.connect(user_registered_cb)
Example #3
0
def connect_signals():
    review_request_published.connect(review_request_published_cb,
                                     sender=ReviewRequest)
    review_published.connect(review_published_cb, sender=Review)
    reply_published.connect(reply_published_cb, sender=Review)
    review_request_closed.connect(review_request_closed_cb,
                                  sender=ReviewRequest)
    user_registered.connect(user_registered_cb)
Example #4
0
def connect_signals():
    review_request_published.connect(review_request_published_cb,
                                     sender=ReviewRequest)
    review_published.connect(review_published_cb, sender=Review)
    reply_published.connect(reply_published_cb, sender=Review)
    review_request_closed.connect(review_request_closed_cb,
                                  sender=ReviewRequest)
    user_registered.connect(user_registered_cb)
Example #5
0
    def __init__(self, extension):
        """Initialize and connect all the signals"""
        self.extension = extension

        # Connect the handlers.
        review_request_published.connect(self._review_request_published)
        review_published.connect(self._review_published)
        reply_published.connect(self._reply_published)
Example #6
0
def connect_signals():
    """Connect e-mail callbacks to signals."""
    review_request_published.connect(review_request_published_cb,
                                     sender=ReviewRequest)
    review_published.connect(review_published_cb, sender=Review)
    reply_published.connect(reply_published_cb, sender=Review)
    review_request_closed.connect(review_request_closed_cb,
                                  sender=ReviewRequest)
    user_registered.connect(user_registered_cb)
Example #7
0
def connect_signals():
    review_request_closed.connect(review_request_closed_cb,
                                  sender=ReviewRequest)
    review_request_published.connect(review_request_published_cb,
                                     sender=ReviewRequest)
    review_request_reopened.connect(review_request_reopened_cb,
                                    sender=ReviewRequest)

    review_published.connect(review_published_cb, sender=Review)
    reply_published.connect(reply_published_cb, sender=Review)
Example #8
0
def connect_signals():
    """
    Hooks up all the event handlers to our callbacks above.
    """
    review_request_published.connect(review_request_published_cb,
                                     sender=ReviewRequest)
    review_published.connect(review_published_cb, sender=Review)
    reply_published.connect(reply_published_cb, sender=Review)

    hipchat.config.init_cfg('/home/ubuntu/reviewboard/hipchat.cfg')
 def register_signals(self):
         review_request_published.connect(self.review_request_published_cb,
                                          sender=ReviewRequest, dispatch_uid="rbxmppnotification")
         review_published.connect(self.review_published_cb, sender=Review, dispatch_uid="rbxmppnotification")
         reply_published.connect(self.reply_published_cb, sender=Review, dispatch_uid="rbxmppnotification")
         review_request_closed.connect(self.review_request_closed_cb,
                                       sender=ReviewRequest, dispatch_uid="rbxmppnotification")
         review_request_reopened.connect(self.review_request_reopened_cb,
                                       sender=ReviewRequest, dispatch_uid="rbxmppnotification")
         user_registered.connect(self.user_registered_cb, dispatch_uid="rbxmppnotification")
Example #10
0
def connect_signals():
    """Connect e-mail callbacks to signals."""
    review_request_published.connect(review_request_published_cb,
                                     sender=ReviewRequest)
    review_published.connect(review_published_cb, sender=Review)
    reply_published.connect(reply_published_cb, sender=Review)
    review_request_closed.connect(review_request_closed_cb,
                                  sender=ReviewRequest)
    user_registered.connect(user_registered_cb)
    post_save.connect(webapi_token_saved_cb, sender=WebAPIToken)
    post_delete.connect(webapi_token_deleted_cb, sender=WebAPIToken)
Example #11
0
def connect_signals():
    """Connect e-mail callbacks to signals."""
    review_request_published.connect(review_request_published_cb,
                                     sender=ReviewRequest)
    review_published.connect(review_published_cb, sender=Review)
    reply_published.connect(reply_published_cb, sender=Review)
    review_request_closed.connect(review_request_closed_cb,
                                  sender=ReviewRequest)
    user_registered.connect(user_registered_cb)
    post_save.connect(webapi_token_saved_cb, sender=WebAPIToken)
    post_delete.connect(webapi_token_deleted_cb, sender=WebAPIToken)
Example #12
0
    def __init__(self, extension):
        """Initialize and connect all the signals.

        Args:
            extension (rbwebhooks.extension.RBWebHooksExtension):
                The extension object.
        """
        self.extension = extension

        # Connect the handlers.
        review_request_published.connect(self._review_request_published)
Example #13
0
 def register_signals(self):
     review_request_published.connect(self.review_request_published_cb,
                                      sender=ReviewRequest,
                                      dispatch_uid="rbxmppnotification")
     review_published.connect(self.review_published_cb,
                              sender=Review,
                              dispatch_uid="rbxmppnotification")
     reply_published.connect(self.reply_published_cb,
                             sender=Review,
                             dispatch_uid="rbxmppnotification")
     review_request_closed.connect(self.review_request_closed_cb,
                                   sender=ReviewRequest,
                                   dispatch_uid="rbxmppnotification")
     review_request_reopened.connect(self.review_request_reopened_cb,
                                     sender=ReviewRequest,
                                     dispatch_uid="rbxmppnotification")
     user_registered.connect(self.user_registered_cb,
                             dispatch_uid="rbxmppnotification")
Example #14
0
def connect_signals():
  review_request_published.connect(review_request_published_cb, sender=ReviewRequest)
Example #15
0
    def __init__(self, extension):
        """Initialize and connect all the signals"""
        self.extension = extension

        # Connect the handlers.
        review_request_published.connect(self._review_request_published)
Example #16
0
def connect_signals():
    review_request_published.connect(review_request_published_cb)
    review_published.connect(review_published_cb)
    reply_published.connect(reply_published_cb)