MCPcopy Create free account
hub / github.com/webpy/webpy / fail_attribute

Method fail_attribute

web/template.py:1408–1414  ·  view source on GitHub ↗
(self, node, attrname)

Source from the content-addressed store, hash-verified

1406 self.errors.append(e)
1407
1408 def fail_attribute(self, node, attrname):
1409 lineno = self.get_node_lineno(node)
1410 e = SecurityError(
1411 "%s:%d - access to attribute '%s' is denied"
1412 % (self.filename, lineno, attrname)
1413 )
1414 self.errors.append(e)
1415
1416 def fail_name(self, node):
1417 lineno = self.get_node_lineno(node)

Callers 2

visit_AttributeMethod · 0.95
check_assign_targetMethod · 0.95

Calls 3

get_node_linenoMethod · 0.95
SecurityErrorClass · 0.85
appendMethod · 0.80

Tested by

no test coverage detected