Changeset 31adfa5 in OpenWorkouts-current for ow/schemas
- Timestamp:
- Dec 21, 2018, 11:00:25 AM (5 years ago)
- Branches:
- current, feature/docs, master
- Children:
- fe6089a
- Parents:
- d507f75
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ow/schemas/user.py
rd507f75 r31adfa5 1 1 from pyramid.i18n import TranslationStringFactory 2 2 from formencode import Schema, validators 3 from pytz import common_timezones 3 4 4 5 from ow.schemas.blob import FieldStorageBlob … … 74 75 picture = FieldStorageBlob(if_emtpy=None, if_missing=None, 75 76 whitelist=['jpg', 'jpeg', 'png', 'gif']) 77 timezone = validators.OneOf(common_timezones, if_missing='UTC') 76 78 77 79
Note: See TracChangeset
for help on using the changeset viewer.