4 Commits
v0.21 ... v0.22

7 changed files with 15 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
name = "Socializer"
version = "0.21"
version = "0.22"
author = "Manuel Cortez"
authorEmail = "manuel@manuelcortez.net"
copyright = "Copyright (C) 2016-2019, Manuel Cortez"

View File

@@ -144,10 +144,8 @@ class Controller(object):
log.error("Error in setting offline status for the current user")
def create_unread_messages(self):
if self.session.settings["chat"]["open_unread_conversations"] == False:
return
try:
log.debug("Getting possible unread messages.")
log.debug("Creating conversation buffers...")
msgs = self.session.vk.client.messages.getConversations(count=200)
except VkApiError as ex:
if ex.code == 6:

View File

@@ -5,7 +5,7 @@ CRCCheck on
ManifestSupportedOS all
XPStyle on
Name "Socializer"
OutFile "socializer_0.21_setup.exe"
OutFile "socializer_0.22_setup.exe"
InstallDir "$PROGRAMFILES\socializer"
InstallDirRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\socializer" "InstallLocation"
RequestExecutionLevel admin
@@ -14,10 +14,10 @@ SetCompressor /solid lzma
SetDatablockOptimize on
VIAddVersionKey ProductName "Socializer"
VIAddVersionKey LegalCopyright "Copyright 2019 Manuel Cortez."
VIAddVersionKey ProductVersion "0.21"
VIAddVersionKey FileVersion "0.21"
VIProductVersion "0.21.0.0"
VIFileVersion "0.21.0.0"
VIAddVersionKey ProductVersion "0.22"
VIAddVersionKey FileVersion "0.22"
VIProductVersion "0.22.0.0"
VIFileVersion "0.22.0.0"
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_DIRECTORY
var StartMenuFolder
@@ -50,7 +50,7 @@ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\socializer
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\socializer" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall" "InstallLocation" $INSTDIR
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall" "Publisher" "Manuel Cortez"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\socializer" "DisplayVersion" "0.21"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\socializer" "DisplayVersion" "0.22"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\socializer" "URLInfoAbout" "http://socializer.su"
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\socializer" "VersionMajor" 0
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\socializer" "VersionMinor" 19

View File

@@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: Socializer 0.21\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-07-02 11:04-0500\n"
"PO-Revision-Date: 2019-07-13 08:47-0500\n"
"PO-Revision-Date: 2019-07-14 11:18-0500\n"
"Last-Translator: Manuel Cortez <manuel@manuelcortez.net>\n"
"Language-Team: Дарья Ратникова <dariafreja@yandex.ru>\n"
"Language: ru\n"
@@ -1080,7 +1080,7 @@ msgid "Post"
msgstr "Запись"
msgid "Post as {user1_nom}"
msgstr "Опубликовать как {user1_name}"
msgstr "Опубликовать как {user1_nom}"
msgid "Post from {user1_nom}"
msgstr "Запись от {user1_gen}"

View File

@@ -40,7 +40,8 @@ def find_item(list, item):
break
if identifier == None:
# if there are objects that can't be processed by lack of identifier, let's print keys for finding one.
log.exception("Can't find an identifier for the following object: %r" % (list(item.keys()),))
log.exception("Can't find an identifier for the following object: %r" % (item.keys(),))
return False
for i in list:
if identifier in i and i[identifier] == item[identifier]:
return True
@@ -53,7 +54,7 @@ class vkSession(object):
""" Put new items on the local cache database.
@name str: The name for the buffer stored in the dictionary.
@data list: A list with items and some information about cursors.
returns the number of items that has been added in this execution"""
returns the number of items that have been added in this execution"""
global post_types
# When this method is called by friends.getOnlyne, it gives only friend IDS so we need to retrieve full objects from VK.
# ToDo: It would be nice to investigate whether reusing some existing objects would be a good idea, whenever possible.

View File

@@ -1,4 +1,4 @@
{"current_version": "0.20",
{"current_version": "0.21",
"description": ".",
"downloads":
{"Windows32": "https://code.manuelcortez.net/manuelcortez/socializer/-/jobs/artifacts/v0.20/raw/socializer.zip?job=stable"}}
{"Windows32": "https://code.manuelcortez.net/manuelcortez/socializer/-/jobs/artifacts/v0.21/raw/socializer.zip?job=stable"}}