Example #1
0
    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
Example #2
0
 def _escape (self, text):
     if not text:
         return ''
     return Coding.encode(text)