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.

file.py 428B

1234567891011121314151617
  1. #-*- coding: utf-8 -*-
  2. from EditorialModel.fields import EmField
  3. class EmFieldFile(EmField):
  4. ftype = 'file'
  5. help = 'A file field. With one options upload_path'
  6. ## @brief A char field
  7. # @brief max_length int : The maximum length of this field
  8. def __init__(self, upload_path=None, **kwargs):
  9. self.upload_path = upload_path
  10. super(EmFieldFile, self).__init__(**kwargs)
  11. fclass = EmFieldFile