it took me forever tracing, but i figured it out.

chained validators need to work on the entire value set

so this was all removed

>     def _to_python(self, field_dict, state):
>         if not hasattr( self , 'guess_field' ):
>             raise Invalid( 'General Error' , field_dict , state )
>         return field_dict[self.guess_field].strip()


and then we have

>     def validate_python(self, value , state):
            if not hasattr( self , 'guess_field' ):
                   raise Invalid( 'General Error' , value , state )
>         errors = {}
>         cherrypy.session.acquire_lock()
          requires = ( 'seed' , 'key' )
>         for item in requires:
>             if not hasattr( self , item ):
>                 errors[self.guess_field] =
> self.message('invalidMissingAttribute', state)
           guess = value[self.guess_field].strip()


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