From: Marc S. <mar...@gm...> - 2004-11-09 14:00:12
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, due to the fact, that I got no response to my previous mail "Problem with longID = True and sequences" from 2004-11-04 I did some more testing regarding this problem: I use SQLObject 0.6, PostgreSQL 7.4.2, Python 2.3.3, psycopg 1.1.14 on SuSE Linux 9.1. I have prepared the following little sample, which does or does not work depending on where you define longID = True: - --snip-- #! /usr/bin/env python from sqlobject import * __connection__ = PostgresConnection( ~ host='localhost', db='sqlobject_test', ~ user='YourUserName', passwd='', debug = 1) # FIXME: This does not work (but it should?) #__connection__.style = MixedCaseUnderscoreStyle(longID = True) class TestTable2(SQLObject): ~ # This does work, where's the difference? ~ _style = MixedCaseUnderscoreStyle(longID = True) ~ testEntry = StringCol() TestTable2.createTable() t2 = TestTable2( ~ testEntry = "bla" ~ ) # EOF - --snip-- According to the documentation, __connection__.style = MixedCaseUnderscoreStyle(longID = True) should also work (globaly) but it does not (longID is obviously ignored). Can anyone reproduce the failure (just cut & paste and uncomment the __connection__-line and comment the _style-line). Is this a bug or am I doing something stupid here? Any answer would be appreciated. - -- Bye, Marc Saric http://www.marcsaric.de -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFBkM1cvKxJUF29wRIRAmc0AJ9s23BfBvwUHSSC6QIUBery7fnHjgCdE38i rvarKhIcZEL7uMxhCPbQMPE= =MpiE -----END PGP SIGNATURE----- |