hooks/syncschema.py
changeset 7460 2455cdbeadca
parent 7398 26695dd703d8
child 7514 32081892850e
equal deleted inserted replaced
7459:e4399a37674e 7460:2455cdbeadca
    40 
    40 
    41 
    41 
    42 TYPE_CONVERTER = { # XXX
    42 TYPE_CONVERTER = { # XXX
    43     'Boolean': bool,
    43     'Boolean': bool,
    44     'Int': int,
    44     'Int': int,
       
    45     'BigInt': int,
    45     'Float': float,
    46     'Float': float,
    46     'Password': str,
    47     'Password': str,
    47     'String': unicode,
    48     'String': unicode,
    48     'Date' : unicode,
    49     'Date' : unicode,
    49     'Datetime' : unicode,
    50     'Datetime' : unicode,
    50     'Time' : unicode,
    51     'Time' : unicode,
       
    52     'TZDatetime' : unicode,
       
    53     'TZTime' : unicode,
    51     }
    54     }
    52 
    55 
    53 # core entity and relation types which can't be removed
    56 # core entity and relation types which can't be removed
    54 CORE_TYPES = BASE_TYPES | SCHEMA_TYPES | META_RTYPES | set(
    57 CORE_TYPES = BASE_TYPES | SCHEMA_TYPES | META_RTYPES | set(
    55     ('CWUser', 'CWGroup','login', 'upassword', 'name', 'in_group'))
    58     ('CWUser', 'CWGroup','login', 'upassword', 'name', 'in_group'))