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

Method __call__

web/form.py:49–53  ·  view source on GitHub ↗
(self, x=None)

Source from the content-addressed store, hash-verified

47 self.validators = kw.pop("validators", [])
48
49 def __call__(self, x=None):
50 o = copy.deepcopy(self)
51 if x:
52 o.validates(x)
53 return o
54
55 def render(self):
56 out = ""

Callers

nothing calls this directly

Calls 1

validatesMethod · 0.80

Tested by

no test coverage detected