def conv_in_unicode(self, text): if text[0] is not None: return typeconv_textunicode.unicode_conv_in((utils_encoding.smart_unicode(text[0]), self.FB_CHARSET_CODE))
def in_blob(self, text): return typeconv_tu.unicode_conv_in((smart_unicode(text), self.db_charset_code))
def conv_in_blob(self, text): return typeconv_textunicode.unicode_conv_in((utils_encoding.smart_unicode(text), self.FB_CHARSET_CODE))
value = value[:24] return typeconv_dt.timestamp_conv_in(value) def in_fixed(self, (value, scale)): if value is not None: if isinstance(value, basestring): value = Decimal(value) return typeconv_fd.fixed_conv_in_precise((value, scale)) def in_text(self, text): if text is not None: return smart_str(text, encoding=self.charset) def in_unicode(self, (text, charset)): if text is not None: return typeconv_tu.unicode_conv_in((smart_unicode(text), self.db_charset_code)) def in_blob(self, text): return typeconv_tu.unicode_conv_in((smart_unicode(text), self.db_charset_code)) def out_text(self, text): if text is not None: return smart_unicode(text, encoding=self.charset) return text def out_unicode(self, (text, charset)): return typeconv_tu.unicode_conv_out((text, self.db_charset_code)) def out_blob(self, text): return typeconv_tu.unicode_conv_out((text, self.db_charset_code))