Home
last modified time | relevance | path

Searched refs:maintype (Results 1 – 25 of 26) sorted by relevance

12

/external/python/cpython3/Lib/email/
Dcontentmanager.py20 maintype = msg.get_content_maintype()
21 if maintype in self.get_handlers:
22 return self.get_handlers[maintype](msg, *args, **kw)
73 for maintype in 'audio image video application'.split():
74 raw_data_manager.add_get_handler(maintype, get_non_text_content)
95 def _prepare_set(msg, maintype, subtype, headers): argument
96 msg['Content-Type'] = '/'.join((maintype, subtype))
228 def set_bytes_content(msg, data, maintype, subtype, cte='base64', argument
231 _prepare_set(msg, maintype, subtype, headers)
Diterators.py45 def typed_subpart_iterator(msg, maintype='text', subtype=None): argument
53 if subpart.get_content_maintype() == maintype:
Dmessage.py980 maintype, subtype = part.get_content_type().split('/')
981 if maintype == 'text':
985 if maintype != 'multipart':
1041 maintype, subtype = self.get_content_type().split('/')
1042 if maintype != 'multipart' or subtype == 'alternative':
1045 if maintype == 'multipart' and subtype == 'related':
1069 maintype, subtype = part.get_content_type().split('/')
1070 if ((maintype, subtype) in self._body_types and
Dgenerator.py483 maintype = part.get_content_maintype()
484 if maintype == 'text':
486 elif maintype == 'multipart':
Dheaderregistry.py472 self._maintype = utils._sanitize(self._parse_tree.maintype)
476 def maintype(self): member in ContentTypeHeader
485 return self.maintype + '/' + self.subtype
D_header_value_parser.py815 maintype = 'text' variable in ContentType
2477 ctype.maintype = token.value.strip().lower()
2498 del ctype.maintype, ctype.subtype
/external/python/cpython2/Doc/includes/
Demail-dir.py77 maintype, subtype = ctype.split('/', 1)
78 if maintype == 'text':
83 elif maintype == 'image':
87 elif maintype == 'audio':
93 msg = MIMEBase(maintype, subtype)
/external/python/cpython3/Doc/includes/
Demail-dir.py61 maintype, subtype = ctype.split('/', 1)
64 maintype=maintype,
Demail-mime.py24 msg.add_attachment(img_data, maintype='image',
Demail-read-alternative.py39 if richest['content-type'].maintype == 'text':
/external/python/cpython2/Lib/email/
Diterators.py47 def typed_subpart_iterator(msg, maintype='text', subtype=None): argument
55 if subpart.get_content_maintype() == maintype:
Dgenerator.py332 maintype = part.get_content_maintype()
333 if maintype == 'text':
335 elif maintype == 'multipart':
/external/python/cpython3/Doc/library/
Demail.contentmanager.rst35 * the string representing the full MIME type (``maintype/subtype``)
36 * the string representing the ``maintype``
45 If the ``maintype`` is ``multipart``, raise a :exc:`TypeError`; otherwise
123 set_content(msg, <'bytes'>, maintype, subtype, cte="base64", \
132 Add a :mailheader:`Content-Type` header with a ``maintype/subtype``
135 * For ``str``, set the MIME ``maintype`` to ``text``, and set the
137 * For ``bytes``, use the specified *maintype* and *subtype*, or
139 * For :class:`~email.message.EmailMessage` objects, set the maintype
Demail.iterators.rst30 .. function:: typed_subpart_iterator(msg, maintype='text', subtype=None)
33 match the MIME type specified by *maintype* and *subtype*.
36 done only with the main type. *maintype* is optional too; it defaults to
Demail.headerregistry.rst280 The content type string, in the form ``maintype/subtype``.
282 .. attribute:: maintype
Demail.compat32-message.rst431 lower case of the form :mimetype:`maintype/subtype`. If there was no
446 Return the message's main content type. This is the :mimetype:`maintype`
567 header. *type* must be a string in the form :mimetype:`maintype/subtype`,
Demail.generator.rst252 * ``maintype`` -- Main MIME type of the non-\ :mimetype:`text` part
/external/python/cpython2/Doc/library/
Demail.iterators.rst27 .. function:: typed_subpart_iterator(msg[, maintype[, subtype]])
30 match the MIME type specified by *maintype* and *subtype*.
33 done only with the main type. *maintype* is optional too; it defaults to
Demail.generator.rst109 * ``maintype`` -- Main MIME type of the non-\ :mimetype:`text` part
Demail.message.rst320 lower case of the form :mimetype:`maintype/subtype`. If there was no
337 Return the message's main content type. This is the :mimetype:`maintype`
459 header. *type* must be a string in the form :mimetype:`maintype/subtype`,
/external/clang/tools/scan-view/share/
DReporter.py92 maintype, subtype = ctype.split('/', 1)
93 if maintype == 'text':
100 msg = MIMEBase(maintype, subtype)
/external/python/cpython2/Lib/
Dmimetools.py47 self.maintype = fields[0]
96 return self.maintype
/external/python/cpython3/Lib/test/test_email/
Dtest_contentmanager.py236 for maintype in 'audio image video application'.split():
237 with self.subTest(maintype=maintype):
238 m = self._str_msg(template.format(maintype+'/foo'))
Dtest_headerregistry.py224 maintype, argument
235 self.assertEqual(h.maintype, maintype)
/external/cldr/tools/java/org/unicode/cldr/util/
DSupplementalDataInfo.java1593 String maintype = parts.getAttributeValue(2, "type");
1594 if (maintype == null) {
1595 maintype = "windows";
1601 … Map<String, Map<String, String>> zoneToRegionToZone = typeToZoneToRegionToZone.get(maintype);
1603 typeToZoneToRegionToZone.put(maintype,
1613 if (maintype.equals("metazones")) {

12