Re: [SQLObject] Changing database connection programatically

2008-07-10 Thread Molly Aplet
8PM -0700, Molly Aplet wrote: > > My intention was to overwrite the first connection with the second > > connection--is there a way to do this? > > cls._connection = connectionForURI(cls.live_connection_string) > >or > > cls.setConnection(cls.live_connection_string) &

Re: [SQLObject] Changing database connection programatically

2008-07-10 Thread Molly Aplet
My intention was to overwrite the first connection with the second connection--is there a way to do this? On Thu, Jul 10, 2008 at 12:08 PM, Oleg Broytmann <[EMAIL PROTECTED]> wrote: > On Thu, Jul 10, 2008 at 11:25:30AM -0700, Molly Aplet wrote: > > However, this method re

[SQLObject] Changing database connection programatically

2008-07-10 Thread Molly Aplet
Hi all, I'm trying to determine the best way to toggle between my test and live dbs, and I've hit a bit of a wall. I'm using MySQL 5.0.22 and SQLObject 0.7, and since I'm in a corporate environment, neither of those is likely to change any time soon. My setup is as follows: I've got two dbs, whi

Re: [SQLObject] Is SQLObject 0.7 still widely used?

2007-08-20 Thread Molly Aplet
:) Anyway, thanks! Molly On 8/20/07, Oleg Broytmann <[EMAIL PROTECTED]> wrote: > > On Mon, Aug 20, 2007 at 11:20:27AM -0700, Molly Aplet wrote: > > In response to this thread, I've assigned myself a bug this week to > migrate > > my group's apps, which curr

Re: [SQLObject] Is SQLObject 0.7 still widely used?

2007-08-20 Thread Molly Aplet
In response to this thread, I've assigned myself a bug this week to migrate my group's apps, which currently use 0.7, up to 0.9. I can't find a wiki entry on the Trac page covering how to do this--are there any resources for this transition? I know I'll have to change the behavior of all my Forei

Re: [SQLObject] RelatedJoins on the fly

2007-07-13 Thread Molly Aplet
Thanks, Oleg! I assumed that something like that existed, but I was looking in the RelatedJoin class--entirely the wrong place in this case. Molly On 7/12/07, Oleg Broytmann <[EMAIL PROTECTED]> wrote: On Thu, Jul 12, 2007 at 05:25:52PM -0700, Molly Aplet wrote: > Optimizer.sqlmet

[SQLObject] RelatedJoins on the fly

2007-07-12 Thread Molly Aplet
Hi, Is there a way to add RelatedJoins to tables on the fly, when the tables have already been created? I have two objects, Optimizer and OptimizerTeam, that I want to link with a RelatedJoin, without wiping out all the rows I currently have stored. I tried running the following in the hopes of

Re: [SQLObject] Trouble viewing an object

2007-05-24 Thread Molly Aplet
still fascinated that this didn't cause any problems when we add rows to the table, only when we try to read them. Molly On 5/22/07, Molly Aplet <[EMAIL PROTECTED]> wrote: I've got two classes (which I'm simplifying here for the sake of an easier demonstration). class Wo

[SQLObject] Trouble viewing an object

2007-05-22 Thread Molly Aplet
I've got two classes (which I'm simplifying here for the sake of an easier demonstration). class WorldTakeOver(sqlobject): Events = MultipleJoin('Event',joinColumn="OptimizationId") LastEventDate = DateTimeCol(default=None) CurrentStatus = UnicodeCol(default=None) Notes = UnicodeCol(default=N

[SQLObject] Problematic error message using pydoc

2007-01-16 Thread Molly Aplet
I'm attempting to use pydoc to document a class that inherits from SQLObject. Something in my code is depreciated, causing the error message I've included below. However, I'm having some trouble tracking down exactly what, since I'm not accessing any columns or cached values in the class in questi