-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I think this lines in database.py Cursor.test() 367 "'ir_module_module_dependency, '" 368 "'ir_translation, '" should be changed to 367 "'ir_module_module_dependency', " 368 "'ir_translation', "
And to avoid the problem I had, tryton not showing even my own databases, perhaps we should catch the (possible) exception in Database.list() newline try: 197 if cursor2.test(): 198 res.append(db_name) 199 cursor2.close(close=True) 200 else: 201 cursor2.close(close=True) 202 database.close() newline exception Exception: newline database.close() newline continue Only thing I don't understand: why tryton don't throw always an exception on the wrong SQL-syntax? Am 10.07.2010 10:02, schrieb Cédric Krier: > On 10/07/10 08:59 +0200, Ralf Peschke wrote: >> I can dump, restore and access the customers database, that's not the >> problem. Postgresql is always the same version 8.4. >> But tryton does not accept it as a tryton-database. I assume that it >> fails gathering all available tryton-databases and refuses to show any >> of my other tryton-databases with given reason "no connection to >> database". After droping the customers-database everything is okay, my >> tryton-databases are listed. >> >> I think I should have a look to the source, but I am new to coding tryton. >> Where do I find the module/source that gathers the available >> tryton-databases? > > Here: > http://hg.tryton.org/hgwebdir.cgi/trytond/file/faf73da61003/trytond/backend/postgresql/database.py#l153 > - -- Peschke IT-Beratung Ralf Peschke Hüffener Heide 3 32257 Bünde Tel: 05223/ 97 89 07 90 Fax: 05223/ 97 89 07 99 Mobil: 0175/ 32 72 561 E-Mail: [email protected] - -------------------------------------- Diese E-Mail könnte vertrauliche und/oder rechtlich geschützte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkw4USIACgkQb2+5ZL6Nh6GBlwCeJh+kftKXw/8MIZDeLj9pgs61 X6gAn2cUNTaHixscBk1t3+ezF9y6i0Sd =Tvj8 -----END PGP SIGNATURE----- -- [email protected] mailing list
