[SQLObject] Mixed case fields

2006-03-04 Thread Elver Loho
Hi! I'm getting the structure with sqlmeta.fromDatabase = True. There's a column in the table called en_US, which for some reason SQLObject tries to access as en_u_s. 1/QueryAll: SHOW COLUMNS FROM locale Populating from DB. 1/QueryOne: SELECT code, en_u_s, eng, lat, lit, rus, est, comments

[SQLObject] Bloody hell

2006-04-19 Thread Elver Loho
This is insane. I cannot put this at the beginning of a larger Python program: from sqlobject import * class Transactions(SQLObject): sqlmeta.fromDatabase = True _style = MixedCaseStyle() Because it complains that: AttributeError: No connection has been defined for this thread

Re: [SQLObject] Thank you for the nice words (was: Bloody hell)

2006-04-19 Thread Elver Loho
On 4/19/06, Oleg Broytmann [EMAIL PROTECTED] wrote: On Wed, Apr 19, 2006 at 05:24:56PM +0300, Elver Loho wrote: class Transactions(SQLObject): sqlmeta.fromDatabase = True AttributeError: No connection has been defined for this thread or process You asked SQLObject to draw

[SQLObject] Connection timeout

2006-06-17 Thread Elver Loho
How can I check if the connection in the current thread has idled to death or not and re-establish it? Can SQLObject do this automatically somehow? ___ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net

Re: [SQLObject] Connection timeout

2006-06-19 Thread Elver Loho
On 6/19/06, Oleg Broytmann [EMAIL PROTECTED] wrote: On Sat, Jun 17, 2006 at 08:36:03PM +0300, Elver Loho wrote: How can I check if the connection in the current thread has idled to death or not and re-establish it? Can SQLObject do this automatically somehow? Only for those backends

Re: [SQLObject] Select by foreign key

2007-01-31 Thread Elver Loho
On 31/01/07, Oleg Broytmann [EMAIL PROTECTED] wrote: On Wed, Jan 31, 2007 at 03:07:34PM +0200, Elver Loho wrote: class FriendRequest(SQLObject): requester = ForeignKey(User, dbName = requester_id) requested = ForeignKey(User, dbName = requested_id) elver = get_user(elver) requests