chris | 6 May 20:52

better way to manually commit changes to database....?

In my TurboGears/SQLObject app, I manually commit changes to the database
with a line like the following...

MyObject._connection.commit()

It works but looks ugly since _connection is "private variable" that should not
be accessed right?

Chris

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
Jorge Vargas | 6 May 22:57
Picon

Re: better way to manually commit changes to database....?

On Tue, May 6, 2008 at 2:53 PM,  <chris <at> seberino.org> wrote:
> In my TurboGears/SQLObject app, I manually commit changes to the database
>  with a line like the following...
>
please don't use misleading statements. the only reason you are using
it this way is because you are running the changes from a scheduled
task.

>  MyObject._connection.commit()
>
>  It works but looks ugly since _connection is "private variable" that should not
>  be accessed right?
>
please suggest another way.

>  Chris
>
>  -------------------------------------------------------------------------
>  This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>  Don't miss this year's exciting event. There's still time to save $100.
>  Use priority code J8TL2D2.
>  http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>  _______________________________________________
>  sqlobject-discuss mailing list
>  sqlobject-discuss <at> lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss
>

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
(Continue reading)

chris | 6 May 23:38

Re: better way to manually commit changes to database....?


On Tue, May 06, 2008 at 04:57:50PM -0400, Jorge Vargas wrote:
> On Tue, May 6, 2008 at 2:53 PM,  <chris <at> seberino.org> wrote:
> > In my TurboGears/SQLObject app, I manually commit changes to the database
> >  with a line like the following...
> >
> please don't use misleading statements. the only reason you are using
> it this way is because you are running the changes from a scheduled
> task.

Sorry. I'm a web newbie and am often not sure of correct words for these
things.

>
> >  MyObject._connection.commit()
> >
> >  It works but looks ugly since _connection is "private variable" that
>should not
> >  be accessed right?
> >
> please suggest another way.

I think I'll keep this way.  I was just trying one last email to see if there
was another way.  That's all.

Thanks for the help as always.

Chris

-------------------------------------------------------------------------
(Continue reading)


Gmane