On 10/2/07, vrs762 <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have the following in my controller:
>
> from model import Person
>
>
> e = Person.selectBy(name=inputname)
> e.address = newaddress
>
> but the new address is not reflected in my postgresql db.

Which version of TG are you using right now ? This may be because you
are using the beta version.

[...]

> However, how do I first instantiate the session object?
>
> Any help would be appreciated!

Anyway the session object can be retrieved from:

from turbogears.database import session

Cheers,
Florent.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to