MCPcopy
hub / github.com/iBaa/PlexConnect / ATTRIB_VAL

Method ATTRIB_VAL

XMLConverter.py:999–1004  ·  view source on GitHub ↗
(self, src, srcXML, param)

Source from the content-addressed store, hash-verified

997 # XML ATTRIB modifier commands
998 # add new commands to this list!
999 def ATTRIB_VAL(self, src, srcXML, param):
1000 key, leftover, dfltd = self.getKey(src, srcXML, param)
1001 conv, leftover = self.getConversion(src, leftover)
1002 if not dfltd:
1003 key = self.applyConversion(key, conv)
1004 return key
1005
1006 def ATTRIB_EVAL(self, src, srcXML, param):
1007 return str(eval(param))

Callers

nothing calls this directly

Calls 3

getKeyMethod · 0.80
getConversionMethod · 0.80
applyConversionMethod · 0.80

Tested by

no test coverage detected