Exemplo n.º 1
0
 def availableReceived(self, entity, show=None, statuses=None, priority=0):
     log.msg("Available from %s (%s, %s, pri=%s)" % (
         entity.full(), show, statuses, priority))
     if priority >= 0 and show not in ['xa', 'dnd']:
         scheduling.available_user(entity)
     else:
         log.msg("Marking jid unavailable due to negative priority or "
             "being somewhat unavailable.")
         scheduling.unavailable_user(entity)
Exemplo n.º 2
0
    def availableReceived(self, entity, show=None, statuses=None, priority=0):
        log.msg("Available from %s (%s, %s, pri=%s)" %
                (entity.full(), show, statuses, priority))

        if priority >= 0 and show not in ['xa', 'dnd']:
            scheduling.available_user(entity)
        else:
            log.msg("Marking jid unavailable due to negative priority or "
                    "being somewhat unavailable.")
            scheduling.unavailable_user(entity)
        self._find_and_set_status(entity.userhost(), show)
Exemplo n.º 3
0
    def availableReceived(self, entity, show=None, statuses=None, priority=0):
        log.msg("Available from %s (%s, %s, pri=%s)" %
                (entity.full(), show, statuses, priority))
        if entity.userhost() == JID(config.SCREEN_NAME).userhost():
            return

        if priority >= 0 and show not in ['xa', 'dnd']:
            scheduling.available_user(entity)
        else:
            log.msg("Marking jid unavailable due to negative priority or "
                    "being somewhat unavailable.")
            scheduling.unavailable_user(entity)
Exemplo n.º 4
0
 def worked(stuff):
     scheduling.available_user(JID(user.jid))
     prot.send_plain(user.jid, "Enabled tracks.")