def plugin_validate(plugin, context, data_dict, schema, action):
 if hasattr(plugin, 'validate'):
  result = plugin.validate(context, data_dict, schema, action)
  if (result is not None):
   return result
 return toolkit.navl_validate(data_dict, schema, context)

def plugin_validate ( plugin , context , data_dict , schema , action ) : if hasattr ( plugin , 'validate' ) : result = plugin . validate ( context , data_dict , schema , action ) if ( result is not None ) : return result return toolkit . navl_validate ( data_dict , schema , context )
backwards compatibility with 2 .