Hey,
Thanks! That worked.
-A
On Apr 6, 9:52 pm, "Ian Wilson" <[EMAIL PROTECTED]> wrote:
> I'm not sure quite how you have your stuff setup but the tg_flash
> variable needs to be displayed in your template somewhere. There
> should be either something in master.kid or yourtemplate.kid that does
> something like this:
>
> <div py:content="tg_flash"/>
>
> -Ian
>
> On 4/6/07, amortya <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi all,
> > I'm kinda new to turbogears. Need soem help with this.
>
> > This bit of code works fine except for the last part where the flash
> > method doesnt display the text. Am I missing something?
>
> > @expose()
> > def save(self, songid, title, artist, album, year, genre, rating,
> > length_hour, length_min, length_sec):
> > song=Song.get(songid)
> > song.title=title
> > song.artist=artist
> > song.album=album
> > song.year=year
> > song.genre=genre
> > song.rating=rating
> > song.length_hour=length_hour
> > song.length_min=length_min
> > song.length_sec=length_sec
> > turbogears.flash("Song was updated successfully")
> > redirect("/show?songid="+songid)
>
> > I cant seem to figure out the problem.
> > Thanks.
> > -A
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---