On Tue, Sep 30, 2008 at 7:55 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hello, I've been trudging through various tutorials and documentation > trying to get TG 1.1b1 working.
maybe you will want to try the 1.0 branch as it's well documented 1.1 had a lot of changes and it isn't really ready for first timers. > None of them really give me all the > answers I need. The SA documentation either gives the declarative > style (0.5) docs, or the non-declarative style(0.4) docs. Since the > 0.5 docs don't show how to use relations in the old style, umm interesting. for what is worth they are identical except that in declarative you don't use the first argument (Class Name) that you will use in "classical". > I've had to > learn from the 0.4 docs. The problem is, the SA 0.4 docs constantly > refer to various session manipulations (session.query in particular); > but none of the turbogears docs I've come accross mention anything > about using session objects/methods. Did you saw this page? http://docs.turbogears.org/1.0/SQLAlchemy Basically TG controllers wrap everything in a transaction which means you don't normally have to call anything session related. > All I know is that when using > the tg-admin shell, session changes are automatically queued up and > committed when the shell is exited. or when executing > session.comitt(). This is an undesirable, feature by the way, since I > can't specify which new object instances to save and which to throw > away; or at least I don't know how to do so. > No this isn't undesirable, that is why it is a session, you may be confusing the term with an http session, while it is actually a db session. http://www.sqlalchemy.org/docs/04/session.html#unitofwork_what if you want to get rid of some object you created (maybe by mistake) you could run del obj in that python shell and it will be discarded. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

