Files
tryton/trytond/model/fields/integer.py
T

21 lines
450 B
Python
Raw Normal View History

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.
from .field import Field
2009-02-03 18:58:25 +01:00
class Integer(Field):
2009-03-01 13:37:31 +01:00
'''
2009-09-13 15:37:11 +02:00
Define an integer field (``int``).
2009-03-01 13:37:31 +01:00
'''
2009-02-03 18:58:25 +01:00
_type = 'integer'
_sql_type = 'INTEGER'
2019-06-26 21:56:16 +02:00
_py_type = int
2018-02-02 00:04:19 +01:00
2009-02-03 18:58:25 +01:00
class BigInteger(Integer):
2009-03-01 13:37:31 +01:00
'''
2009-09-13 15:37:11 +02:00
Define an integer field (``long``).
2009-03-01 13:37:31 +01:00
'''
2009-02-03 18:58:25 +01:00
_type = 'biginteger'
_sql_type = 'BIGINT'