Hello community,

here is the log from the commit of package trytond for openSUSE:Factory checked 
in at 2020-07-21 15:52:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/trytond (Old)
 and      /work/SRC/openSUSE:Factory/.trytond.new.3592 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "trytond"

Tue Jul 21 15:52:43 2020 rev:45 rq:822090 version:5.0.24

Changes:
--------
--- /work/SRC/openSUSE:Factory/trytond/trytond.changes  2020-06-12 
21:41:36.868053314 +0200
+++ /work/SRC/openSUSE:Factory/.trytond.new.3592/trytond.changes        
2020-07-21 15:55:05.836639615 +0200
@@ -1,0 +2,6 @@
+Tue Jul 21 09:52:36 UTC 2020 - Axel Braun <[email protected]>
+
+- Version 5.0.24 - Bugfix Release
+  * readme renamed (SUSE -> openSUSE)
+  
+-------------------------------------------------------------------

Old:
----
  tryton-server.README.SUSE
  trytond-5.0.23.tar.gz

New:
----
  tryton-server.README.openSUSE
  trytond-5.0.24.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ trytond.spec ++++++
--- /var/tmp/diff_new_pack.PlOtIA/_old  2020-07-21 15:55:06.932640948 +0200
+++ /var/tmp/diff_new_pack.PlOtIA/_new  2020-07-21 15:55:06.936640953 +0200
@@ -20,14 +20,14 @@
 %define majorver 5.0
 %define base_name tryton
 Name:           trytond
-Version:        %{majorver}.23
+Version:        %{majorver}.24
 Release:        0
 Summary:        An Enterprise Resource Planning (ERP) system
 License:        GPL-3.0-or-later
 Group:          Productivity/Office/Management
 URL:            https://www.tryton.org/
 Source0:        
http://downloads.tryton.org/%{majorver}/%{name}-%{version}.tar.gz
-Source1:        tryton-server.README.SUSE
+Source1:        tryton-server.README.openSUSE
 Source2:        trytond.conf.example
 Source3:        %{name}.conf
 Source4:        %{name}_log.conf
@@ -115,7 +115,7 @@
 
 %files
 %license LICENSE
-%doc README tryton-server.README.SUSE trytond.conf.example doc/*
+%doc README tryton-server.README.openSUSE trytond.conf.example doc/*
 %{python3_sitelib}/*
 %dir %{_sysconfdir}/%{base_name}
 %{_bindir}/%{name}

++++++ tryton-server.README.openSUSE ++++++
tryton-server for openSUSE
==========================

How to get it running (Without reading the instructions)
========================================================

You have already installed the package trytond and found this documentation. 
Good.

1) Log in as root and start the database
> su
> systemctl start postgresql

2) Change postgres parameters. You need to log in as user postgres, in order to 
avoid authorisation issues. Assuming we have nano as editor:
<you are logged in as user 'root'>

> su postgres
> nano /var/lib/pgsql/data/pg_hba.conf

Change the line
    local   all             all                                     md5
to
    local   all             all                                     trust
Save your input.

Save your input. 

3) Create a role for 'tryton' in the database (sill as user postgres)
> psql -c "CREATE USER tryton WITH CREATEDB;"

4) exit as user postgres and restart postgres
> exit
> systemctl restart postgresql

5) start trytond:
> systemctl start trytond

6) Install the tryton client:
> zypper in tryton

7) Open the tryton client:
>tryton
go to 'manage profiles' -> add -> name it 'localhost' -> Host: localhost
-> you should now see a selection of available databases

Note: From Tryton Release 4.2 onwards it is not possible anymore to create 
databases from the Frontend. You need to do this manually (see below)

DONE.

Setup (a bit more in detail)
============================

Preparing the database
----------------------

Tryton uses a Relational Database Management System (RDBMS) to store data. The
preferred RDBMS for Tryton is PostgreSQL.

You have to setup this database manually. Here is a short explanation how to
achieve this.

We can distinguish two scenarios, to which the following description will 
reference:

  1) the database is created manually (recommended for productive environments)

  2) the database shall be created from the Tryton client (recommended for test)

  * In both cases, make sure PostgreSQL is running:

    > systemctl status postgresql

    Note: If PostgreSQL runs on another machine than the Tryton server, make 
sure
    you have setup database password authentication. Please refer to the
    PostgreSQL manual how to do this. 

    To allow Tryton Server to connect to postgres, md5 authentication should be 
used.
    In the configuration file /var/lib/pgsql/data/pg_hba.conf change the lines

    # IPv4 local connections:
    host    all             all             127.0.0.1/32            ident
    # IPv6 local connections:
    host    all             all             ::1/128                 ident

    to:
    # IPv4 local connections:
    host    all             all             127.0.0.1/32            md5
    # IPv6 local connections:
    host    all             all             ::1/128                 md5
    
    Restart the server for the changes to take effect.
    
  * Creating the database user:
    
    The Tryton Server runs as user 'tryton', so we need a role in postgres for 
this.
    
    For manual database creation (standard as from Tryton 4.2 onwards) it is 
sufficient to create the user as follows:
    
    > su postgres
    > psql -c "CREATE USER tryton WITH CREATEDB;" 
    
    Note: If you want to run the database as another user than 'tryton', you
    need to replace 'tryton' above with the user you want to use instead.

Preparing the Tryton server
---------------------------

  * Setting up the Tryton server (trytond):

    The openSUSE package comes with a working configuration example, see 
    /usr/share/doc/packages/trytond/trytond.conf.example
    It contains all settings for a locally running database and manual database
    configuration.
    
    Adjust /etc/tryton/trytond.conf to reflect any different the setup of your 
system.
    
  * If the Tryton server shall listen on some external interface (i.e. shall be
    available for clients connecting from other machines), change the jsonrpc
    protocol to listen accordingly.

  * If the Tryton server is listening on external interfaces, it is highly
    recommended to enable SSL for the connection.

    Note: See 
https://code.google.com/p/tryton/wiki/InstallationonopenSUSE#Setting_up_SSL_communication_with_the_Tryton_server
    for a description to set up certificates

  * Restarting trytond:

    > systemctl restart trytond

    Note: The fingerprint of connected servers is stored in the clients
    known_hosts file. When a server is changed for its SSL usage, the client
    will refuse to reconnect to this server. Removing the according line
    from ~/.config/tryton/<version>/known_hosts will allow to connect to
    the server again.


Now you are ready to connect with a client, e.g. tryton-client.

Creating the database for Tryton
--------------------------------

For manual creation of the database, the folowing steps are to be performed:

  * Creating the database:

    > su - postgres -c "createdb mydb --encoding='UTF-8' --owner=tryton"

    Note: The owner of the database should be the same user, as under which the 
    tryton server runs (default:tryton) Enter a name for the database 
    (here as default: mydb).

  * Initializing the database:
  
    Log in as user tryton: 

    > sudo su tryton -s /bin/bash
    > /usr/bin/trytond-admin -c /etc/tryton/trytond.conf --all -d mydb

    Note: Use the database name you chose in the previous step (here as 
default: 
    mydb). You will be asked for the admin password for this database. For the 
first time, log in to the newly initialized database with user admin and 
password as set during initialization.

As result you will have a bare Tryton database with the base modules installed.

See: http://doc.tryton.org/4.2/trytond/doc/topics/configuration.html

Installation of the Webfrontend for tryton (sao) from source
------------------------------------------------------------

In case you want to install sao from source:
sao bases on nodejs, and it comes as separate package. Download and extract 
tryton-sao into a directory, say /srv/tryton-sao

Make sure you have nodejs and git installed:
    > zypper install nodejs git

Now change into to installation directory and install sao:
    > cd /srv/tryton-sao/package
    > npm install

Now you need to run grunt. make sure it is run from the locally installed 
version:
    > cd /srv/tryton-sao/package
    > node_modules/grunt-cli/bin/grunt

Last but not least, edit /etc/tryton/trytond.conf
In the section [web], set the path:
    root = /srv/tryton-sao/package

Now restart trytond (or gnuhealth).
    

Upgrade
-------

  * Once you have upgraded to a new major version (second number of the
    version string) you have to update your database(s).
    After the categorically recommended backup do:

    > /usr/bin/trytond-admin -c /etc/tryton/trytond.conf --all -d mydb

    Remember to replace tryton with the name of your database.


Notes
-----

Now, you're finished with the system setup. Please be aware of the following 
things:

  * trytond runs by default under the user 'tryton', who is setup as no-login. 
    If you need to login as user tryton, use su - tryton -s /bin/bash

  * trytond has one default account for server administration:
    - User: admin; password: the one you have configured in trytond.conf
    as super_pwd. This user is the one used for database management tasks
    from the client.

    Note: Each Tryton database will have its own admin with login password
    stored in the database itself (not to be confound with the admin of the
    Tryton Server).

  * trytond must have read access to its configuration file, otherwise it will
    start with internal defaults. The postinst script will (re)set ownership to
    the system user running trytond and correct the permissions on the standard
    configuration file (/etc/tryton/trytond.conf).

  * trytond listens by default on port 8000 (jsonrpc). If you need to change
    this, edit /etc/tryton/trytond.conf in the section [jsonrpc].

  * trytond in its upstream configuration listens by default to the localhost
    interface. If you want to change this default to listen on all interfaces,
    edit /etc/tryton/trytond.conf in the section [jsonrpc].

  * modules can be installed via YaST or zypper, e.g. zypper in trytond_account
  
  * Installation of modules into the database can be done from the
    Administration Panel of the client. Under Modules you can select from the
    modules packages (trytond_*) you have installed on your system. 
        
  * Only the same major version of Tryton client and Tryton server can connect.

 -- Axel Braun <[email protected]>  MON Jun 11 10:27:14 UTC 2018


This file is based on tryton-server.README.Debian
Copyright: 2009-2012 Daniel Baumann <[email protected]>
           2011-2014 Mathias Behrle <[email protected]>
++++++ trytond-5.0.23.tar.gz -> trytond-5.0.24.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.23/.hgtags new/trytond-5.0.24/.hgtags
--- old/trytond-5.0.23/.hgtags  2020-05-18 22:47:53.000000000 +0200
+++ new/trytond-5.0.24/.hgtags  2020-07-16 19:05:21.000000000 +0200
@@ -42,3 +42,4 @@
 95ef70d1e73fb3aaceb57c28fbefe5be0fa578b5 5.0.21
 d676f08167788f1da30fa57b4eecdca7b491fb49 5.0.22
 b48137b41f5094dd1c8e00fed36e495b6be79d23 5.0.23
+00b369c2f3d202d42200528bc555d7c44d7a864c 5.0.24
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.23/CHANGELOG new/trytond-5.0.24/CHANGELOG
--- old/trytond-5.0.23/CHANGELOG        2020-05-18 22:47:52.000000000 +0200
+++ new/trytond-5.0.24/CHANGELOG        2020-07-16 19:05:20.000000000 +0200
@@ -1,3 +1,6 @@
+Version 5.0.24 - 2020-07-16
+* Bug fixes (see mercurial logs for details)
+
 Version 5.0.23 - 2020-05-18
 * Bug fixes (see mercurial logs for details)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.23/PKG-INFO new/trytond-5.0.24/PKG-INFO
--- old/trytond-5.0.23/PKG-INFO 2020-05-18 22:47:54.000000000 +0200
+++ new/trytond-5.0.24/PKG-INFO 2020-07-16 19:05:22.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: trytond
-Version: 5.0.23
+Version: 5.0.24
 Summary: Tryton server
 Home-page: http://www.tryton.org/
 Author: Tryton
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.23/trytond/__init__.py 
new/trytond-5.0.24/trytond/__init__.py
--- old/trytond-5.0.23/trytond/__init__.py      2020-05-15 21:42:44.000000000 
+0200
+++ new/trytond-5.0.24/trytond/__init__.py      2020-05-18 22:48:08.000000000 
+0200
@@ -5,7 +5,7 @@
 import warnings
 from email import charset
 
-__version__ = "5.0.23"
+__version__ = "5.0.24"
 
 os.environ['TZ'] = 'UTC'
 if hasattr(time, 'tzset'):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.23/trytond/ir/ui/view.py 
new/trytond-5.0.24/trytond/ir/ui/view.py
--- old/trytond-5.0.23/trytond/ir/ui/view.py    2019-08-11 19:34:43.000000000 
+0200
+++ new/trytond-5.0.24/trytond/ir/ui/view.py    2020-07-10 23:27:19.000000000 
+0200
@@ -201,6 +201,7 @@
 class ShowViewStart(ModelView):
     'Show view'
     __name__ = 'ir.ui.view.show.start'
+    __no_slots__ = True
 
 
 class ShowView(Wizard):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.23/trytond/worker.py 
new/trytond-5.0.24/trytond/worker.py
--- old/trytond-5.0.23/trytond/worker.py        2020-05-16 22:06:29.000000000 
+0200
+++ new/trytond-5.0.24/trytond/worker.py        2020-07-10 23:27:19.000000000 
+0200
@@ -119,7 +119,7 @@
                 task = Queue(task_id)
                 scheduled_at = dt.datetime.now()
                 scheduled_at += dt.timedelta(
-                    seconds=random.randint(0, 2 ** retry))
+                    seconds=random.randint(0, 2 * retry))
                 Queue.push(task.name, task.data, scheduled_at=scheduled_at)
         except Exception:
             logger.critical(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.23/trytond.egg-info/PKG-INFO 
new/trytond-5.0.24/trytond.egg-info/PKG-INFO
--- old/trytond-5.0.23/trytond.egg-info/PKG-INFO        2020-05-18 
22:47:53.000000000 +0200
+++ new/trytond-5.0.24/trytond.egg-info/PKG-INFO        2020-07-16 
19:05:22.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: trytond
-Version: 5.0.23
+Version: 5.0.24
 Summary: Tryton server
 Home-page: http://www.tryton.org/
 Author: Tryton


Reply via email to