Lines Matching refs:failobj
356 def get(self, name, failobj=None):
359 Like __getitem__() but return failobj instead of None when the field
366 return failobj
372 def get_all(self, name, failobj=None):
379 If no such fields exist, failobj is returned (defaults to None).
387 return failobj
494 def _get_params_preserve(self, failobj, header):
500 return failobj
515 def get_params(self, failobj=None, header='content-type', unquote=True):
524 Optional failobj is the object to return if there is no Content-Type
531 return failobj
537 def get_param(self, param, failobj=None, header='content-type',
541 Optional failobj is the object to return if there is no Content-Type
564 return failobj
565 for k, v in self._get_params_preserve(failobj, header):
571 return failobj
675 def get_filename(self, failobj=None):
688 return failobj
691 def get_boundary(self, failobj=None):
700 return failobj
749 def get_content_charset(self, failobj=None):
754 failobj is returned.
759 return failobj
776 return failobj
780 def get_charsets(self, failobj=None):
789 'failobj' parameter (defaults to None), if the part does not have a
796 return [part.get_content_charset(failobj) for part in self.walk()]