MCPcopy Index your code
hub / github.com/clips/pattern / pushContent

Method pushContent

pattern/web/feed/feedparser.py:1017–1026  ·  view source on GitHub ↗
(self, tag, attrsD, defaultContentType, expectingText)

Source from the content-addressed store, hash-verified

1015 return output
1016
1017 def pushContent(self, tag, attrsD, defaultContentType, expectingText):
1018 self.incontent += 1
1019 if self.lang:
1020 self.lang=self.lang.replace('_','-')
1021 self.contentparams = FeedParserDict({
1022 'type': self.mapContentType(attrsD.get('type', defaultContentType)),
1023 'language': self.lang,
1024 'base': self.baseuri})
1025 self.contentparams['base64'] = self._isBase64(attrsD, self.contentparams)
1026 self.push(tag, expectingText)
1027
1028 def popContent(self, tag):
1029 value = self.pop(tag)

Callers 10

_start_subtitleMethod · 0.95
_start_rightsMethod · 0.95
_start_titleMethod · 0.95
_start_descriptionMethod · 0.95
_start_abstractMethod · 0.95
_start_infoMethod · 0.95
_start_summaryMethod · 0.95
_start_contentMethod · 0.95
_start_bodyMethod · 0.95

Calls 5

mapContentTypeMethod · 0.95
_isBase64Method · 0.95
pushMethod · 0.95
FeedParserDictClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected