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 507B

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