Hi,

I want to use one controller method( "save")  for both creating and
updating a record. I have two methods for displaying a form: "add" and
"edit". The problem is that the form for adding and editing are
slightly different (different validator in this case) . I can
instantiate two forms, but I can pass only one instance to @validate
decorator of "save" method.
Are separate methods for creating and updating record the only way out?


Appreciate any hints!

Thanks
Ksenia

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