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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.