2014-12-02 12:54:01 +01:00
|
|
|
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
|
|
|
|
# this repository contains the full copyright notices and license terms.
|
2009-02-03 18:58:25 +01:00
|
|
|
|
2013-09-06 22:32:37 +02:00
|
|
|
from .field import SQLType
|
|
|
|
|
from .char import Char
|
2009-02-03 18:58:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class Text(Char):
|
2009-03-01 13:37:31 +01:00
|
|
|
'''
|
2009-09-13 15:37:11 +02:00
|
|
|
Define a text field (``unicode``).
|
2009-03-01 13:37:31 +01:00
|
|
|
'''
|
2009-02-03 18:58:25 +01:00
|
|
|
_type = 'text'
|
2013-09-06 22:32:37 +02:00
|
|
|
|
|
|
|
|
def sql_type(self):
|
|
|
|
|
return SQLType('TEXT', 'TEXT')
|