Exemple #1
0
 def UploadQueuedNotification(self, user, virualfile, realfile):
     try:
         self.probed[user]
     except KeyError:
         self.probed[user] = 'requesting'
         self.parent.frame.np.queue.put(slskmessages.GetUserStats(user))
         self.log('New user %s, requesting information...' % user)
Exemple #2
0
    def upload_queued_notification(self, user, virtual_path, real_path):

        if user in self.probed:
            return

        self.probed[user] = 'requesting'
        self.core.queue.append(slskmessages.GetUserStats(user))
        self.log('New user %s, requesting information...' % user)
    def upload_queued_notification(self, user, virtual_path, real_path):

        if user in self.probed:
            # We already have stats for this user.
            return

        self.probed[user] = 'requesting'
        self.core.queue.append(slskmessages.GetUserStats(user))
        self.log("Getting statistics from the server for new user %s…", user)
Exemple #4
0
 def InitWindow(self, user, conn):
     if user in self.users:
         self.users[user].conn = conn
         self.frame.np.queue.put(slskmessages.GetUserStats(user))
     else:
         w = self.subwindow(self, user, conn)
         self.append_page(w.Main, user[:15], w.OnClose)
         self.users[user] = w
         self.frame.np.queue.put(slskmessages.AddUser(user))