plain 0.44.0__py3-none-any.whl → 0.45.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- plain/cli/scaffold.py +2 -0
- plain/forms/fields.py +3 -0
- {plain-0.44.0.dist-info → plain-0.45.0.dist-info}/METADATA +1 -1
- {plain-0.44.0.dist-info → plain-0.45.0.dist-info}/RECORD +7 -7
- {plain-0.44.0.dist-info → plain-0.45.0.dist-info}/WHEEL +0 -0
- {plain-0.44.0.dist-info → plain-0.45.0.dist-info}/entry_points.txt +0 -0
- {plain-0.44.0.dist-info → plain-0.45.0.dist-info}/licenses/LICENSE +0 -0
plain/cli/scaffold.py
CHANGED
plain/forms/fields.py
CHANGED
@@ -4,6 +4,7 @@ Field classes.
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import datetime
|
7
|
+
import enum
|
7
8
|
import json
|
8
9
|
import math
|
9
10
|
import re
|
@@ -773,6 +774,8 @@ class ChoiceField(Field):
|
|
773
774
|
super().__init__(**kwargs)
|
774
775
|
if hasattr(choices, "choices"):
|
775
776
|
choices = choices.choices
|
777
|
+
elif isinstance(choices, enum.EnumMeta):
|
778
|
+
choices = [(member.value, member.name) for member in choices]
|
776
779
|
self.choices = choices
|
777
780
|
|
778
781
|
def __deepcopy__(self, memo):
|
@@ -27,7 +27,7 @@ plain/cli/formatting.py,sha256=1hZH13y1qwHcU2K2_Na388nw9uvoeQH8LrWL-O9h8Yc,2207
|
|
27
27
|
plain/cli/preflight.py,sha256=NKyYjcoDjigzfJIDhf7A7degYadaUI05Bw7U9OQ73vs,4170
|
28
28
|
plain/cli/print.py,sha256=XraUYrgODOJquIiEv78wSCYGRBplHXtXSS9QtFG5hqY,217
|
29
29
|
plain/cli/registry.py,sha256=yKVMSDjW8g10nlV9sPXFGJQmhC_U-k4J4kM7N2OQVLA,1467
|
30
|
-
plain/cli/scaffold.py,sha256=
|
30
|
+
plain/cli/scaffold.py,sha256=mcywA9DzfwoBSqWl5-Zpgcy1mTNUGEgdvoxXUrGcEVk,1351
|
31
31
|
plain/cli/settings.py,sha256=9cx4bue664I2P7kUedlf4YhCPB0tSKSE4Q8mGyzEv2o,1995
|
32
32
|
plain/cli/shell.py,sha256=iIwvlTdTBjLBBUdXMAmIRWSoynszOZI79-mrBg4RegU,1373
|
33
33
|
plain/cli/startup.py,sha256=wLaFuyUb4ewWhtehBCGicrRCXIIGCRbeCT3ce9hUv-A,1022
|
@@ -40,7 +40,7 @@ plain/forms/README.md,sha256=TawBdy1jP0-8HUsfUzd7vvgkwl3EJGejDxFhWR8F-80,2242
|
|
40
40
|
plain/forms/__init__.py,sha256=UxqPwB8CiYPCQdHmUc59jadqaXqDmXBH8y4bt9vTPms,226
|
41
41
|
plain/forms/boundfield.py,sha256=LhydhCVR0okrli0-QBMjGjAJ8-06gTCXVEaBZhBouQk,1741
|
42
42
|
plain/forms/exceptions.py,sha256=NYk1wjYDkk-lA_XMJQDItOebQcL_m_r2eNRc2mkLQkg,315
|
43
|
-
plain/forms/fields.py,sha256=
|
43
|
+
plain/forms/fields.py,sha256=OyL4eZIgJ_XMLPHGar17hLepFmwHV-hSnb_n7s18yUU,34709
|
44
44
|
plain/forms/forms.py,sha256=hF7Dl8rEaiBTZhFQyfbh1Zf54BSEka8RYpBiGqkTa8I,10441
|
45
45
|
plain/http/README.md,sha256=F9wbahgSU3jIDEG14gJjdPJRem4weUNvwnwhb7o3cu0,722
|
46
46
|
plain/http/__init__.py,sha256=DIsDRbBsCGa4qZgq-fUuQS0kkxfbTU_3KpIM9VvH04w,1067
|
@@ -146,8 +146,8 @@ plain/views/forms.py,sha256=ESZOXuo6IeYixp1RZvPb94KplkowRiwO2eGJCM6zJI0,2400
|
|
146
146
|
plain/views/objects.py,sha256=GGbcfg_9fPZ-PiaBwIHG2e__8GfWDR7JQtQ15wTyiHg,5970
|
147
147
|
plain/views/redirect.py,sha256=daq2cQIkdDF78bt43sjuZxRAyJm_t_SKw6tyPmiXPIc,1985
|
148
148
|
plain/views/templates.py,sha256=SU1fO9gVMp-gEQHYeFplxvmgeMyrLgT8MJ12WNVmQC8,2085
|
149
|
-
plain-0.
|
150
|
-
plain-0.
|
151
|
-
plain-0.
|
152
|
-
plain-0.
|
153
|
-
plain-0.
|
149
|
+
plain-0.45.0.dist-info/METADATA,sha256=U_Me_Y2Ao9CeDXzHQBLgZkC9RN9w_B80hHs7OGxwJFQ,4297
|
150
|
+
plain-0.45.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
151
|
+
plain-0.45.0.dist-info/entry_points.txt,sha256=1Ys2lsSeMepD1vz8RSrJopna0RQfUd951vYvCRsvl6A,45
|
152
|
+
plain-0.45.0.dist-info/licenses/LICENSE,sha256=m0D5O7QoH9l5Vz_rrX_9r-C8d9UNr_ciK6Qwac7o6yo,3175
|
153
|
+
plain-0.45.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|