def validate_filemask(val):
 if ('*' not in val):
  raise ValidationError(_('File mask does not contain * as a language placeholder!'))

def validate_filemask ( val ) : if ( '*' not in val ) : raise ValidationError ( _ ( 'File mask does not contain * as a language placeholder!' ) )
validates file mask that it contains * .