暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718
  1. # -*- coding: utf-8 -*-
  2. from .integer import DataHandler as IntegerDataHandler
  3. class DataHandler(IntegerDataHandler):
  4. help = 'Fieldtype designed to handle editorial model UID'
  5. base_type = 'int'
  6. ## @brief A uid field
  7. # @param **kwargs
  8. def __init__(self, is_id_class, **kwargs):
  9. self._is_id_class = is_id_class
  10. kwargs['internal'] = 'automatic'
  11. super(self.__class__, self).__init__(is_id_class=is_id_class, **kwargs)
  12. def _check_data_value(self, value):
  13. return value, None