fixed some mentions stuff

This commit is contained in:
jeena 2013-07-22 02:02:59 +02:00
parent 3aa9a73045
commit 06fd235bec
10 changed files with 222 additions and 199 deletions

View file

@ -170,13 +170,13 @@ class Controller(QtCore.QObject):
except OSError:
pass
@QtCore.pyqtSlot(str)
@QtCore.pyqtSlot()
def openNewMessageWidow(self):
self.openNewMessageWindowInReplyTostatus(None)
self.openNewMessageWindowInReplyToStatus("")
@QtCore.pyqtSlot(str, str, str, bool)
def openNewMessageWindowInReplyTostatus(self, status_string):
new_message_window = Windows.NewPost(self.app)
@QtCore.pyqtSlot(str)
def openNewMessageWindowInReplyToStatus(self, status_string):
new_message_window = Windows.NewPost(self.app, status_string)
new_message_window.show()
new_message_window.setAttribute(QtCore.Qt.WA_DeleteOnClose)
self.app.new_message_windows.append(new_message_window)
@ -262,10 +262,15 @@ class Controller(QtCore.QObject):
msgBox.exec_()
@QtCore.pyqtSlot(result=str)
def getCachedEntities(self):
entities = self.app.timeline.evaluateJavaScript("JSON.stringify(bungloo.cache.entities);")
def getCachedProfiles(self):
entities = self.app.timeline.evaluateJavaScript("JSON.stringify(bungloo.cache.profiles);")
return entities.toString()
@QtCore.pyqtSlot()
def getNewData(self):
func = "bungloo.timeline.getNewData()"
self.app.timeline.evaluateJavaScript(func)
def logout(self, sender):
print "logout is not implemented yet"