Um. Pickle?

Yannick wrote:
> Hello,
> 
> I do not know if this is yet implemented in TurboGears, or how easily
> it would be to implement.
> What I would like is to receive the objects I am sending to the HTML
> form, back when the form is submitted.
> i.e. in below exemple I would send a myobject object; and use its bar
> property in a kid template (let's say a form input). When the user
> submits; the save method would be called with the myobject object as a
> parameter (and not the bar property).
> 
>     turbogears.expose("mytemplate")
>     def index(self):
>         myobject = Foo(bar=1)
>         return dict(publish_object=myobject)
> 
>     turbogears.expose("mytemplate2")
>     def save(self, publish_object):
>         print "value is: %d" % publish_object.bar
>         return dict()
> 
> I think that this would really help when objects have a lot of
> properties.
> 
> Any thoughts, comments (or working implementations ;-) ) ?
> 
> Thanks,
> Yannick
> 
> 
> > 

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

Reply via email to