fixed some issues when rendering topic comments
This commit is contained in:
parent
5a36db2366
commit
f274ba9caa
@ -25,7 +25,7 @@ class attachPresenter(base.basePresenter):
|
|||||||
def __init__(self, session, view, interactor, voice_messages=False):
|
def __init__(self, session, view, interactor, voice_messages=False):
|
||||||
""" Constructor.
|
""" Constructor.
|
||||||
@ session sessionmanager.session object: an object capable of calling all VK methods and accessing the session database.
|
@ session sessionmanager.session object: an object capable of calling all VK methods and accessing the session database.
|
||||||
@voice_messages bool: If True, will add a button for sending voice messages. Functionality for this button has not been added yet.
|
@voice_messages bool: If True, will add a button for sending voice messages.
|
||||||
"""
|
"""
|
||||||
super(attachPresenter, self).__init__(view=view, interactor=interactor, modulename="attach")
|
super(attachPresenter, self).__init__(view=view, interactor=interactor, modulename="attach")
|
||||||
self.session = session
|
self.session = session
|
||||||
@ -34,7 +34,7 @@ class attachPresenter(base.basePresenter):
|
|||||||
self.run()
|
self.run()
|
||||||
|
|
||||||
def upload_image(self, image, description):
|
def upload_image(self, image, description):
|
||||||
""" allows uploading an image from the computer.
|
""" allows uploading an image from the computer. Description will be used when posting to VK.
|
||||||
"""
|
"""
|
||||||
imageInfo = {"type": "photo", "file": image, "description": description, "from": "local"}
|
imageInfo = {"type": "photo", "file": image, "description": description, "from": "local"}
|
||||||
self.attachments.append(imageInfo)
|
self.attachments.append(imageInfo)
|
||||||
|
@ -27,7 +27,6 @@ class displayTopicCommentPresenter(comment.displayCommentPresenter):
|
|||||||
self.get_attachments(self.post, message)
|
self.get_attachments(self.post, message)
|
||||||
self.check_image_load()
|
self.check_image_load()
|
||||||
self.send_message("disable_control", control="reply")
|
self.send_message("disable_control", control="reply")
|
||||||
self.send_message("disable_control", control="comments")
|
|
||||||
|
|
||||||
def post_like(self):
|
def post_like(self):
|
||||||
id = self.post["id"]
|
id = self.post["id"]
|
||||||
|
Loading…
Reference in New Issue
Block a user