Hello community, here is the log from the commit of package trytond for openSUSE:Factory checked in at 2017-08-18 15:06:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/trytond (Old) and /work/SRC/openSUSE:Factory/.trytond.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "trytond" Fri Aug 18 15:06:00 2017 rev:11 rq:517418 version:4.2.6 Changes: -------- --- /work/SRC/openSUSE:Factory/trytond/trytond.changes 2017-07-11 08:27:56.893651079 +0200 +++ /work/SRC/openSUSE:Factory/.trytond.new/trytond.changes 2017-08-18 15:06:02.444323309 +0200 @@ -1,0 +2,7 @@ +Thu Aug 10 20:04:47 UTC 2017 - [email protected] + +- Version 4.2.6 + bugfix release + typo in trytond.conf removed + +------------------------------------------------------------------- Old: ---- trytond-4.2.5.tar.gz New: ---- trytond-4.2.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ trytond.spec ++++++ --- /var/tmp/diff_new_pack.Aegc5U/_old 2017-08-18 15:06:03.612158832 +0200 +++ /var/tmp/diff_new_pack.Aegc5U/_new 2017-08-18 15:06:03.616158268 +0200 @@ -20,7 +20,7 @@ %define majorver 4.2 %define base_name tryton Name: trytond -Version: %{majorver}.5 +Version: %{majorver}.6 Release: 0 Summary: An Enterprise Resource Planning (ERP) system ++++++ tryton-server.README.SUSE ++++++ --- /var/tmp/diff_new_pack.Aegc5U/_old 2017-08-18 15:06:03.700146439 +0200 +++ /var/tmp/diff_new_pack.Aegc5U/_new 2017-08-18 15:06:03.700146439 +0200 @@ -221,7 +221,7 @@ Last but not least, edit /etc/tryton/trytond.conf In the section [web], set the path: - root = /usr/lib/node-modules/tryton-sao + root = /srv/tryton-sao/package Now restart trytond. ++++++ trytond-4.2.5.tar.gz -> trytond-4.2.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.2.5/CHANGELOG new/trytond-4.2.6/CHANGELOG --- old/trytond-4.2.5/CHANGELOG 2017-07-01 23:36:39.000000000 +0200 +++ new/trytond-4.2.6/CHANGELOG 2017-08-08 18:17:35.000000000 +0200 @@ -1,3 +1,6 @@ +Version 4.2.6 - 2017-08-08 +* Bug fixes (see mercurial logs for details) + Version 4.2.5 - 2017-07-01 * Bug fixes (see mercurial logs for details) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.2.5/PKG-INFO new/trytond-4.2.6/PKG-INFO --- old/trytond-4.2.5/PKG-INFO 2017-07-01 23:36:41.000000000 +0200 +++ new/trytond-4.2.6/PKG-INFO 2017-08-08 18:17:37.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: trytond -Version: 4.2.5 +Version: 4.2.6 Summary: Tryton server Home-page: http://www.tryton.org/ Author: Tryton diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.2.5/trytond/__init__.py new/trytond-4.2.6/trytond/__init__.py --- old/trytond-4.2.5/trytond/__init__.py 2017-06-05 23:34:16.000000000 +0200 +++ new/trytond-4.2.6/trytond/__init__.py 2017-07-01 23:37:13.000000000 +0200 @@ -5,7 +5,7 @@ import logging from email import charset -__version__ = "4.2.5" +__version__ = "4.2.6" logger = logging.getLogger(__name__) os.environ['TZ'] = 'UTC' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.2.5/trytond/ir/action.py new/trytond-4.2.6/trytond/ir/action.py --- old/trytond-4.2.5/trytond/ir/action.py 2017-07-01 23:36:38.000000000 +0200 +++ new/trytond-4.2.6/trytond/ir/action.py 2017-08-08 18:17:33.000000000 +0200 @@ -899,7 +899,6 @@ class ActionActWindowView(ModelSQL, ModelView): "Action act window view" __name__ = 'ir.action.act_window.view' - _rec_name = 'view' sequence = fields.Integer('Sequence', required=True) view = fields.Many2One('ir.ui.view', 'View', required=True, ondelete='CASCADE') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.2.5/trytond/ir/model.py new/trytond-4.2.6/trytond/ir/model.py --- old/trytond-4.2.5/trytond/ir/model.py 2017-05-03 18:52:26.000000000 +0200 +++ new/trytond-4.2.6/trytond/ir/model.py 2017-08-08 18:17:33.000000000 +0200 @@ -384,7 +384,6 @@ class ModelAccess(ModelSQL, ModelView): "Model access" __name__ = 'ir.model.access' - _rec_name = 'model' model = fields.Many2One('ir.model', 'Model', required=True, ondelete="CASCADE") group = fields.Many2One('res.group', 'Group', @@ -440,6 +439,13 @@ def default_perm_delete(): return False + def get_rec_name(self, name): + return self.model.rec_name + + @classmethod + def search_rec_name(cls, name, clause): + return [('model',) + tuple(clause[1:])] + @classmethod def get_access(cls, models): 'Return access for models' @@ -568,7 +574,6 @@ class ModelFieldAccess(ModelSQL, ModelView): "Model Field Access" __name__ = 'ir.model.field.access' - _rec_name = 'field' field = fields.Many2One('ir.model.field', 'Field', required=True, ondelete='CASCADE') group = fields.Many2One('res.group', 'Group', ondelete='CASCADE') @@ -618,6 +623,13 @@ def default_perm_delete(): return True + def get_rec_name(self, name): + return self.field.rec_name + + @classmethod + def search_rec_name(cls, name, clause): + return [('field',) + tuple(clause[1:])] + @classmethod def get_access(cls, models): 'Return fields access for models' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.2.5/trytond/ir/module.py new/trytond-4.2.6/trytond/ir/module.py --- old/trytond-4.2.5/trytond/ir/module.py 2017-05-03 18:52:26.000000000 +0200 +++ new/trytond-4.2.6/trytond/ir/module.py 2017-08-08 18:17:33.000000000 +0200 @@ -377,7 +377,6 @@ class ModuleConfigWizardItem(ModelSQL, ModelView): "Config wizard to run after activating a module" __name__ = 'ir.module.config_wizard.item' - _rec_name = 'action' action = fields.Many2One('ir.action', 'Action', required=True, readonly=True) sequence = fields.Integer('Sequence', required=True) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.2.5/trytond/model/modelsql.py new/trytond-4.2.6/trytond/model/modelsql.py --- old/trytond-4.2.5/trytond/model/modelsql.py 2017-05-03 18:52:26.000000000 +0200 +++ new/trytond-4.2.6/trytond/model/modelsql.py 2017-08-08 18:17:33.000000000 +0200 @@ -606,13 +606,13 @@ cls._insert_history(new_ids) + field_names = cls._fields.keys() + cls._update_mptt(field_names, [new_ids] * len(field_names)) + records = cls.browse(new_ids) for sub_records in grouped_slice(records, cache_size()): cls._validate(sub_records) - field_names = cls._fields.keys() - cls._update_mptt(field_names, [new_ids] * len(field_names)) - cls.trigger_create(records) return records diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.2.5/trytond/protocols/wrappers.py new/trytond-4.2.6/trytond/protocols/wrappers.py --- old/trytond-4.2.5/trytond/protocols/wrappers.py 2017-05-03 18:52:26.000000000 +0200 +++ new/trytond-4.2.6/trytond/protocols/wrappers.py 2017-08-08 18:17:33.000000000 +0200 @@ -151,7 +151,7 @@ pool = Pool() UserApplication = pool.get('res.user.application') - authorization = request.headers['Authorization'] + authorization = wsgi_to_bytes(request.headers['Authorization']) try: auth_type, auth_info = authorization.split(None, 1) auth_type = auth_type.lower() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.2.5/trytond/tools/misc.py new/trytond-4.2.6/trytond/tools/misc.py --- old/trytond-4.2.5/trytond/tools/misc.py 2017-05-03 18:52:27.000000000 +0200 +++ new/trytond-4.2.6/trytond/tools/misc.py 2017-08-08 18:17:33.000000000 +0200 @@ -43,12 +43,14 @@ epoint = EGG_MODULES[module_name] mod_path = os.path.join(epoint.dist.location, *epoint.module_name.split('.')[:-1]) + mod_path = os.path.abspath(mod_path) egg_name = secure_join(mod_path, name) if not os.path.isfile(egg_name): # Find module in path for path in sys.path: mod_path = os.path.join(path, *epoint.module_name.split('.')[:-1]) + mod_path = os.path.abspath(mod_path) egg_name = secure_join(mod_path, name) if os.path.isfile(egg_name): break diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-4.2.5/trytond.egg-info/PKG-INFO new/trytond-4.2.6/trytond.egg-info/PKG-INFO --- old/trytond-4.2.5/trytond.egg-info/PKG-INFO 2017-07-01 23:36:40.000000000 +0200 +++ new/trytond-4.2.6/trytond.egg-info/PKG-INFO 2017-08-08 18:17:36.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: trytond -Version: 4.2.5 +Version: 4.2.6 Summary: Tryton server Home-page: http://www.tryton.org/ Author: Tryton ++++++ trytond.conf ++++++ --- /var/tmp/diff_new_pack.Aegc5U/_old 2017-08-18 15:06:04.056096307 +0200 +++ /var/tmp/diff_new_pack.Aegc5U/_new 2017-08-18 15:06:04.056096307 +0200 @@ -21,13 +21,13 @@ uri = postgresql:/// # -# # PostgreSQL via TCP/IP # (e.g. connecting to a PostgreSQL database running on a remote machine or # by means of md5 authentication. Needs PostgreSQL to be configured to accept # those connections (pg_hba.conf).) +# #uri = postgresql://tryton:tryton@localhost:5432/ - +# # The path to the directory where the Tryton Server stores files. # The server must have write permissions to this directory. # (Internal default: /var/lib/trytond) @@ -135,4 +135,4 @@ [web] # Path for the web-frontend -#root = /usr/lib/node-modules/tryton-sao +#root = /usr/lib/node_modules/tryton-sao ++++++ trytond.conf.example ++++++ --- /var/tmp/diff_new_pack.Aegc5U/_old 2017-08-18 15:06:04.100090111 +0200 +++ /var/tmp/diff_new_pack.Aegc5U/_new 2017-08-18 15:06:04.104089548 +0200 @@ -132,4 +132,4 @@ [web] # Path for the web-frontend -#root = /usr/lib/node-modules/tryton-sao +#root = /usr/lib/node_modules/tryton-sao
