(self, attrsD, contentparams)
| 1065 | return attrsD.get(self._mapToStandardPrefix(name)) |
| 1066 | |
| 1067 | def _isBase64(self, attrsD, contentparams): |
| 1068 | if attrsD.get('mode', '') == 'base64': |
| 1069 | return 1 |
| 1070 | if self.contentparams['type'].startswith(u'text/'): |
| 1071 | return 0 |
| 1072 | if self.contentparams['type'].endswith(u'+xml'): |
| 1073 | return 0 |
| 1074 | if self.contentparams['type'].endswith(u'/xml'): |
| 1075 | return 0 |
| 1076 | return 1 |
| 1077 | |
| 1078 | def _itsAnHrefDamnIt(self, attrsD): |
| 1079 | href = attrsD.get('url', attrsD.get('uri', attrsD.get('href', None))) |