Example #1
0
    def checkin(self):
        venue = self.user['user']['checkins']['items'][0]['venue']

        c = CheckinConfirmation(self, venue)
        c.exec_()
        if c.result() == QDialog.Accepted:
            try:
                # TODO: do this in a separate thread
                ll = LocationProvider().get_ll(venue)
                response = foursquare.checkin(venue, ll, self.shoutText.text(), c.broadcast())
                CheckinDetails(self, response).show()
            except IOError:
                self.networkError.emit()
Example #2
0
 def run(self):
     try:
         response = foursquare.checkin(self.__checkin)
         self.__parent.checkinDone.emit(response)
     except IOError:
         self.__parent.networkError.emit()