diff -Nur pykota-1.27.0.o/initscripts/postgresql/pykota-postgresql.sql pykota-1.27.0/initscripts/postgresql/pykota-postgresql.sql --- pykota-1.27.0.o/initscripts/postgresql/pykota-postgresql.sql 2018-03-09 17:12:13.942141000 +0100 +++ pykota-1.27.0/initscripts/postgresql/pykota-postgresql.sql 2018-03-09 16:43:54.802141000 +0100 @@ -30,14 +30,14 @@ -- -- Create the print quota database -- -CREATE DATABASE pykota WITH ENCODING='UTF-8'; +CREATE DATABASE pykota WITH TEMPLATE=template0 ENCODING='UTF-8'; -- -- Create the print quota database users -- NOTE: Change the password values to the passwords you would like. -- -CREATE USER pykotauser WITH UNENCRYPTED PASSWORD 'readonlypw' NOCREATEDB NOCREATEUSER; -CREATE USER pykotaadmin WITH UNENCRYPTED PASSWORD 'readwritepw' NOCREATEDB NOCREATEUSER; +CREATE USER pykotauser WITH UNENCRYPTED PASSWORD 'readonlypw' NOCREATEDB; +CREATE USER pykotaadmin WITH UNENCRYPTED PASSWORD 'readwritepw' NOCREATEDB; -- -- Now connect to the new database diff -Nur pykota-1.27.0.o/pykota/storages/pgstorage.py pykota-1.27.0/pykota/storages/pgstorage.py --- pykota-1.27.0.o/pykota/storages/pgstorage.py 2018-03-09 17:12:13.978141000 +0100 +++ pykota-1.27.0/pykota/storages/pgstorage.py 2018-03-09 15:48:33.000000000 +0100 @@ -60,10 +60,6 @@ raise PGError, msg self.closed = 0 try : - self.quote = self.database._quote - except AttributeError : # pg