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.

uid.py 530B

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