deps creation - improvements. db and history fixes. widgets creation - factory

This commit is contained in:
ingvar1995 2018-04-29 00:52:42 +03:00
parent a9d2d3d809
commit e9272eee2a
18 changed files with 419 additions and 319 deletions

View file

@ -1,4 +1,4 @@
from history.database import MESSAGE_OWNER
from history.database import MESSAGE_AUTHOR
MESSAGE_TYPE = {
@ -9,6 +9,8 @@ MESSAGE_TYPE = {
'INFO_MESSAGE': 4
}
PAGE_SIZE = 42
class MessageAuthor:
@ -53,7 +55,7 @@ class Message:
self._widget = None
def mark_as_sent(self):
self._author.author_type = MESSAGE_OWNER['ME']
self._author.author_type = MESSAGE_AUTHOR['ME']
def _create_widget(self):
pass