Martin Trigaux
c0308d7522
[MERGE] [FIX] databases list: allow to have entries with unicode char in the database list (opw 589765)
...
This does not allow to use a database with unicode to run openerp but does not fail (was getting an empty list of existing databases)
bzr revid: mat@openerp.com-20140214144444-0tjcz14rhlw94i50
2014-02-14 15:44:44 +01:00
Christophe Simonis
23778030cd
[FIX] forbid dropping templates databases
...
bzr revid: chs@openerp.com-20140129103538-qbm054m29y5r4hu4
2014-01-29 11:35:38 +01:00
Mohammed Shekha
b8690e58e9
[FIX]Fixed the issue of database list retuns blank when there is name with unicode character in postgres, due to this web-client redirects user to create database screen as there is no database comes in response of db_list.
...
bzr revid: msh@openerp.com-20130319070248-57cp7drh0ry0vjz7
2013-03-19 12:32:48 +05:30
Olivier Dony
ffd258e3f0
[FIX] web_services: incorrect error message in logfile after failed DB dump, courtesy of Brendan Clune (Logic Supply)
...
lp bug: https://launchpad.net/bugs/1124440 fixed
bzr revid: odo@openerp.com-20130318144156-q7yw9qy83tngdg6x
2013-03-18 15:41:56 +01:00
Olivier Dony
8d6e91219f
[FIX] web_services: set PGPASSWORD in environment only when db_password is set in the config
...
This prevents an error when trying to set an
environment variable to `False`, and is the
second part of the regression introduced in
revision 4424. See previous partial fix
at revision 4893
lp bug: https://launchpad.net/bugs/1155523 fixed
bzr revid: odo@openerp.com-20130318141532-m2xsahh5u5pi5bth
2013-03-18 15:15:32 +01:00
Olivier Dony
ab76b7a67f
[FIX] web_services: fix db dump/restore when authentication requires a password on non-win32 systems
...
The various pg_* utilities require the password
via a special environment variable or a special
`pgpass` file in the user home, even on Unix,
namely when the PostgreSQL connection is done
via TCP and not via a unix socket.
Setting the environment variable is relatively
safe if it is removed from the environment
immediately after the operation, and saves user
the trouble of managing the pgpass file themselves.
This had been fixed at revision 3992 but was
incorrectly removed for non win32 platforms
at revision 4424 (rev-id stw@openerp.com-20120912114651-8hcliparft1ep9tc )
lp bug: https://launchpad.net/bugs/790164 fixed
lp bug: https://launchpad.net/bugs/919100 fixed
bzr revid: odo@openerp.com-20130313152020-suo2pyrabae0ecg4
2013-03-13 16:20:20 +01:00
Olivier Dony
db81edc287
[FIX] *: fix/rationalize db logging to avoid incorrect values during logging
...
The setting/clearing of the tracking were not done
consistently, causing log messages that appeared
to come from one database while coming from another
one or none at all.
The tracker is now set at the earliest points
of request handling where we can:
- in web client, when creating WebRequests (dbname, uid)
- at RPC dispatching in server (uid)
- at cron job acquisition in CronWorker (dbname)
- at Registry acquisition in RegistryManager (dbname)
The tracker is cleared at the very entrance of
the request in the WSGI `application`, ensuring
that no logging is produced with an obsolete
db name. (It cannot be cleared at the end of
the request handling because the werkzeug
wrapper outputs more logging afterwards)
bzr revid: odo@openerp.com-20130301120744-jfitcmze2jldecod
2013-03-01 13:07:44 +01:00
dle@openerp.com
73cb6d5321
[FIX]Try to create already existing database throws warning instead of traceback.
...
bzr revid: dle@openerp.com-20121221090925-2i82d31dc061zngn
2012-12-21 10:09:25 +01:00
Antony Lesuisse
565853b732
[MERGE] trunk
...
bzr revid: al@openerp.com-20121219030106-i59u10tml3baqvun
bzr revid: al@openerp.com-20121219150107-8l92w2bi510yem45
2012-12-19 16:01:07 +01:00
Raphael Collet
b63518345e
[FIX] web_services: fix incorrect query to set admin's password and lang
...
bzr revid: rco@openerp.com-20121219093816-atf0p0jtuwv6hd31
2012-12-19 10:38:16 +01:00
Antony Lesuisse
edef11eaaf
apps dont break protocol
...
bzr revid: al@openerp.com-20121219023226-gfceiyrmi50my80e
2012-12-19 03:32:26 +01:00
Christophe Simonis
0c7f17c0ac
merge upstream
...
bzr revid: chs@openerp.com-20121217172614-3z1pstu5th26wuuc
2012-12-17 18:26:14 +01:00
Xavier Morel
c6079dd6bb
[REM] unnecessary parens
...
bzr revid: xmo@openerp.com-20121214123803-6xu2s1ndnoyj4i3e
2012-12-14 13:38:03 +01:00
Christophe Simonis
236df95b22
merge upstream
...
bzr revid: chs@openerp.com-20121210132406-9ro3amw6s6pzeez4
2012-12-10 14:24:06 +01:00
Nimesh (Open ERP)
480e116b40
[MERGE] with trunk
...
bzr revid: nco@tinyerp.com-20121210070332-6h5qnlcf4whjv7p5
2012-12-10 12:33:32 +05:30
Antony Lesuisse
3d3eac7c50
service cleanups, more wizard removal
...
bzr revid: al@openerp.com-20121209184632-hp9b9fbbn9g4h2lw
2012-12-09 19:46:32 +01:00
Antony Lesuisse
603009f5bc
[FIX] duplicate database
...
bzr revid: al@openerp.com-20121209030348-iyh2zz6oseuu14c6
2012-12-09 04:03:48 +01:00
Antony Lesuisse
3d2a09a973
multiprocessing signaling manually backported from 6.1
...
bzr revid: al@openerp.com-20121208181151-lfy956ysnok5b5hf
2012-12-08 19:11:51 +01:00
Nimesh (Open ERP)
713a9e31fe
[MERGE] merge with lp:openobject-server
...
bzr revid: nco@tinyerp.com-20121204120249-yvw89bih2ad94f3u
2012-12-04 17:32:49 +05:30
Christophe Simonis
a208447a3d
merge upstream
...
bzr revid: chs@openerp.com-20121128184100-rkr90mrx38fh9q4l
2012-11-28 19:41:00 +01:00
Olivier Dony
080fe746f5
[FIX] db.drop service: PostgreSQL 9.2 renamed pg_stat_activity.procpid to pid
...
bzr revid: odo@openerp.com-20121128153423-yducsjb91g8kjcae
2012-11-28 16:34:23 +01:00
Jalpesh Patel (OpenERP)
b2a1d5d9b1
[Merge] Merge with lp:openobject-server
...
bzr revid: pja@tinyerp.com-20121116050347-5w5v4h7stdn9oyhp
2012-11-16 10:33:47 +05:30
Christophe Simonis
8200848b3f
merge upstream
...
bzr revid: chs@openerp.com-20121114174352-a0xbech8o4dav16b
2012-11-14 18:43:52 +01:00
Vo Minh Thu
7dcb31bcde
[IMP] duplicate_database: better logging.
...
bzr revid: vmt@openerp.com-20121114112521-g9q2n88ql9qwvlum
2012-11-14 12:25:21 +01:00
Jalpesh Patel (OpenERP)
8e58d8d17c
[FIX] fix problem create db when already exists
...
bzr revid: pja@tinyerp.com-20121112103321-v39900rc6tu0pvmb
2012-11-12 16:03:21 +05:30
Vo Minh Thu
e0e1aa5d15
[IMP] database management: added `duplicate` operation.
...
bzr revid: vmt@openerp.com-20121019101349-dt43p6da7avdsmk2
2012-10-19 12:13:49 +02:00
Christophe Simonis
bfd0ffb694
[IMP] rpc: common/version return more info
...
bzr revid: chs@openerp.com-20121001164432-z5cqm6ffmgoocnec
2012-10-01 18:44:32 +02:00
Stephane Wirtel
c680236e8f
[IMP] openerp.service.web_services.db: Use a contextmanager for the backup/restore functions.
...
Ported from lp:~openerp-dev/openobject-server/trunk-dump_and_restore_improvements-xmo
bzr revid: stw@openerp.com-20120912114651-8hcliparft1ep9tc
2012-09-12 13:46:51 +02:00
Stephane Wirtel
4da5c9ef63
[MERGE] use the postgres db instead of template1 for the creation of a database
...
bzr revid: stw@openerp.com-20120912111910-b092erlzv2g7wh1u
2012-09-12 13:19:10 +02:00
Stephane Wirtel
f55028de4d
[MERGE] server: remove unused imports (Thanks to Florent Xicluna)
...
bzr revid: stw@openerp.com-20120910144609-ad3gupkf3oseb8yy
2012-09-10 16:46:09 +02:00
Stephane Wirtel
b3988436cb
[REF] Replace the user id 1 by openerp.SUPERUSER_ID
...
bzr revid: stw@openerp.com-20120831135309-o4plzf5wp0kyuzgf
2012-08-31 15:53:09 +02:00
Thibault Delavallée
0e554c738d
[FIX] Fixed last revision, about name removel in base.sql and so on.
...
bzr revid: tde@openerp.com-20120813100622-jhqv244dskhlh2er
2012-08-13 12:06:22 +02:00
Thibault Delavallée
d0b4f8413c
[REF] base.sql, web_services: propagated changes in res.users model (lang, not context_lang anymore; tz, not context_tz.
...
bzr revid: tde@openerp.com-20120810081836-y4f2nsft9g7p4hl6
2012-08-10 10:18:36 +02:00
Olivier Dony
975c65860f
[MERGE] Latest bugfixes from 6.1
...
bzr revid: odo@openerp.com-20120322150506-vo7r1k65phlotaa2
2012-03-22 16:05:06 +01:00
Olivier Dony
224dc24dac
[MERGE] Try to terminate psql connections before dropping database
...
bzr revid: odo@openerp.com-20120316160216-enjjiyw8t6457tqj
2012-03-16 17:02:16 +01:00
Olivier Dony
4af38cc64a
[IMP] attempt to dump uid performing operation along with thread stacks
...
bzr revid: odo@openerp.com-20120316111218-o963t7xm4r4honoy
2012-03-16 12:12:18 +01:00
Christophe Simonis
3df9fa50fb
[IMP] try to terminate all postgresql backends connected to a database before dropping it
...
bzr revid: chs@openerp.com-20120222102639-q19kiykopb3b3qu0
2012-02-22 11:26:39 +01:00
Antony Lesuisse
c6ad066b59
[FIX] database restore dont prepend a space before the tempfile
...
lp bug: https://launchpad.net/bugs/859720 fixed
bzr revid: al@openerp.com-20120214193030-uhqyuo70l527ypsn
2012-02-14 20:30:30 +01:00
Antony Lesuisse
a1e5c645d9
postgres use postgres instead of template1 and template1 instead of template0
...
bzr revid: al@openerp.com-20120209213317-3tt4o0sj87764ocn
2012-02-09 22:33:17 +01:00
Florent Xicluna
1ef81548ba
[REF] additional cleanup after vmt's logging refactoring.
...
bzr revid: florent.xicluna@gmail.com-20120208142248-p63odfqo673yqqml
2012-02-08 15:22:48 +01:00
Florent Xicluna
d8b25ca182
[MRG] merge trunk.
...
bzr revid: florent.xicluna@gmail.com-20120208141358-emgwspa0s58gtsez
2012-02-08 15:13:58 +01:00
Vo Minh Thu
876c61b052
[MERGE] merged logging changes: use a top-level `openerp` name space. Similar changes for the addons will be done after 6.1.
...
bzr revid: vmt@openerp.com-20120208105913-habqxas406osaz9z
2012-02-08 11:59:13 +01:00
Antony Lesuisse
8289a2869e
[FIX] remove useless decodes that break on pg9.0
...
lp bug: https://launchpad.net/bugs/917030 fixed
bzr revid: al@openerp.com-20120208003800-whnxjgw2n2v0ea2i
2012-02-08 01:38:00 +01:00
Vo Minh Thu
81ee705498
[IMP] logging: use logging.exception() instead of manually formatting the traceback.
...
bzr revid: vmt@openerp.com-20120202125442-h73uaga3vu2s8upv
2012-02-02 13:54:42 +01:00
Antony Lesuisse
91ef8c1c51
[FIX] review according to xmo :)
...
bzr revid: al@openerp.com-20120201235604-tr5iq676pzk8bi1m
2012-02-02 00:56:04 +01:00
Antony Lesuisse
1a62602c86
[MERGE] trunk
...
bzr revid: al@openerp.com-20120131211744-whzzo0dh6w1kptng
2012-01-31 22:17:44 +01:00
Olivier Dony
b281791ff5
[IMP] db dump: correct reference URL in comments
...
bzr revid: odo@openerp.com-20120131113642-z6z4vs11fcwkyaqq
2012-01-31 12:36:42 +01:00
Olivier Dony
f11e1de5eb
[FIX] db dump: report errors due to missing password + pass PGPASSWORD even on Unix
...
Even on Unix systems the PGPASSWORD env var
is necessary when Postgres is configured to
deny unix socket connections or to require
a password anyway. This avoids asking admins
to manually create a ~/.pgpass file in order
to use the dump/restore tools.
Also did some cleanup to ensure the PGPASSWORD
var is removed from the environment as soon
as the operation is done.
lp bug: https://launchpad.net/bugs/790164 fixed
lp bug: https://launchpad.net/bugs/919100 fixed
bzr revid: odo@openerp.com-20120131110849-tji6ipjovxc9oi4v
2012-01-31 12:08:49 +01:00
Vo Minh Thu
f057f2afa5
[IMP] openerp.loglevels: removed calls to openerp.loglevels.Logger().
...
bzr revid: vmt@openerp.com-20120124173017-c66z3kq11wmbrrke
2012-01-24 18:30:17 +01:00
Vo Minh Thu
ada52a1beb
[IMP] openerp.service: _logger with fully qualified module name.
...
bzr revid: vmt@openerp.com-20120124150750-0bn7nagjx9k3bi6j
2012-01-24 16:07:50 +01:00