emmett-framework / emmett

The web framework for inventors
Other
1.03k stars 70 forks source link

Custom model field #322

Closed bronte2k7 closed 2 years ago

bronte2k7 commented 3 years ago

Hi @gi0baro

Need information with examples)))

gi0baro commented 3 years ago

@bronte2k7 can you explain this a bit more? There are no facilities in place at the moment to add new Field types, but you can subclass orm.objects.Field and write your own logics/features in combination with dialects/adapters.

bronte2k7 commented 3 years ago

I want to save a file using pyfilesystem2. pydal uses the uploadfs parameter for this. To do this, I want to create their own field

P.S. Sorry for my bad english

gi0baro commented 3 years ago

@bronte2k7 in case you wrote a custom Field class in pyDAL, the code should be compatible with Emmett, just inherit from emmett.orm.objects.Field instead of pydal.objects.Field

gi0baro commented 2 years ago

I'm closing this for inactivity