def record_parse (self, key, value): if key in ('id', 'doctype'): return key = Coding.encode(key) self._mapping[self.db.schema[key].type](key, self.record [key]) return
def _escape (self, text): if not text: return '' return Coding.encode(text)