def secondary_icon(self, msg, **config):
     if '.git.receive' in msg['topic']:
         email = msg['msg']['commit']['email']
         return gravatar_url_from_email(email)
     elif '.git.lookaside' in msg['topic']:
         username = msg['msg']['agent']
         return gravatar_url(username)
     elif 'agent' in msg['msg']:
         username = msg['msg']['agent']
         return gravatar_url(username)
    def secondary_icon(self, msg, **config):
        owner = msg["msg"].get("owner")

        if owner:
            return gravatar_url(owner)

        return self.__icon__
    def secondary_icon(self, msg, **config):
        owner = msg['msg'].get('owner')

        if owner:
            return gravatar_url(owner)

        return self.__icon__
    def secondary_icon(self, msg, **config):
        owner = msg['msg'].get('owner')

        if owner:
            return gravatar_url(owner)

        return self.__icon__
    def secondary_icon(self, msg, **config):
        user = None

        try:
            user = msg['msg']['agent']
        except KeyError:
            pass

        if not user:
            return ""

        return gravatar_url(username=user)
예제 #6
0
    def secondary_icon(self, msg, **config):
        user = None

        try:
            user = msg['msg']['agent']
        except KeyError:
            pass

        if not user:
            return ""

        return gravatar_url(username=user)
 def secondary_icon(self, msg, **config):
     username = ''
     if 'bodhi.update.comment' in msg['topic']:
         username = msg['msg']['comment']['author']
     elif 'bodhi.buildroot_override' in msg['topic']:
         username = msg['msg']['override']['submitter']
     else:
         username = msg['msg'].get('update', {}).get('submitter')
     gravatar = ''
     if username:
         gravatar = gravatar_url(username)
     return gravatar
 def secondary_icon(self, msg, **config):
     username = ''
     if 'bodhi.update.comment' in msg['topic']:
         username = msg['msg']['comment']['author']
     elif 'bodhi.buildroot_override' in msg['topic']:
         username = msg['msg']['override']['submitter']
     else:
         username = msg['msg'].get('update', {}).get('submitter')
     gravatar = ''
     if username:
         gravatar = gravatar_url(username)
     return gravatar
 def secondary_icon(self, msg, **config):
     return gravatar_url(self.username(msg))
 def icon(self, msg, **config):
     return gravatar_url(msg["msg"]["vote"]["user"]["username"])
예제 #11
0
 def secondary_icon(self, msg, **config):
     return gravatar_url(msg['msg']['original']['agent'])
 def secondary_icon(self, msg, **config):
     usernames = self.usernames(msg, **config)
     if usernames:
         return gravatar_url(list(usernames)[0])
     else:
         return self.__icon__
 def secondary_icon(self, msg, **config):
     # Every fas fedmsg message has an "agent" field.. "whodunnit"
     return gravatar_url(username=msg['msg']['agent']['username'])
 def secondary_icon(self, msg, **config):
     if 'user' in msg['msg']:
         return gravatar_url(msg['msg']['user'])
 def secondary_icon(self, msg, **config):
     usernames = self.usernames(msg, **config)
     if usernames:
         return gravatar_url(list(usernames)[0])
     else:
         return self.__icon__
 def secondary_icon(self, msg, **config):
     if 'github.webhook' in msg['topic']:
         return self.icon(msg, **config)
     # Otherwise
     return gravatar_url(self._get_user(msg))
 def secondary_icon(self, msg, **config):
     user = msg["msg"].get("user", msg["msg"].get("user_text", ""))
     return gravatar_url(user.lower())
 def secondary_icon(self, msg, **config):
     user = msg['msg']['userid']
     return gravatar_url(user)
 def secondary_icon(self, msg, **config):
     try:
         user = msg['msg']['agent']
         return gravatar_url(user)
     except KeyError:
         return None
예제 #20
0
 def secondary_icon(self, msg, **config):
     return gravatar_url(self._get_user(msg))
 def secondary_icon(self, msg, **config):
     user = msg['msg'].get('user', msg['msg'].get('user_text', ''))
     return gravatar_url(user.lower())
 def secondary_icon(self, msg, **config):
     username = self._get_user(msg, **config)
     if username:
         return gravatar_url(self._get_user(msg, **config))
     else:
         return None
 def secondary_icon(self, msg, **config):
     user = msg['msg'].get('userid')
     if user:
         return gravatar_url(user)
예제 #24
0
 def secondary_icon(self, msg, **config):
     user = msg['msg'].get('user', msg['msg'].get('user_text', ''))
     return gravatar_url(user.lower())
 def secondary_icon(self, msg, **config):
     return gravatar_url(msg['msg']['agent'])
 def secondary_icon(self, msg, **config):
     user, is_fas = self._get_user(msg, **config)
     if is_fas:
         return gravatar_url(user)
     else:
         return gravatar_url_from_email(user)
예제 #27
0
 def secondary_icon(self, msg, **config):
     # Every fas fedmsg message has an "agent" field.. "whodunnit"
     return gravatar_url(username=string_or_dict(msg['msg'], 'agent'))
예제 #28
0
 def secondary_icon(self, msg, **config):
     if 'github.webhook' in msg['topic']:
         return self.icon(msg, **config)
     # Otherwise
     return gravatar_url(self._get_user(msg))
 def secondary_icon(self, msg, **config):
     # Every fas fedmsg message has an "agent" field.. "whodunnit"
     return gravatar_url(username=string_or_dict(msg['msg'], 'agent'))
 def secondary_icon(self, msg, **config):
     user, is_fas = self._get_user(msg, **config)
     if is_fas:
         return gravatar_url(user)
     else:
         return gravatar_url_from_email(user)
예제 #31
0
 def secondary_icon(self, msg, **config):
     if 'user' in msg['msg']:
         return gravatar_url(msg['msg']['user'])
 def secondary_icon(self, msg, **config):
     user = msg['msg']['userid']
     return gravatar_url(user)
 def secondary_icon(self, msg, **config):
     try:
         user = msg['msg']['agent']
         return gravatar_url(user)
     except KeyError:
         return None
 def secondary_icon(self, msg, **config):
     user = msg['msg'].get('userid')
     if user:
         return gravatar_url(user)