MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / getText

Method getText

suds/sax/element.py:251–262  ·  view source on GitHub ↗

Get the element's L{Text} content with optional default @param default: A value to be returned when no text content exists. @type default: basestring @return: The text content, or I{default} @rtype: L{Text}

(self, default=None)

Source from the content-addressed store, hash-verified

249 return self
250
251 def getText(self, default=None):
252 """
253 Get the element's L{Text} content with optional default
254 @param default: A value to be returned when no text content exists.
255 @type default: basestring
256 @return: The text content, or I{default}
257 @rtype: L{Text}
258 """
259 if self.hasText():
260 return self.text
261 else:
262 return default
263
264 def trim(self):
265 """

Callers 4

autoMethod · 0.80
replace_referencesMethod · 0.80
postprocessMethod · 0.80
append_textMethod · 0.80

Calls 1

hasTextMethod · 0.95

Tested by

no test coverage detected