Try returning something rather than redirecting.   And try something like

    @expose()
    def save(self, pagename, data, submit):
        page = DBSession.query(Page).filter_by(pagename=pagename).one()
        page.data = data
        redirect("/" + pagename)

On Tue, Sep 23, 2008 at 8:47 PM, Fred C <[EMAIL PROTECTED]> wrote:
>
>
> On Sep 23, 2008, at 5:44 PM, Mark Ramm wrote:
>
>>
>>> Ok guys, you gonna have to tell me what to put after user =
>>> User(...),
>>> or send me a pointer to a working example, because everything I have
>>> tried either fail or does not save the data. I have googled for
>>> example and they all talk about either flush or commit, and both of
>>> them crash. I am using TG2 1.6.7a4.
>>
>> I assume you mean 1.9.7a4.
>
> Yes, sorry...
>
>> What error are you getting when you flush?
>
> no errors it just crashes...
>
> >
>



-- 
Mark Ramm-Christensen
email: mark at compoundthinking dot com
blog: www.compoundthinking.com/blog

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