From d2c889be8b948a7c1921738ee873e488237eb330 Mon Sep 17 00:00:00 2001 From: Jeena Date: Mon, 7 Jan 2013 00:52:58 +0100 Subject: [PATCH] fixed delete post issue on Linux --- Linux/Tentia.py | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/Linux/Tentia.py b/Linux/Tentia.py index 7d8c5be..1024e63 100755 --- a/Linux/Tentia.py +++ b/Linux/Tentia.py @@ -160,14 +160,6 @@ class Controller(QtCore.QObject): base64 = open(message.imageFilePath, "rb").read().encode("base64").replace("\n", "") imageFilePath = "\"data:{};base64,{}\"".format(mimeType, base64) - # NSError *error; - # NSString *mimeType = [MimeType mimeTypeForFileAtPath:post.imageFilePath error:&error]; - # NSData *data = [[NSData alloc] initWithContentsOfFile:post.imageFilePath]; - # NSString *base64 = [data base64Encoding_xcd]; - # [data release]; - # imageFilePath = [NSString stringWithFormat:@"\"data:%@;base64,%@\"", mimeType, base64]; - #} - isPrivate = "false"; if message.isPrivate: isPrivate = "true" @@ -190,10 +182,10 @@ class Controller(QtCore.QObject): @QtCore.pyqtSlot(str, str) def notificateViewsAboutDeletedPostWithIdbyEntity(self, post_id, entity): func = "tentia_instance.postDeleted('{}', '{}')".format(post_id, entity); - self.app.timelineView.evaluateJavaScript(func) - self.app.mentionsView.evaluateJavaScript(func) - self.app.conversationView.evaluateJavaScript(func) - self.app.profileView.evaluateJavaScript(func) + self.app.timeline.evaluateJavaScript(func) + self.app.mentions.evaluateJavaScript(func) + self.app.conversation.evaluateJavaScript(func) + self.app.profile.evaluateJavaScript(func) @QtCore.pyqtSlot(str) def authentificationDidNotSucceed(self, errorMessage):