No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

char.py 438B

1234567891011121314151617
  1. #-*- coding: utf-8 -*-
  2. from .generic import GenericFieldType
  3. class EmFieldType(GenericFieldType):
  4. help = 'Basic string (varchar) field. Take max_length=64 as option'
  5. ftype = 'char'
  6. ## @brief A char field
  7. # @brief max_length int : The maximum length of this field
  8. def __init__(self, max_length=64, **kwargs):
  9. self.max_length = max_length
  10. super(EmFieldType, self).__init__(ftype='char', **kwargs)