Example 1 :

addForm = w.TableForm(
               fields  = [  <list of fields with each validator> ],
               validator = MySchemaValidator()
               )

@tg.validate( form=addForm )
@tg.error_handler( add )
def add_fase2(self, tg_errors=None, pk=None, **data):
     pass



In this case validate decorator bypass the form=addForm.






Example 2 :


addForm = w.TableForm(
               fields  = [  <list of fields with each validator> ],
     
               )

@tg.validate( form=addForm, validators = MySchemaValidator() )
@tg.error_handler( add )
def add_fase2(self, tg_errors=None, pk=None, **data):
     pass



In this case validate decorator don't pass anything to MySchemaValidator.





Is correct an Hibrid use of this type?
@tg.validate( form=addForm, validators = MySchemaValidator() )






Glauco

-- 
+------------------------------------------------------------+
 Glauco Uri  
 glauco(at)sferacarta.com 
                               
          Sfera Carta Software®       info(at)sferacarta.com
  Via Bazzanese,69  Casalecchio di Reno(BO) - Tel. 051591054
+------------------------------------------------------------+



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

Reply via email to