accrete 0.0.76__py3-none-any.whl → 0.0.77__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.
- accrete/contrib/ui/context.py +5 -5
- accrete/contrib/ui/elements.py +1 -0
- {accrete-0.0.76.dist-info → accrete-0.0.77.dist-info}/METADATA +1 -1
- {accrete-0.0.76.dist-info → accrete-0.0.77.dist-info}/RECORD +6 -6
- {accrete-0.0.76.dist-info → accrete-0.0.77.dist-info}/WHEEL +0 -0
- {accrete-0.0.76.dist-info → accrete-0.0.77.dist-info}/licenses/LICENSE +0 -0
accrete/contrib/ui/context.py
CHANGED
@@ -31,12 +31,12 @@ class DetailPagination(TypedDict):
|
|
31
31
|
|
32
32
|
|
33
33
|
@dataclass(kw_only=True)
|
34
|
-
class
|
34
|
+
class BaseContext:
|
35
35
|
|
36
|
-
|
36
|
+
extra: dict = field(default_factory=dict)
|
37
37
|
|
38
38
|
def __post_init__(self):
|
39
|
-
for key, value in self.
|
39
|
+
for key, value in self.extra.items():
|
40
40
|
setattr(self, key, value)
|
41
41
|
|
42
42
|
def dict(self):
|
@@ -47,7 +47,7 @@ class KwargsContext:
|
|
47
47
|
|
48
48
|
|
49
49
|
@dataclass(kw_only=True)
|
50
|
-
class Context(
|
50
|
+
class Context(BaseContext):
|
51
51
|
|
52
52
|
title: str = ''
|
53
53
|
breadcrumbs: list[BreadCrumb] = field(default_factory=list)
|
@@ -188,7 +188,7 @@ class FormContext(Context):
|
|
188
188
|
|
189
189
|
|
190
190
|
@dataclass
|
191
|
-
class ModalFormContext(
|
191
|
+
class ModalFormContext(BaseContext):
|
192
192
|
|
193
193
|
title: str
|
194
194
|
form: Form | ModelForm
|
accrete/contrib/ui/elements.py
CHANGED
@@ -37,8 +37,8 @@ accrete/contrib/system_mail/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JC
|
|
37
37
|
accrete/contrib/ui/__init__.py,sha256=jU-3gQtEwtac-NPxFYCEoYF58WmCEanedXah4lETkWU,552
|
38
38
|
accrete/contrib/ui/admin.py,sha256=suMo4x8I3JBxAFBVIdE-5qnqZ6JAZV0FESABHOSc-vg,63
|
39
39
|
accrete/contrib/ui/apps.py,sha256=E0ao2ox6PQ3ldfeR17FXJUUJuGiWjm2DPCxHbPXGzls,152
|
40
|
-
accrete/contrib/ui/context.py,sha256=
|
41
|
-
accrete/contrib/ui/elements.py,sha256=
|
40
|
+
accrete/contrib/ui/context.py,sha256=HZNKf_O71FxbH4kYXw-wUVQmUTkmCB19i6VyJL0FF3Q,10100
|
41
|
+
accrete/contrib/ui/elements.py,sha256=rwXhRitKt70-ZT4yiLXvB7cp8jQbr02L7JpYwUy5jv4,1941
|
42
42
|
accrete/contrib/ui/filter.py,sha256=UAIkUNKu2nVQLafwZlkQu4PDfOPyFM61e_mE7OWRhYs,12410
|
43
43
|
accrete/contrib/ui/tests.py,sha256=mrbGGRNg5jwbTJtWWa7zSKdDyeB4vmgZCRc2nk6VY-g,60
|
44
44
|
accrete/contrib/ui/urls.py,sha256=UrRRroqP6ANW_jpkRWqo2yLvBhYOVhczzbxbfkGnoq4,124
|
@@ -221,7 +221,7 @@ accrete/utils/dates.py,sha256=apM6kt6JhGrKgoT0jfav1W-8AUVTxNc9xt3fJQ2n0JI,1492
|
|
221
221
|
accrete/utils/forms.py,sha256=Lll-DvAhKZDw72XeuCtb4wxQEJNFp7lQWh_Z1GyH3Zk,3049
|
222
222
|
accrete/utils/http.py,sha256=mAtQRgADv7zu1_j7A-EKVyb-oqa5a21i4Gd0QfjzGV0,3540
|
223
223
|
accrete/utils/models.py,sha256=EEhv7-sQVtQD24PEb3XcDUAh3VVhVFoMMLyFrDjGEaI,706
|
224
|
-
accrete-0.0.
|
225
|
-
accrete-0.0.
|
226
|
-
accrete-0.0.
|
227
|
-
accrete-0.0.
|
224
|
+
accrete-0.0.77.dist-info/METADATA,sha256=5WK5qeJEnQ6axXO7JkKbCbSWpyURJ5kTfoLkVE_72M0,4892
|
225
|
+
accrete-0.0.77.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
226
|
+
accrete-0.0.77.dist-info/licenses/LICENSE,sha256=_7laeMIHnsd3Y2vJEXDYXq_PEXxIcjgJsGt8UIKTRWc,1057
|
227
|
+
accrete-0.0.77.dist-info/RECORD,,
|
File without changes
|
File without changes
|