[tryton-debian-vcs] tryton-server branch debian-stretch-3.6 updated. debian/3.6.8-1-2-ge6c7052
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Sat Apr 9 18:56:22 UTC 2016
The following commit has been merged in the debian-stretch-3.6 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-server.git;a=commitdiff;h=debian/3.6.8-1-2-ge6c7052
commit e6c70524b04a2cd76784720328af9f131db6dcb1
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sat Apr 9 20:14:28 2016 +0200
Releasing debian version 3.6.9-1.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/debian/changelog b/debian/changelog
index 95e9c14..1edf358 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+tryton-server (3.6.9-1) unstable; urgency=medium
+
+ * Merging upstream version 3.6.9.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Sat, 09 Apr 2016 20:14:28 +0200
+
tryton-server (3.6.8-1) unstable; urgency=medium
* Updating signing-key.asc with the actual upstream maintainer keys.
commit 8efbe10d4e555c4e9ab965b63febbb30035404f2
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sat Apr 9 20:14:28 2016 +0200
Merging upstream version 3.6.9.
diff --git a/CHANGELOG b/CHANGELOG
index 5d543fc..c3deb3b 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.6.9 - 2016-04-06
+* Bug fixes (see mercurial logs for details)
+
Version 3.6.8 - 2016-03-14
* Bug fixes (see mercurial logs for details)
* Limit the login size in LoginAttempt
diff --git a/PKG-INFO b/PKG-INFO
index 9db3fc5..12a0674 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond
-Version: 3.6.8
+Version: 3.6.9
Summary: Tryton server
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/trytond.egg-info/PKG-INFO b/trytond.egg-info/PKG-INFO
index 9db3fc5..12a0674 100644
--- a/trytond.egg-info/PKG-INFO
+++ b/trytond.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond
-Version: 3.6.8
+Version: 3.6.9
Summary: Tryton server
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/trytond.egg-info/requires.txt b/trytond.egg-info/requires.txt
index b1f81fe..12c57b9 100644
--- a/trytond.egg-info/requires.txt
+++ b/trytond.egg-info/requires.txt
@@ -5,11 +5,14 @@ python-dateutil
polib
python-sql >= 0.4
-[cdecimal]
-cdecimal
+[BCrypt]
+bcrypt
-[unoconv]
-unoconv
+[Levenshtein]
+python-Levenshtein
+
+[MySQL]
+MySQL-python
[PostgreSQL]
psycopg2 >= 2.0
@@ -17,17 +20,14 @@ psycopg2 >= 2.0
[WebDAV]
PyWebDAV >= 0.9.8
-[simplejson]
-simplejson
-
-[MySQL]
-MySQL-python
+[cdecimal]
+cdecimal
-[BCrypt]
-bcrypt
+[graphviz]
+pydot
-[Levenshtein]
-python-Levenshtein
+[simplejson]
+simplejson
-[graphviz]
-pydot
\ No newline at end of file
+[unoconv]
+unoconv
diff --git a/trytond/__init__.py b/trytond/__init__.py
index 233ef19..590a3aa 100644
--- a/trytond/__init__.py
+++ b/trytond/__init__.py
@@ -4,7 +4,7 @@ import os
import time
from email import charset
-__version__ = "3.6.8"
+__version__ = "3.6.9"
os.environ['TZ'] = 'UTC'
if hasattr(time, 'tzset'):
diff --git a/trytond/backend/mysql/table.py b/trytond/backend/mysql/table.py
index 59d68a1..4d2c2a6 100644
--- a/trytond/backend/mysql/table.py
+++ b/trytond/backend/mysql/table.py
@@ -88,6 +88,7 @@ class TableHandler(TableHandlerInterface):
self.cursor.execute('ALTER TABLE `%s` '
'RENAME COLUMN `%s` TO `%s`'
% (self.table_name, old_name, new_name))
+ self._update_definitions()
elif exception and self.column_exist(new_name):
raise Exception('Unable to rename column %s.%s to %s.%s: '
'%s.%s already exist!'
diff --git a/trytond/backend/postgresql/table.py b/trytond/backend/postgresql/table.py
index 3256fd9..0287091 100644
--- a/trytond/backend/postgresql/table.py
+++ b/trytond/backend/postgresql/table.py
@@ -110,6 +110,7 @@ class TableHandler(TableHandlerInterface):
self.cursor.execute('ALTER TABLE "%s" '
'RENAME COLUMN "%s" TO "%s"'
% (self.table_name, old_name, new_name))
+ self._update_definitions()
elif exception and self.column_exist(new_name):
raise Exception('Unable to rename column %s.%s to %s.%s: '
'%s.%s already exist!'
diff --git a/trytond/backend/sqlite/table.py b/trytond/backend/sqlite/table.py
index 0e7317b..236645e 100644
--- a/trytond/backend/sqlite/table.py
+++ b/trytond/backend/sqlite/table.py
@@ -115,6 +115,7 @@ class TableHandler(TableHandlerInterface):
','.join('"%s"' % x for x in old_columns) + ' ' +
'FROM "%s"') % (self.table_name, temp_table))
self.cursor.execute('DROP TABLE "%s"' % temp_table)
+ self._update_definitions()
elif exception and self.column_exist(new_name):
raise Exception('Unable to rename column %s.%s to %s.%s: '
'%s.%s already exist!'
diff --git a/trytond/ir/cron.py b/trytond/ir/cron.py
index 336def8..470e901 100644
--- a/trytond/ir/cron.py
+++ b/trytond/ir/cron.py
@@ -15,6 +15,7 @@ from ..transaction import Transaction
from ..pool import Pool
from .. import backend
from ..config import config
+from ..cache import Cache
__all__ = [
'Cron',
@@ -176,6 +177,7 @@ class Cron(ModelSQL, ModelView):
def run(cls, db_name):
now = datetime.datetime.now()
with Transaction().start(db_name, 0) as transaction:
+ Cache.clean(db_name)
transaction.cursor.lock(cls._table)
crons = cls.search([
('number_calls', '!=', 0),
@@ -204,3 +206,4 @@ class Cron(ModelSQL, ModelView):
except Exception:
transaction.cursor.rollback()
logger.error('Running cron %s', cron.id, exc_info=True)
+ Cache.resets(db_name)
diff --git a/trytond/protocols/dispatcher.py b/trytond/protocols/dispatcher.py
index e22994c..50372b6 100644
--- a/trytond/protocols/dispatcher.py
+++ b/trytond/protocols/dispatcher.py
@@ -292,12 +292,14 @@ def restore(database_name, password, data, update=False):
Database = backend.get('Database')
security.check_super(password)
try:
- database = Database().connect()
+ database = Database(database_name).connect()
cursor = database.cursor()
cursor.close(close=True)
- raise Exception("Database already exists!")
+ existing = True
except Exception:
- pass
+ existing = False
+ if existing:
+ raise Exception('Database already exists!')
Database.restore(database_name, data)
logger.info('RESTORE DB: %s', database_name)
if update:
--
tryton-server
More information about the tryton-debian-vcs
mailing list