When hub.begin(), hub.commit() & hub.end() needed?

1 view
Skip to first unread message

sebe...@spawar.navy.mil

unread,
Apr 10, 2008, 12:21:51 PM4/10/08
to TurboGears
If I'm not mistaken, you only need to explicitly use hub.begin(),
hub.commit()
and hub.end() when you are creating *new* model objects right?

If you are just *modifying* an existing object, you don't need to
explicitly
mess with these hub methods?

Chris

Jorge Vargas

unread,
Apr 11, 2008, 3:18:14 AM4/11/08
to turbo...@googlegroups.com
if I recall correctly this is no longer needed in newer versions of
TG, that was used in pre 1.0 code, very old stuff.

I'm not entirely sure what you mean buy "creating new objects" but in
general you should be using those transactions ops unless you have an
explicit need.

> Chris
> >
>

Reply all
Reply to author
Forward
0 new messages