this might be too off for you, but my suggestion is to use 3 functions:
a dispatch and 2 validators ( i think this is what alberto suggested in
the tail of his response)
@expose
def saveElement(type)
if type=='a':
return dict( self.validate_element_a() )
elif type=='b':
return dict( self.validate_element_b() )
@validate(form=a)
def validate_element_a(self):
@validate(form=b)
def validate_element_b(self)
i'm not sure how, but i know you can set things up so that the
validate_ functions only handle the form validation and will redirect
to a form or go back to your save function.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---