Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
cd623065e7 | |||
2b462bfecb | |||
9353ea93c1 | |||
ead54fce3f |
@@ -1,7 +1,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
name = "Socializer"
|
name = "Socializer"
|
||||||
version = "0.21"
|
version = "0.22"
|
||||||
author = "Manuel Cortez"
|
author = "Manuel Cortez"
|
||||||
authorEmail = "manuel@manuelcortez.net"
|
authorEmail = "manuel@manuelcortez.net"
|
||||||
copyright = "Copyright (C) 2016-2019, Manuel Cortez"
|
copyright = "Copyright (C) 2016-2019, Manuel Cortez"
|
||||||
|
@@ -144,10 +144,8 @@ class Controller(object):
|
|||||||
log.error("Error in setting offline status for the current user")
|
log.error("Error in setting offline status for the current user")
|
||||||
|
|
||||||
def create_unread_messages(self):
|
def create_unread_messages(self):
|
||||||
if self.session.settings["chat"]["open_unread_conversations"] == False:
|
|
||||||
return
|
|
||||||
try:
|
try:
|
||||||
log.debug("Getting possible unread messages.")
|
log.debug("Creating conversation buffers...")
|
||||||
msgs = self.session.vk.client.messages.getConversations(count=200)
|
msgs = self.session.vk.client.messages.getConversations(count=200)
|
||||||
except VkApiError as ex:
|
except VkApiError as ex:
|
||||||
if ex.code == 6:
|
if ex.code == 6:
|
||||||
|
@@ -5,7 +5,7 @@ CRCCheck on
|
|||||||
ManifestSupportedOS all
|
ManifestSupportedOS all
|
||||||
XPStyle on
|
XPStyle on
|
||||||
Name "Socializer"
|
Name "Socializer"
|
||||||
OutFile "socializer_0.21_setup.exe"
|
OutFile "socializer_0.22_setup.exe"
|
||||||
InstallDir "$PROGRAMFILES\socializer"
|
InstallDir "$PROGRAMFILES\socializer"
|
||||||
InstallDirRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\socializer" "InstallLocation"
|
InstallDirRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\socializer" "InstallLocation"
|
||||||
RequestExecutionLevel admin
|
RequestExecutionLevel admin
|
||||||
@@ -14,10 +14,10 @@ SetCompressor /solid lzma
|
|||||||
SetDatablockOptimize on
|
SetDatablockOptimize on
|
||||||
VIAddVersionKey ProductName "Socializer"
|
VIAddVersionKey ProductName "Socializer"
|
||||||
VIAddVersionKey LegalCopyright "Copyright 2019 Manuel Cortez."
|
VIAddVersionKey LegalCopyright "Copyright 2019 Manuel Cortez."
|
||||||
VIAddVersionKey ProductVersion "0.21"
|
VIAddVersionKey ProductVersion "0.22"
|
||||||
VIAddVersionKey FileVersion "0.21"
|
VIAddVersionKey FileVersion "0.22"
|
||||||
VIProductVersion "0.21.0.0"
|
VIProductVersion "0.22.0.0"
|
||||||
VIFileVersion "0.21.0.0"
|
VIFileVersion "0.22.0.0"
|
||||||
!insertmacro MUI_PAGE_WELCOME
|
!insertmacro MUI_PAGE_WELCOME
|
||||||
!insertmacro MUI_PAGE_DIRECTORY
|
!insertmacro MUI_PAGE_DIRECTORY
|
||||||
var StartMenuFolder
|
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\socializer" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
||||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall" "InstallLocation" $INSTDIR
|
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" "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"
|
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" "VersionMajor" 0
|
||||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\socializer" "VersionMinor" 19
|
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\socializer" "VersionMinor" 19
|
||||||
|
Binary file not shown.
@@ -3,7 +3,7 @@ msgstr ""
|
|||||||
"Project-Id-Version: Socializer 0.21\n"
|
"Project-Id-Version: Socializer 0.21\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-07-02 11:04-0500\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"
|
"Last-Translator: Manuel Cortez <manuel@manuelcortez.net>\n"
|
||||||
"Language-Team: Дарья Ратникова <dariafreja@yandex.ru>\n"
|
"Language-Team: Дарья Ратникова <dariafreja@yandex.ru>\n"
|
||||||
"Language: ru\n"
|
"Language: ru\n"
|
||||||
@@ -1080,7 +1080,7 @@ msgid "Post"
|
|||||||
msgstr "Запись"
|
msgstr "Запись"
|
||||||
|
|
||||||
msgid "Post as {user1_nom}"
|
msgid "Post as {user1_nom}"
|
||||||
msgstr "Опубликовать как {user1_name}"
|
msgstr "Опубликовать как {user1_nom}"
|
||||||
|
|
||||||
msgid "Post from {user1_nom}"
|
msgid "Post from {user1_nom}"
|
||||||
msgstr "Запись от {user1_gen}"
|
msgstr "Запись от {user1_gen}"
|
||||||
|
@@ -40,7 +40,8 @@ def find_item(list, item):
|
|||||||
break
|
break
|
||||||
if identifier == None:
|
if identifier == None:
|
||||||
# if there are objects that can't be processed by lack of identifier, let's print keys for finding one.
|
# 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:
|
for i in list:
|
||||||
if identifier in i and i[identifier] == item[identifier]:
|
if identifier in i and i[identifier] == item[identifier]:
|
||||||
return True
|
return True
|
||||||
@@ -53,7 +54,7 @@ class vkSession(object):
|
|||||||
""" Put new items on the local cache database.
|
""" Put new items on the local cache database.
|
||||||
@name str: The name for the buffer stored in the dictionary.
|
@name str: The name for the buffer stored in the dictionary.
|
||||||
@data list: A list with items and some information about cursors.
|
@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
|
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.
|
# 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.
|
# ToDo: It would be nice to investigate whether reusing some existing objects would be a good idea, whenever possible.
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{"current_version": "0.20",
|
{"current_version": "0.21",
|
||||||
"description": ".",
|
"description": ".",
|
||||||
"downloads":
|
"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"}}
|
Reference in New Issue
Block a user