> BookMark(**kw)
> flash("${modelname} was successfully created.")
> raise redirect("list")
>
> how can I get the BookMark id that was just created and redirect to it
> instead of the list?
>
> record = BookMark.get(int(id))
>
> Is the int(id) really necessary?
try this:
aNewBookmark = BookMark(**kw)
flash("${modelname} was successfully created.")
raise redirect("edit/" + aNewBookmark.id)
i think this should work.
Regards, Frank
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---