(self, doc)
| 1979 | return key_list |
| 1980 | |
| 1981 | def _get_scalar(self, doc): |
| 1982 | def lookup(obj, name): |
| 1983 | chunks = name.split("__") |
| 1984 | for chunk in chunks: |
| 1985 | obj = getattr(obj, chunk) |
| 1986 | return obj |
| 1987 | |
| 1988 | data = [lookup(doc, n) for n in self._scalar] |
| 1989 | if len(data) == 1: |
| 1990 | return data[0] |
| 1991 | |
| 1992 | return tuple(data) |
| 1993 | |
| 1994 | def _sub_js_fields(self, code): |
| 1995 | """When fields are specified with [~fieldname] syntax, where |
no outgoing calls
no test coverage detected