ramifice 0.8.25__py3-none-any.whl → 0.8.26__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.
- ramifice/fields/bool_field.py +13 -3
- ramifice/fields/choice_float_dyn_field.py +11 -1
- ramifice/fields/choice_float_field.py +15 -3
- ramifice/fields/choice_float_mult_dyn_field.py +11 -1
- ramifice/fields/choice_float_mult_field.py +15 -3
- ramifice/fields/choice_int_dyn_field.py +11 -1
- ramifice/fields/choice_int_field.py +15 -3
- ramifice/fields/choice_int_mult_dyn_field.py +11 -1
- ramifice/fields/choice_int_mult_field.py +15 -3
- ramifice/fields/choice_text_dyn_field.py +11 -1
- ramifice/fields/choice_text_field.py +15 -3
- ramifice/fields/choice_text_mult_dyn_field.py +11 -1
- ramifice/fields/choice_text_mult_field.py +15 -3
- ramifice/fields/color_field.py +20 -7
- ramifice/fields/date_field.py +19 -4
- ramifice/fields/date_time_field.py +19 -4
- ramifice/fields/email_field.py +18 -4
- ramifice/fields/file_field.py +20 -5
- ramifice/fields/float_field.py +22 -4
- ramifice/fields/id_field.py +13 -8
- ramifice/fields/image_field.py +20 -4
- ramifice/fields/integer_field.py +22 -4
- ramifice/fields/ip_field.py +18 -4
- ramifice/fields/password_field.py +14 -5
- ramifice/fields/phone_field.py +18 -4
- ramifice/fields/slug_field.py +13 -2
- ramifice/fields/text_field.py +20 -3
- ramifice/fields/url_field.py +15 -15
- ramifice/models/__init__.py +7 -1
- ramifice/paladins/__init__.py +16 -1
- {ramifice-0.8.25.dist-info → ramifice-0.8.26.dist-info}/METADATA +2 -3
- {ramifice-0.8.25.dist-info → ramifice-0.8.26.dist-info}/RECORD +34 -34
- {ramifice-0.8.25.dist-info → ramifice-0.8.26.dist-info}/WHEEL +0 -0
- {ramifice-0.8.25.dist-info → ramifice-0.8.26.dist-info}/licenses/LICENSE +0 -0
ramifice/fields/bool_field.py
CHANGED
@@ -12,17 +12,27 @@ logger = logging.getLogger(__name__)
|
|
12
12
|
|
13
13
|
|
14
14
|
class BooleanField(Field, JsonMixin):
|
15
|
-
"""Field of Model for enter boolean value.
|
15
|
+
"""Field of Model for enter boolean value.
|
16
|
+
|
17
|
+
Args:
|
18
|
+
label: Text label for a web form field.
|
19
|
+
default: Default value.
|
20
|
+
hide: Hide field from user.
|
21
|
+
disabled: Blocks access and modification of the element.
|
22
|
+
ignored: If true, the value of this field is not saved in the database.
|
23
|
+
hint: An alternative for the `placeholder` parameter.
|
24
|
+
warning: Warning information.
|
25
|
+
"""
|
16
26
|
|
17
27
|
def __init__( # noqa: D107
|
18
28
|
self,
|
19
29
|
label: str = "",
|
20
|
-
|
30
|
+
default: bool = False,
|
21
31
|
hide: bool = False,
|
32
|
+
disabled: bool = False,
|
22
33
|
ignored: bool = False,
|
23
34
|
hint: str = "",
|
24
35
|
warning: list[str] | None = None,
|
25
|
-
default: bool = False,
|
26
36
|
) -> None:
|
27
37
|
if constants.DEBUG:
|
28
38
|
try:
|
@@ -21,13 +21,23 @@ class ChoiceFloatDynField(Field, ChoiceGroup, JsonMixin):
|
|
21
21
|
Type of selective integer field with dynamic addition of elements.
|
22
22
|
For simulate relationship Many-to-One.
|
23
23
|
Element are (add|delete) via `ModelName.unit_manager(unit)` method.
|
24
|
+
|
25
|
+
Args:
|
26
|
+
label: Text label for a web form field.
|
27
|
+
hide: Hide field from user.
|
28
|
+
disabled: Blocks access and modification of the element.
|
29
|
+
ignored: If true, the value of this field is not saved in the database.
|
30
|
+
hint: An alternative for the `placeholder` parameter.
|
31
|
+
warning: Warning information.
|
32
|
+
required: Required field.
|
33
|
+
readonly: Specifies that the field cannot be modified by the user.
|
24
34
|
"""
|
25
35
|
|
26
36
|
def __init__( # noqa: D107
|
27
37
|
self,
|
28
38
|
label: str = "",
|
29
|
-
disabled: bool = False,
|
30
39
|
hide: bool = False,
|
40
|
+
disabled: bool = False,
|
31
41
|
ignored: bool = False,
|
32
42
|
hint: str = "",
|
33
43
|
warning: list[str] | None = None,
|
@@ -20,20 +20,32 @@ class ChoiceFloatField(Field, ChoiceGroup, JsonMixin):
|
|
20
20
|
|
21
21
|
Type of selective integer float with static of elements.
|
22
22
|
With a single choice.
|
23
|
+
|
24
|
+
Args:
|
25
|
+
label: Text label for a web form field.
|
26
|
+
default: Default value.
|
27
|
+
hide: Hide field from user.
|
28
|
+
disabled: Blocks access and modification of the element.
|
29
|
+
required: Required field.
|
30
|
+
readonly: Specifies that the field cannot be modified by the user.
|
31
|
+
ignored: If true, the value of this field is not saved in the database.
|
32
|
+
hint: An alternative for the `placeholder` parameter.
|
33
|
+
warning: Warning information.
|
34
|
+
choices: For a predefined set of options - [[value, Title], ...].
|
23
35
|
"""
|
24
36
|
|
25
37
|
def __init__( # noqa: D107
|
26
38
|
self,
|
27
39
|
label: str = "",
|
28
|
-
|
40
|
+
default: float | None = None,
|
29
41
|
hide: bool = False,
|
42
|
+
disabled: bool = False,
|
30
43
|
ignored: bool = False,
|
31
44
|
hint: str = "",
|
32
45
|
warning: list[str] | None = None,
|
33
|
-
default: float | None = None,
|
34
46
|
required: bool = False,
|
35
47
|
readonly: bool = False,
|
36
|
-
choices: list[list[float | str]] | None = None,
|
48
|
+
choices: list[list[float | str]] | None = None, # [[value, Title], ...]
|
37
49
|
) -> None:
|
38
50
|
Field.__init__(
|
39
51
|
self,
|
@@ -20,13 +20,23 @@ class ChoiceFloatMultDynField(Field, ChoiceGroup, JsonMixin):
|
|
20
20
|
|
21
21
|
Type of selective float field with dynamic addition of elements.
|
22
22
|
For simulate relationship Many-to-Many.
|
23
|
+
|
24
|
+
Args:
|
25
|
+
label: Text label for a web form field.
|
26
|
+
hide: Hide field from user.
|
27
|
+
disabled: Blocks access and modification of the element.
|
28
|
+
ignored: If true, the value of this field is not saved in the database.
|
29
|
+
hint: An alternative for the `placeholder` parameter.
|
30
|
+
warning: Warning information.
|
31
|
+
required: Required field.
|
32
|
+
readonly: Specifies that the field cannot be modified by the user.
|
23
33
|
"""
|
24
34
|
|
25
35
|
def __init__( # noqa: D107
|
26
36
|
self,
|
27
37
|
label: str = "",
|
28
|
-
disabled: bool = False,
|
29
38
|
hide: bool = False,
|
39
|
+
disabled: bool = False,
|
30
40
|
ignored: bool = False,
|
31
41
|
hint: str = "",
|
32
42
|
warning: list[str] | None = None,
|
@@ -20,20 +20,32 @@ class ChoiceFloatMultField(Field, ChoiceGroup, JsonMixin):
|
|
20
20
|
|
21
21
|
Type of selective float field with static of elements.
|
22
22
|
With multiple choice.
|
23
|
+
|
24
|
+
Args:
|
25
|
+
label: Text label for a web form field.
|
26
|
+
default: Default value.
|
27
|
+
hide: Hide field from user.
|
28
|
+
disabled: Blocks access and modification of the element.
|
29
|
+
ignored: If true, the value of this field is not saved in the database.
|
30
|
+
hint: An alternative for the `placeholder` parameter.
|
31
|
+
warning: Warning information.
|
32
|
+
required: Required field.
|
33
|
+
readonly: Specifies that the field cannot be modified by the user.
|
34
|
+
choices: For a predefined set of options - [[value, Title], ...].
|
23
35
|
"""
|
24
36
|
|
25
37
|
def __init__( # noqa: D107
|
26
38
|
self,
|
27
39
|
label: str = "",
|
28
|
-
|
40
|
+
default: list[float] | None = None,
|
29
41
|
hide: bool = False,
|
42
|
+
disabled: bool = False,
|
30
43
|
ignored: bool = False,
|
31
44
|
hint: str = "",
|
32
45
|
warning: list[str] | None = None,
|
33
|
-
default: list[float] | None = None,
|
34
46
|
required: bool = False,
|
35
47
|
readonly: bool = False,
|
36
|
-
choices: list[list[float | str]] | None = None,
|
48
|
+
choices: list[list[float | str]] | None = None, # [[value, Title], ...]
|
37
49
|
) -> None:
|
38
50
|
Field.__init__(
|
39
51
|
self,
|
@@ -21,13 +21,23 @@ class ChoiceIntDynField(Field, ChoiceGroup, JsonMixin):
|
|
21
21
|
Type of selective integer field with dynamic addition of elements.
|
22
22
|
For simulate relationship Many-to-One.
|
23
23
|
Element are (add|delete) via `ModelName.unit_manager(unit)` method.
|
24
|
+
|
25
|
+
Args:
|
26
|
+
label: Text label for a web form field.
|
27
|
+
hide: Hide field from user.
|
28
|
+
disabled: Blocks access and modification of the element.
|
29
|
+
ignored: If true, the value of this field is not saved in the database.
|
30
|
+
hint: An alternative for the `placeholder` parameter.
|
31
|
+
warning: Warning information.
|
32
|
+
required: Required field.
|
33
|
+
readonly: Specifies that the field cannot be modified by the user.
|
24
34
|
"""
|
25
35
|
|
26
36
|
def __init__( # noqa: D107
|
27
37
|
self,
|
28
38
|
label: str = "",
|
29
|
-
disabled: bool = False,
|
30
39
|
hide: bool = False,
|
40
|
+
disabled: bool = False,
|
31
41
|
ignored: bool = False,
|
32
42
|
hint: str = "",
|
33
43
|
warning: list[str] | None = None,
|
@@ -20,20 +20,32 @@ class ChoiceIntField(Field, ChoiceGroup, JsonMixin):
|
|
20
20
|
|
21
21
|
Type of selective integer field with static of elements.
|
22
22
|
With a single choice.
|
23
|
+
|
24
|
+
Args:
|
25
|
+
label: Text label for a web form field.
|
26
|
+
default: Default value.
|
27
|
+
hide: Hide field from user.
|
28
|
+
disabled: Blocks access and modification of the element.
|
29
|
+
required: Required field.
|
30
|
+
readonly: Specifies that the field cannot be modified by the user.
|
31
|
+
ignored: If true, the value of this field is not saved in the database.
|
32
|
+
hint: An alternative for the `placeholder` parameter.
|
33
|
+
warning: Warning information.
|
34
|
+
choices: For a predefined set of options - [[value, Title], ...].
|
23
35
|
"""
|
24
36
|
|
25
37
|
def __init__( # noqa: D107
|
26
38
|
self,
|
27
39
|
label: str = "",
|
28
|
-
|
40
|
+
default: int | None = None,
|
29
41
|
hide: bool = False,
|
42
|
+
disabled: bool = False,
|
30
43
|
ignored: bool = False,
|
31
44
|
hint: str = "",
|
32
45
|
warning: list[str] | None = None,
|
33
|
-
default: int | None = None,
|
34
46
|
required: bool = False,
|
35
47
|
readonly: bool = False,
|
36
|
-
choices: list[list[int | str]] | None = None,
|
48
|
+
choices: list[list[int | str]] | None = None, # [[value, Title], ...]
|
37
49
|
) -> None:
|
38
50
|
Field.__init__(
|
39
51
|
self,
|
@@ -20,13 +20,23 @@ class ChoiceIntMultDynField(Field, ChoiceGroup, JsonMixin):
|
|
20
20
|
|
21
21
|
Type of selective integer field with dynamic addition of elements.
|
22
22
|
For simulate relationship Many-to-Many.
|
23
|
+
|
24
|
+
Args:
|
25
|
+
label: Text label for a web form field.
|
26
|
+
hide: Hide field from user.
|
27
|
+
disabled: Blocks access and modification of the element.
|
28
|
+
ignored: If true, the value of this field is not saved in the database.
|
29
|
+
hint: An alternative for the `placeholder` parameter.
|
30
|
+
warning: Warning information.
|
31
|
+
required: Required field.
|
32
|
+
readonly: Specifies that the field cannot be modified by the user.
|
23
33
|
"""
|
24
34
|
|
25
35
|
def __init__( # noqa: D107
|
26
36
|
self,
|
27
37
|
label: str = "",
|
28
|
-
disabled: bool = False,
|
29
38
|
hide: bool = False,
|
39
|
+
disabled: bool = False,
|
30
40
|
ignored: bool = False,
|
31
41
|
hint: str = "",
|
32
42
|
warning: list[str] | None = None,
|
@@ -20,20 +20,32 @@ class ChoiceIntMultField(Field, ChoiceGroup, JsonMixin):
|
|
20
20
|
|
21
21
|
Type of selective integer field with static of elements.
|
22
22
|
With multiple choice.
|
23
|
+
|
24
|
+
Args:
|
25
|
+
label: Text label for a web form field.
|
26
|
+
default: Default value.
|
27
|
+
hide: Hide field from user.
|
28
|
+
disabled: Blocks access and modification of the element.
|
29
|
+
ignored: If true, the value of this field is not saved in the database.
|
30
|
+
hint: An alternative for the `placeholder` parameter.
|
31
|
+
warning: Warning information.
|
32
|
+
required: Required field.
|
33
|
+
readonly: Specifies that the field cannot be modified by the user.
|
34
|
+
choices: For a predefined set of options - [[value, Title], ...].
|
23
35
|
"""
|
24
36
|
|
25
37
|
def __init__( # noqa: D107
|
26
38
|
self,
|
27
39
|
label: str = "",
|
28
|
-
|
40
|
+
default: list[int] | None = None,
|
29
41
|
hide: bool = False,
|
42
|
+
disabled: bool = False,
|
30
43
|
ignored: bool = False,
|
31
44
|
hint: str = "",
|
32
45
|
warning: list[str] | None = None,
|
33
|
-
default: list[int] | None = None,
|
34
46
|
required: bool = False,
|
35
47
|
readonly: bool = False,
|
36
|
-
choices: list[list[int | str]] | None = None,
|
48
|
+
choices: list[list[int | str]] | None = None, # [[value, Title], ...]
|
37
49
|
) -> None:
|
38
50
|
Field.__init__(
|
39
51
|
self,
|
@@ -21,13 +21,23 @@ class ChoiceTextDynField(Field, ChoiceGroup, JsonMixin):
|
|
21
21
|
Type of selective text field with dynamic addition of elements.
|
22
22
|
For simulate relationship Many-to-One.
|
23
23
|
Element are (add|delete) via `ModelName.unit_manager(unit)` method.
|
24
|
+
|
25
|
+
Args:
|
26
|
+
label: Text label for a web form field.
|
27
|
+
hide: Hide field from user.
|
28
|
+
disabled: Blocks access and modification of the element.
|
29
|
+
ignored: If true, the value of this field is not saved in the database.
|
30
|
+
hint: An alternative for the `placeholder` parameter.
|
31
|
+
warning: Warning information.
|
32
|
+
required: Required field.
|
33
|
+
readonly: Specifies that the field cannot be modified by the user.
|
24
34
|
"""
|
25
35
|
|
26
36
|
def __init__( # noqa: D107
|
27
37
|
self,
|
28
38
|
label: str = "",
|
29
|
-
disabled: bool = False,
|
30
39
|
hide: bool = False,
|
40
|
+
disabled: bool = False,
|
31
41
|
ignored: bool = False,
|
32
42
|
hint: str = "",
|
33
43
|
warning: list[str] | None = None,
|
@@ -20,20 +20,32 @@ class ChoiceTextField(Field, ChoiceGroup, JsonMixin):
|
|
20
20
|
|
21
21
|
Type of selective text field with static of elements.
|
22
22
|
With a single choice.
|
23
|
+
|
24
|
+
Args:
|
25
|
+
label: Text label for a web form field.
|
26
|
+
default: Default value.
|
27
|
+
hide: Hide field from user.
|
28
|
+
disabled: Blocks access and modification of the element.
|
29
|
+
required: Required field.
|
30
|
+
readonly: Specifies that the field cannot be modified by the user.
|
31
|
+
ignored: If true, the value of this field is not saved in the database.
|
32
|
+
hint: An alternative for the `placeholder` parameter.
|
33
|
+
warning: Warning information.
|
34
|
+
choices: For a predefined set of options - [[value, Title], ...].
|
23
35
|
"""
|
24
36
|
|
25
37
|
def __init__( # noqa: D107
|
26
38
|
self,
|
27
39
|
label: str = "",
|
28
|
-
|
40
|
+
default: str | None = None,
|
29
41
|
hide: bool = False,
|
42
|
+
disabled: bool = False,
|
30
43
|
ignored: bool = False,
|
31
44
|
hint: str = "",
|
32
45
|
warning: list[str] | None = None,
|
33
|
-
default: str | None = None,
|
34
46
|
required: bool = False,
|
35
47
|
readonly: bool = False,
|
36
|
-
choices: list[list[str]] | None = None,
|
48
|
+
choices: list[list[str]] | None = None, # [[value, Title], ...]
|
37
49
|
) -> None:
|
38
50
|
Field.__init__(
|
39
51
|
self,
|
@@ -20,13 +20,23 @@ class ChoiceTextMultDynField(Field, ChoiceGroup, JsonMixin):
|
|
20
20
|
|
21
21
|
Type of selective text field with dynamic addition of elements.
|
22
22
|
For simulate relationship Many-to-Many.
|
23
|
+
|
24
|
+
Args:
|
25
|
+
label: Text label for a web form field.
|
26
|
+
hide: Hide field from user.
|
27
|
+
disabled: Blocks access and modification of the element.
|
28
|
+
ignored: If true, the value of this field is not saved in the database.
|
29
|
+
hint: An alternative for the `placeholder` parameter.
|
30
|
+
warning: Warning information.
|
31
|
+
required: Required field.
|
32
|
+
readonly: Specifies that the field cannot be modified by the user.
|
23
33
|
"""
|
24
34
|
|
25
35
|
def __init__( # noqa: D107
|
26
36
|
self,
|
27
37
|
label: str = "",
|
28
|
-
disabled: bool = False,
|
29
38
|
hide: bool = False,
|
39
|
+
disabled: bool = False,
|
30
40
|
ignored: bool = False,
|
31
41
|
hint: str = "",
|
32
42
|
warning: list[str] | None = None,
|
@@ -20,20 +20,32 @@ class ChoiceTextMultField(Field, ChoiceGroup, JsonMixin):
|
|
20
20
|
|
21
21
|
Type of selective text field with static of elements.
|
22
22
|
With multiple choice.
|
23
|
+
|
24
|
+
Args:
|
25
|
+
label: Text label for a web form field.
|
26
|
+
default: Default value.
|
27
|
+
hide: Hide field from user.
|
28
|
+
disabled: Blocks access and modification of the element.
|
29
|
+
ignored: If true, the value of this field is not saved in the database.
|
30
|
+
hint: An alternative for the `placeholder` parameter.
|
31
|
+
warning: Warning information.
|
32
|
+
required: Required field.
|
33
|
+
readonly: Specifies that the field cannot be modified by the user.
|
34
|
+
choices: For a predefined set of options - [[value, Title], ...].
|
23
35
|
"""
|
24
36
|
|
25
37
|
def __init__( # noqa: D107
|
26
38
|
self,
|
27
39
|
label: str = "",
|
28
|
-
|
40
|
+
default: list[str] | None = None,
|
29
41
|
hide: bool = False,
|
42
|
+
disabled: bool = False,
|
30
43
|
ignored: bool = False,
|
31
44
|
hint: str = "",
|
32
45
|
warning: list[str] | None = None,
|
33
|
-
default: list[str] | None = None,
|
34
46
|
required: bool = False,
|
35
47
|
readonly: bool = False,
|
36
|
-
choices: list[list[str]] | None = None,
|
48
|
+
choices: list[list[str]] | None = None, # [[value, Title], ...]
|
37
49
|
) -> None:
|
38
50
|
Field.__init__(
|
39
51
|
self,
|
ramifice/fields/color_field.py
CHANGED
@@ -17,22 +17,35 @@ class ColorField(Field, TextGroup, JsonMixin):
|
|
17
17
|
|
18
18
|
Default value is #000000 (black).
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
20
|
+
Samples:
|
21
|
+
#ffffff | #fff | #f2f2f2 | #f2f2f200 | rgb(255,0,24) |
|
22
|
+
rgba(255,0,24,0.5) | rgba(#fff,0.5) | hsl(120,100%,50%) |
|
23
|
+
hsla(170,23%,25%,0.2) | 0x00ffff
|
24
|
+
|
25
|
+
Agrs:
|
26
|
+
label: Text label for a web form field.
|
27
|
+
placeholder: Displays prompt text.
|
28
|
+
default: Value by default.
|
29
|
+
hide: Hide field from user.
|
30
|
+
disabled: Blocks access and modification of the element.
|
31
|
+
ignored: If true, the value of this field is not saved in the database.
|
32
|
+
hint: An alternative for the `placeholder` parameter.
|
33
|
+
warning: Warning information.
|
34
|
+
required: Required field.
|
35
|
+
readonly: Specifies that the field cannot be modified by the user.
|
36
|
+
unique: The unique value of a field in a collection.
|
24
37
|
"""
|
25
38
|
|
26
39
|
def __init__( # noqa: D107
|
27
40
|
self,
|
28
41
|
label: str = "",
|
29
|
-
|
42
|
+
placeholder: str = "",
|
43
|
+
default: str | None = "#000000",
|
30
44
|
hide: bool = False,
|
45
|
+
disabled: bool = False,
|
31
46
|
ignored: bool = False,
|
32
47
|
hint: str = "",
|
33
48
|
warning: list[str] | None = None,
|
34
|
-
default: str | None = "#000000",
|
35
|
-
placeholder: str = "",
|
36
49
|
required: bool = False,
|
37
50
|
readonly: bool = False,
|
38
51
|
unique: bool = False,
|
ramifice/fields/date_field.py
CHANGED
@@ -18,18 +18,33 @@ logger = logging.getLogger(__name__)
|
|
18
18
|
|
19
19
|
|
20
20
|
class DateField(Field, DateGroup):
|
21
|
-
"""Field of Model for enter date.
|
21
|
+
"""Field of Model for enter date.
|
22
|
+
|
23
|
+
Agrs:
|
24
|
+
label: Text label for a web form field.
|
25
|
+
placeholder: Displays prompt text.
|
26
|
+
default: Value by default.
|
27
|
+
hide: Hide field from user.
|
28
|
+
disabled: Blocks access and modification of the element.
|
29
|
+
ignored: If true, the value of this field is not saved in the database.
|
30
|
+
hint: An alternative for the `placeholder` parameter.
|
31
|
+
warning: Warning information.
|
32
|
+
required: Required field.
|
33
|
+
readonly: Specifies that the field cannot be modified by the user.
|
34
|
+
max_date: Maximum allowed date.
|
35
|
+
min_date: Minimum allowed date.
|
36
|
+
"""
|
22
37
|
|
23
38
|
def __init__( # noqa: D107
|
24
39
|
self,
|
25
40
|
label: str = "",
|
26
|
-
|
41
|
+
placeholder: str = "",
|
42
|
+
default: datetime | None = None,
|
27
43
|
hide: bool = False,
|
44
|
+
disabled: bool = False,
|
28
45
|
ignored: bool = False,
|
29
46
|
hint: str = "",
|
30
47
|
warning: list[str] | None = None,
|
31
|
-
default: datetime | None = None,
|
32
|
-
placeholder: str = "",
|
33
48
|
required: bool = False,
|
34
49
|
readonly: bool = False,
|
35
50
|
max_date: datetime | None = None,
|
@@ -18,18 +18,33 @@ logger = logging.getLogger(__name__)
|
|
18
18
|
|
19
19
|
|
20
20
|
class DateTimeField(Field, DateGroup):
|
21
|
-
"""Field of Model for enter date and time.
|
21
|
+
"""Field of Model for enter date and time.
|
22
|
+
|
23
|
+
Agrs:
|
24
|
+
label: Text label for a web form field.
|
25
|
+
placeholder: Displays prompt text.
|
26
|
+
default: Value by default.
|
27
|
+
hide: Hide field from user.
|
28
|
+
disabled: Blocks access and modification of the element.
|
29
|
+
ignored: If true, the value of this field is not saved in the database.
|
30
|
+
hint: An alternative for the `placeholder` parameter.
|
31
|
+
warning: Warning information.
|
32
|
+
required: Required field.
|
33
|
+
readonly: Specifies that the field cannot be modified by the user.
|
34
|
+
max_date: Maximum allowed date and time.
|
35
|
+
min_date: Minimum allowed date and time.
|
36
|
+
"""
|
22
37
|
|
23
38
|
def __init__( # noqa: D107
|
24
39
|
self,
|
25
40
|
label: str = "",
|
26
|
-
|
41
|
+
placeholder: str = "",
|
42
|
+
default: datetime | None = None,
|
27
43
|
hide: bool = False,
|
44
|
+
disabled: bool = False,
|
28
45
|
ignored: bool = False,
|
29
46
|
hint: str = "",
|
30
47
|
warning: list[str] | None = None,
|
31
|
-
default: datetime | None = None,
|
32
|
-
placeholder: str = "",
|
33
48
|
required: bool = False,
|
34
49
|
readonly: bool = False,
|
35
50
|
max_date: datetime | None = None,
|
ramifice/fields/email_field.py
CHANGED
@@ -15,18 +15,32 @@ logger = logging.getLogger(__name__)
|
|
15
15
|
|
16
16
|
|
17
17
|
class EmailField(Field, TextGroup, JsonMixin):
|
18
|
-
"""Field of Model for enter email address.
|
18
|
+
"""Field of Model for enter email address.
|
19
|
+
|
20
|
+
Agrs:
|
21
|
+
label: Text label for a web form field.
|
22
|
+
placeholder: Displays prompt text.
|
23
|
+
default: Value by default.
|
24
|
+
hide: Hide field from user.
|
25
|
+
disabled: Blocks access and modification of the element.
|
26
|
+
ignored: If true, the value of this field is not saved in the database.
|
27
|
+
hint: An alternative for the `placeholder` parameter.
|
28
|
+
warning: Warning information.
|
29
|
+
required: Required field.
|
30
|
+
readonly: Specifies that the field cannot be modified by the user.
|
31
|
+
unique: The unique value of a field in a collection.
|
32
|
+
"""
|
19
33
|
|
20
34
|
def __init__( # noqa: D107
|
21
35
|
self,
|
22
36
|
label: str = "",
|
23
|
-
|
37
|
+
placeholder: str = "",
|
38
|
+
default: str | None = None,
|
24
39
|
hide: bool = False,
|
40
|
+
disabled: bool = False,
|
25
41
|
ignored: bool = False,
|
26
42
|
hint: str = "",
|
27
43
|
warning: list[str] | None = None,
|
28
|
-
default: str | None = None,
|
29
|
-
placeholder: str = "",
|
30
44
|
required: bool = False,
|
31
45
|
readonly: bool = False,
|
32
46
|
unique: bool = False,
|
ramifice/fields/file_field.py
CHANGED
@@ -23,23 +23,38 @@ logger = logging.getLogger(__name__)
|
|
23
23
|
|
24
24
|
|
25
25
|
class FileField(Field, FileGroup, JsonMixin):
|
26
|
-
"""Field of Model for upload file.
|
26
|
+
"""Field of Model for upload file.
|
27
|
+
|
28
|
+
Agrs:
|
29
|
+
label: Text label for a web form field.
|
30
|
+
placeholder: Displays prompt text.
|
31
|
+
default: Value by default.
|
32
|
+
hide: Hide field from user.
|
33
|
+
disabled: Blocks access and modification of the element.
|
34
|
+
ignored: If true, the value of this field is not saved in the database.
|
35
|
+
hint: An alternative for the `placeholder` parameter.
|
36
|
+
warning: Warning information.
|
37
|
+
required: Required field.
|
38
|
+
max_size: The maximum allowed file size in bytes.
|
39
|
+
target_dir: Directory for files inside media directory.
|
40
|
+
accept: Describing which file types to allow. Example: ".pdf,.doc,.docx,application/msword".
|
41
|
+
"""
|
27
42
|
|
28
43
|
def __init__( # noqa: D107
|
29
44
|
self,
|
30
45
|
label: str = "",
|
31
|
-
|
46
|
+
placeholder: str = "",
|
47
|
+
default: str | None = None,
|
32
48
|
hide: bool = False,
|
49
|
+
disabled: bool = False,
|
33
50
|
ignored: bool = False,
|
34
51
|
hint: str = "",
|
35
52
|
warning: list[str] | None = None,
|
36
53
|
required: bool = False,
|
37
54
|
# The maximum size of the file in bytes.
|
38
55
|
max_size: int = 2097152, # 2 MB = 2097152 Bytes (in binary)
|
39
|
-
default: str | None = None,
|
40
|
-
placeholder: str = "",
|
41
56
|
target_dir: str = "files",
|
42
|
-
accept: str = "",
|
57
|
+
accept: str = "", # Example: ".pdf,.doc,.docx,application/msword"
|
43
58
|
) -> None:
|
44
59
|
if constants.DEBUG:
|
45
60
|
try:
|
ramifice/fields/float_field.py
CHANGED
@@ -14,18 +14,36 @@ logger = logging.getLogger(__name__)
|
|
14
14
|
|
15
15
|
|
16
16
|
class FloatField(Field, NumberGroup, JsonMixin):
|
17
|
-
"""Field of Model for enter (float) number.
|
17
|
+
"""Field of Model for enter (float) number.
|
18
|
+
|
19
|
+
Agrs:
|
20
|
+
label: Text label for a web form field.
|
21
|
+
placeholder: Displays prompt text.
|
22
|
+
default: Value by default.
|
23
|
+
hide: Hide field from user.
|
24
|
+
disabled: Blocks access and modification of the element.
|
25
|
+
ignored: If true, the value of this field is not saved in the database.
|
26
|
+
hint: An alternative for the `placeholder` parameter.
|
27
|
+
warning: Warning information.
|
28
|
+
required: Required field.
|
29
|
+
readonly: Specifies that the field cannot be modified by the user.
|
30
|
+
unique: The unique value of a field in a collection.
|
31
|
+
max_number: Maximum allowed number.
|
32
|
+
min_number: Minimum allowed number.
|
33
|
+
step: Increment step for numeric fields.
|
34
|
+
input_type: Field type - `number` or `range`.
|
35
|
+
"""
|
18
36
|
|
19
37
|
def __init__( # noqa: D107
|
20
38
|
self,
|
21
39
|
label: str = "",
|
22
|
-
|
40
|
+
placeholder: str = "",
|
41
|
+
default: float | None = None,
|
23
42
|
hide: bool = False,
|
43
|
+
disabled: bool = False,
|
24
44
|
ignored: bool = False,
|
25
45
|
hint: str = "",
|
26
46
|
warning: list[str] | None = None,
|
27
|
-
default: float | None = None,
|
28
|
-
placeholder: str = "",
|
29
47
|
required: bool = False,
|
30
48
|
readonly: bool = False,
|
31
49
|
unique: bool = False,
|
ramifice/fields/id_field.py
CHANGED
@@ -17,23 +17,28 @@ logger = logging.getLogger(__name__)
|
|
17
17
|
class IDField(Field):
|
18
18
|
"""Field of Model for enter identifier of document.
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
placeholder
|
23
|
-
|
24
|
-
|
25
|
-
|
20
|
+
Agrs:
|
21
|
+
label: Text label for a web form field.
|
22
|
+
placeholder: Displays prompt text.
|
23
|
+
hide: Hide field from user.
|
24
|
+
disabled: Blocks access and modification of the element.
|
25
|
+
ignored: If true, the value of this field is not saved in the database.
|
26
|
+
hint: An alternative for the `placeholder` parameter.
|
27
|
+
warning: Warning information.
|
28
|
+
required: Required field.
|
29
|
+
readonly: Specifies that the field cannot be modified by the user.
|
30
|
+
unique: The unique value of a field in a collection.
|
26
31
|
"""
|
27
32
|
|
28
33
|
def __init__( # noqa: D107
|
29
34
|
self,
|
30
35
|
label: str = "",
|
31
|
-
|
36
|
+
placeholder: str = "",
|
32
37
|
hide: bool = False,
|
38
|
+
disabled: bool = False,
|
33
39
|
ignored: bool = False,
|
34
40
|
hint: str = "",
|
35
41
|
warning: list[str] | None = None,
|
36
|
-
placeholder: str = "",
|
37
42
|
required: bool = False,
|
38
43
|
readonly: bool = False,
|
39
44
|
unique: bool = False,
|
ramifice/fields/image_field.py
CHANGED
@@ -23,21 +23,37 @@ logger = logging.getLogger(__name__)
|
|
23
23
|
|
24
24
|
|
25
25
|
class ImageField(Field, FileGroup, JsonMixin):
|
26
|
-
"""Field of Model for upload image.
|
26
|
+
"""Field of Model for upload image.
|
27
|
+
|
28
|
+
Agrs:
|
29
|
+
label: Text label for a web form field.
|
30
|
+
placeholder: Displays prompt text.
|
31
|
+
default: Value by default.
|
32
|
+
hide: Hide field from user.
|
33
|
+
disabled: Blocks access and modification of the element.
|
34
|
+
ignored: If true, the value of this field is not saved in the database.
|
35
|
+
hint: An alternative for the `placeholder` parameter.
|
36
|
+
warning: Warning information.
|
37
|
+
required: Required field.
|
38
|
+
max_size: The maximum allowed file size in bytes.
|
39
|
+
target_dir: Directory for files inside media directory.
|
40
|
+
accept: Describing which file types to allow. Example: "image/png,image/jpeg,image/webp".
|
41
|
+
thumbnails: Sizes of thumbnails - Example: {"lg": 1200, "md": 600, "sm": 300, "xs": 150 }.
|
42
|
+
"""
|
27
43
|
|
28
44
|
def __init__( # noqa: D107
|
29
45
|
self,
|
30
46
|
label: str = "",
|
31
|
-
|
47
|
+
placeholder: str = "",
|
48
|
+
default: str | None = None,
|
32
49
|
hide: bool = False,
|
50
|
+
disabled: bool = False,
|
33
51
|
ignored: bool = False,
|
34
52
|
hint: str = "",
|
35
53
|
warning: list[str] | None = None,
|
36
54
|
required: bool = False,
|
37
55
|
# The maximum size of the original image in bytes.
|
38
56
|
max_size: int = 2097152, # 2 MB = 2097152 Bytes (in binary)
|
39
|
-
default: str | None = None,
|
40
|
-
placeholder: str = "",
|
41
57
|
target_dir: str = "images",
|
42
58
|
accept: str = "image/png,image/jpeg,image/webp",
|
43
59
|
# Available 4 sizes from lg to xs or None.
|
ramifice/fields/integer_field.py
CHANGED
@@ -14,18 +14,36 @@ logger = logging.getLogger(__name__)
|
|
14
14
|
|
15
15
|
|
16
16
|
class IntegerField(Field, NumberGroup, JsonMixin):
|
17
|
-
"""Field of Model for enter (int) number.
|
17
|
+
"""Field of Model for enter (int) number.
|
18
|
+
|
19
|
+
Agrs:
|
20
|
+
label: Text label for a web form field.
|
21
|
+
placeholder: Displays prompt text.
|
22
|
+
default: Value by default.
|
23
|
+
hide: Hide field from user.
|
24
|
+
disabled: Blocks access and modification of the element.
|
25
|
+
ignored: If true, the value of this field is not saved in the database.
|
26
|
+
hint: An alternative for the `placeholder` parameter.
|
27
|
+
warning: Warning information.
|
28
|
+
required: Required field.
|
29
|
+
readonly: Specifies that the field cannot be modified by the user.
|
30
|
+
unique: The unique value of a field in a collection.
|
31
|
+
max_number: Maximum allowed number.
|
32
|
+
min_number: Minimum allowed number.
|
33
|
+
step: Increment step for numeric fields.
|
34
|
+
input_type: Field type - `number` or `range`.
|
35
|
+
"""
|
18
36
|
|
19
37
|
def __init__( # noqa: D107
|
20
38
|
self,
|
21
39
|
label: str = "",
|
22
|
-
|
40
|
+
placeholder: str = "",
|
41
|
+
default: int | None = None,
|
23
42
|
hide: bool = False,
|
43
|
+
disabled: bool = False,
|
24
44
|
ignored: bool = False,
|
25
45
|
hint: str = "",
|
26
46
|
warning: list[str] | None = None,
|
27
|
-
default: int | None = None,
|
28
|
-
placeholder: str = "",
|
29
47
|
required: bool = False,
|
30
48
|
readonly: bool = False,
|
31
49
|
unique: bool = False,
|
ramifice/fields/ip_field.py
CHANGED
@@ -14,18 +14,32 @@ logger = logging.getLogger(__name__)
|
|
14
14
|
|
15
15
|
|
16
16
|
class IPField(Field, TextGroup, JsonMixin):
|
17
|
-
"""Field of Model for enter IP address.
|
17
|
+
"""Field of Model for enter IP address.
|
18
|
+
|
19
|
+
Agrs:
|
20
|
+
label: Text label for a web form field.
|
21
|
+
placeholder: Displays prompt text.
|
22
|
+
default: Value by default.
|
23
|
+
hide: Hide field from user.
|
24
|
+
disabled: Blocks access and modification of the element.
|
25
|
+
ignored: If true, the value of this field is not saved in the database.
|
26
|
+
hint: An alternative for the `placeholder` parameter.
|
27
|
+
warning: Warning information.
|
28
|
+
required: Required field.
|
29
|
+
readonly: Specifies that the field cannot be modified by the user.
|
30
|
+
unique: The unique value of a field in a collection.
|
31
|
+
"""
|
18
32
|
|
19
33
|
def __init__( # noqa: D107
|
20
34
|
self,
|
21
35
|
label: str = "",
|
22
|
-
|
36
|
+
placeholder: str = "",
|
37
|
+
default: str | None = None,
|
23
38
|
hide: bool = False,
|
39
|
+
disabled: bool = False,
|
24
40
|
ignored: bool = False,
|
25
41
|
hint: str = "",
|
26
42
|
warning: list[str] | None = None,
|
27
|
-
default: str | None = None,
|
28
|
-
placeholder: str = "",
|
29
43
|
required: bool = False,
|
30
44
|
readonly: bool = False,
|
31
45
|
unique: bool = False,
|
@@ -16,20 +16,29 @@ logger = logging.getLogger(__name__)
|
|
16
16
|
class PasswordField(Field):
|
17
17
|
r"""Field of Model for enter password.
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
19
|
+
Attention:
|
20
|
+
- Regular expression: ^[-._!"`'#%&,:;<>=@{}~$()*+/\\?[]^|a-zA-Z0-9]{8,256}$
|
21
|
+
- Valid characters: a-z A-Z 0-9 - . _ ! " ` ' # % & , : ; < > = @ { } ~ $ ( ) * + / \\ ? [ ] ^ |
|
22
|
+
- Number of characters: from 8 to 256.
|
23
|
+
|
24
|
+
Agrs:
|
25
|
+
label: Text label for a web form field.
|
26
|
+
placeholder: Displays prompt text.
|
27
|
+
hide: Hide field from user.
|
28
|
+
ignored: If true, the value of this field is not saved in the database.
|
29
|
+
hint: An alternative for the `placeholder` parameter.
|
30
|
+
warning: Warning information.
|
31
|
+
required: Required field.
|
23
32
|
"""
|
24
33
|
|
25
34
|
def __init__( # noqa: D107
|
26
35
|
self,
|
27
36
|
label: str = "",
|
37
|
+
placeholder: str = "",
|
28
38
|
hide: bool = False,
|
29
39
|
ignored: bool = False,
|
30
40
|
hint: str = "",
|
31
41
|
warning: list[str] | None = None,
|
32
|
-
placeholder: str = "",
|
33
42
|
required: bool = False,
|
34
43
|
) -> None:
|
35
44
|
if constants.DEBUG:
|
ramifice/fields/phone_field.py
CHANGED
@@ -17,19 +17,33 @@ logger = logging.getLogger(__name__)
|
|
17
17
|
class PhoneField(Field, TextGroup, JsonMixin):
|
18
18
|
"""Field of Model for enter phone number.
|
19
19
|
|
20
|
-
|
20
|
+
Attention:
|
21
|
+
By default is used validator `phonenumbers.is_valid_number()`.
|
22
|
+
|
23
|
+
Agrs:
|
24
|
+
label: Text label for a web form field.
|
25
|
+
placeholder: Displays prompt text.
|
26
|
+
default: Value by default.
|
27
|
+
hide: Hide field from user.
|
28
|
+
disabled: Blocks access and modification of the element.
|
29
|
+
ignored: If true, the value of this field is not saved in the database.
|
30
|
+
hint: An alternative for the `placeholder` parameter.
|
31
|
+
warning: Warning information.
|
32
|
+
required: Required field.
|
33
|
+
readonly: Specifies that the field cannot be modified by the user.
|
34
|
+
unique: The unique value of a field in a collection.
|
21
35
|
"""
|
22
36
|
|
23
37
|
def __init__( # noqa: D107
|
24
38
|
self,
|
25
39
|
label: str = "",
|
26
|
-
|
40
|
+
placeholder: str = "",
|
41
|
+
default: str | None = None,
|
27
42
|
hide: bool = False,
|
43
|
+
disabled: bool = False,
|
28
44
|
ignored: bool = False,
|
29
45
|
hint: str = "",
|
30
46
|
warning: list[str] | None = None,
|
31
|
-
default: str | None = None,
|
32
|
-
placeholder: str = "",
|
33
47
|
required: bool = False,
|
34
48
|
readonly: bool = False,
|
35
49
|
unique: bool = False,
|
ramifice/fields/slug_field.py
CHANGED
@@ -16,17 +16,28 @@ class SlugField(Field, TextGroup, JsonMixin):
|
|
16
16
|
"""Field of Model for automatic generation of string `slug`.
|
17
17
|
|
18
18
|
Convenient to use for Url addresses.
|
19
|
+
|
20
|
+
Agrs:
|
21
|
+
label: Text label for a web form field.
|
22
|
+
placeholder: Displays prompt text.
|
23
|
+
hide: Hide field from user.
|
24
|
+
disabled: Blocks access and modification of the element.
|
25
|
+
ignored: If true, the value of this field is not saved in the database.
|
26
|
+
hint: An alternative for the `placeholder` parameter.
|
27
|
+
warning: Warning information.
|
28
|
+
readonly: Specifies that the field cannot be modified by the user.
|
29
|
+
slug_sources: List of sources fields.
|
19
30
|
"""
|
20
31
|
|
21
32
|
def __init__( # noqa: D107
|
22
33
|
self,
|
23
34
|
label: str = "",
|
24
|
-
|
35
|
+
placeholder: str = "",
|
25
36
|
hide: bool = False,
|
37
|
+
disabled: bool = False,
|
26
38
|
ignored: bool = False,
|
27
39
|
hint: str = "",
|
28
40
|
warning: list[str] | None = None,
|
29
|
-
placeholder: str = "",
|
30
41
|
readonly: bool = False,
|
31
42
|
slug_sources: list[str] = ["_id"],
|
32
43
|
) -> None:
|
ramifice/fields/text_field.py
CHANGED
@@ -12,19 +12,36 @@ logger = logging.getLogger(__name__)
|
|
12
12
|
|
13
13
|
|
14
14
|
class TextField(Field, JsonMixin):
|
15
|
-
"""Field of Model for enter text.
|
15
|
+
"""Field of Model for enter text.
|
16
|
+
|
17
|
+
Agrs:
|
18
|
+
label: Text label for a web form field.
|
19
|
+
placeholder: Displays prompt text.
|
20
|
+
hide: Hide field from user.
|
21
|
+
disabled: Blocks access and modification of the element.
|
22
|
+
ignored: If true, the value of this field is not saved in the database.
|
23
|
+
hint: An alternative for the `placeholder` parameter.
|
24
|
+
warning: Warning information.
|
25
|
+
textarea: Is it necessary to use the Textarea widget.
|
26
|
+
use_editor: Is it necessary to use the widget of the text editor.
|
27
|
+
required: Required field.
|
28
|
+
readonly: Specifies that the field cannot be modified by the user.
|
29
|
+
unique: The unique value of a field in a collection.
|
30
|
+
maxlength: The maximum line length.
|
31
|
+
multi_language: Is it need support for several languages.
|
32
|
+
"""
|
16
33
|
|
17
34
|
def __init__( # noqa: D107
|
18
35
|
self,
|
19
36
|
label: str = "",
|
20
|
-
|
37
|
+
placeholder: str = "",
|
21
38
|
hide: bool = False,
|
39
|
+
disabled: bool = False,
|
22
40
|
ignored: bool = False,
|
23
41
|
hint: str = "",
|
24
42
|
warning: list[str] | None = None,
|
25
43
|
textarea: bool = False,
|
26
44
|
use_editor: bool = False,
|
27
|
-
placeholder: str = "",
|
28
45
|
required: bool = False,
|
29
46
|
readonly: bool = False,
|
30
47
|
unique: bool = False,
|
ramifice/fields/url_field.py
CHANGED
@@ -16,30 +16,30 @@ logger = logging.getLogger(__name__)
|
|
16
16
|
class URLField(Field, TextGroup, JsonMixin):
|
17
17
|
"""Field of Model for enter URL address.
|
18
18
|
|
19
|
-
|
20
|
-
label
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
required
|
29
|
-
readonly
|
30
|
-
unique
|
19
|
+
Agrs:
|
20
|
+
label: Text label for a web form field.
|
21
|
+
placeholder: Displays prompt text.
|
22
|
+
default: Value by default.
|
23
|
+
hide: Hide field from user.
|
24
|
+
disabled: Blocks access and modification of the element.
|
25
|
+
ignored: If true, the value of this field is not saved in the database.
|
26
|
+
hint: An alternative for the `placeholder` parameter.
|
27
|
+
warning: Warning information.
|
28
|
+
required: Required field.
|
29
|
+
readonly: Specifies that the field cannot be modified by the user.
|
30
|
+
unique: The unique value of a field in a collection.
|
31
31
|
"""
|
32
32
|
|
33
33
|
def __init__( # noqa: D107
|
34
34
|
self,
|
35
35
|
label: str = "",
|
36
|
-
|
36
|
+
placeholder: str = "",
|
37
|
+
default: str | None = None,
|
37
38
|
hide: bool = False,
|
39
|
+
disabled: bool = False,
|
38
40
|
ignored: bool = False,
|
39
41
|
hint: str = "",
|
40
42
|
warning: list[str] | None = None,
|
41
|
-
default: str | None = None,
|
42
|
-
placeholder: str = "",
|
43
43
|
required: bool = False,
|
44
44
|
readonly: bool = False,
|
45
45
|
unique: bool = False,
|
ramifice/models/__init__.py
CHANGED
ramifice/paladins/__init__.py
CHANGED
@@ -1,4 +1,19 @@
|
|
1
|
-
"""Paladins - Model instance methods.
|
1
|
+
"""Paladins - Model instance methods.
|
2
|
+
|
3
|
+
This module provides:
|
4
|
+
|
5
|
+
- `add_validation`: Contains an abstract method for additional validation of fields.
|
6
|
+
- `check`: Validation of Model data before saving to the database.
|
7
|
+
- `delete`: Delete document from database.
|
8
|
+
- `Hooks`: A set of abstract methods for creating hooks.
|
9
|
+
- `indexing`: Contains the method for indexing the model in the database.
|
10
|
+
- `password`: Verification, replacement and recoverang of password.
|
11
|
+
- `refrash_from_db`: Update Model instance from database.
|
12
|
+
- `save`: Create or update document in database.
|
13
|
+
- `Tools`: A set of auxiliary methods.
|
14
|
+
- `is_valid`: Validation of Model.
|
15
|
+
- `print_err`: Printing errors to console.
|
16
|
+
"""
|
2
17
|
|
3
18
|
__all__ = ("QPaladinsMixin",)
|
4
19
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ramifice
|
3
|
-
Version: 0.8.
|
3
|
+
Version: 0.8.26
|
4
4
|
Summary: ORM-pseudo-like API MongoDB for Python language.
|
5
5
|
Project-URL: Homepage, https://github.com/kebasyaty/ramifice
|
6
6
|
Project-URL: Documentation, https://kebasyaty.github.io/ramifice/
|
@@ -105,7 +105,7 @@ Online browsable documentation is available at [https://kebasyaty.github.io/rami
|
|
105
105
|
[](https://github.com/kebasyaty/ramifice/blob/v0/assets/UBUNTU_INSTALL_MONGODB.md)
|
106
106
|
[](https://www.mongodb.com/try/download/community)
|
107
107
|
|
108
|
-
|
108
|
+
1. Run:
|
109
109
|
|
110
110
|
```shell
|
111
111
|
# Fedora:
|
@@ -124,7 +124,6 @@ uv add ramifice
|
|
124
124
|
|
125
125
|
3. Add `config` and `public` directories in root of your project:<br>
|
126
126
|
[Download config directory](https://downgit.github.io/#/home?url=https://github.com/kebasyaty/ramifice/tree/main/config "Download config directory")
|
127
|
-
<br>
|
128
127
|
[Download public directory](https://downgit.github.io/#/home?url=https://github.com/kebasyaty/ramifice/tree/main/public "Download public directory")
|
129
128
|
|
130
129
|
## Usage
|
@@ -8,34 +8,34 @@ ramifice/commons/one.py,sha256=htcrIjwKTegwvLoA9KHVChCLzdwVJW0LZXUGLBMFE64,6979
|
|
8
8
|
ramifice/commons/tools.py,sha256=wBnJFibq3jW09vXywnP3MFGWCb2iLxWeDfwWBKf2b7g,2461
|
9
9
|
ramifice/commons/unit_manager.py,sha256=hDHmn3u0NDeIXxh0iCvaxN_stxtCAJVie-cWAZ6TK88,4968
|
10
10
|
ramifice/fields/__init__.py,sha256=hjqCZG_kKsHdHtSd05vHn9SiFpk-YSvKEsVFaXim5Sw,2360
|
11
|
-
ramifice/fields/bool_field.py,sha256=
|
12
|
-
ramifice/fields/choice_float_dyn_field.py,sha256=
|
13
|
-
ramifice/fields/choice_float_field.py,sha256=
|
14
|
-
ramifice/fields/choice_float_mult_dyn_field.py,sha256=
|
15
|
-
ramifice/fields/choice_float_mult_field.py,sha256=
|
16
|
-
ramifice/fields/choice_int_dyn_field.py,sha256=
|
17
|
-
ramifice/fields/choice_int_field.py,sha256=
|
18
|
-
ramifice/fields/choice_int_mult_dyn_field.py,sha256=
|
19
|
-
ramifice/fields/choice_int_mult_field.py,sha256=
|
20
|
-
ramifice/fields/choice_text_dyn_field.py,sha256=
|
21
|
-
ramifice/fields/choice_text_field.py,sha256=
|
22
|
-
ramifice/fields/choice_text_mult_dyn_field.py,sha256=
|
23
|
-
ramifice/fields/choice_text_mult_field.py,sha256=
|
24
|
-
ramifice/fields/color_field.py,sha256
|
25
|
-
ramifice/fields/date_field.py,sha256=
|
26
|
-
ramifice/fields/date_time_field.py,sha256=
|
27
|
-
ramifice/fields/email_field.py,sha256=
|
28
|
-
ramifice/fields/file_field.py,sha256=
|
29
|
-
ramifice/fields/float_field.py,sha256=
|
30
|
-
ramifice/fields/id_field.py,sha256=
|
31
|
-
ramifice/fields/image_field.py,sha256=
|
32
|
-
ramifice/fields/integer_field.py,sha256=
|
33
|
-
ramifice/fields/ip_field.py,sha256=
|
34
|
-
ramifice/fields/password_field.py,sha256=
|
35
|
-
ramifice/fields/phone_field.py,sha256=
|
36
|
-
ramifice/fields/slug_field.py,sha256=
|
37
|
-
ramifice/fields/text_field.py,sha256=
|
38
|
-
ramifice/fields/url_field.py,sha256=
|
11
|
+
ramifice/fields/bool_field.py,sha256=d3sKQWMAfEycgtBIhIIov2XVoqLbN8th8i3H7YLrNdg,2769
|
12
|
+
ramifice/fields/choice_float_dyn_field.py,sha256=e-i7CtmDVqWzRJJ5Pq4PmI69riHDPx9NX51h2qFsjEE,3912
|
13
|
+
ramifice/fields/choice_float_field.py,sha256=4oonFHhUdHCoEr5WTQ75kol0ugK73vrGgyp2sEc1NPI,4891
|
14
|
+
ramifice/fields/choice_float_mult_dyn_field.py,sha256=45nr0FoY9roO2pJ0FfzBIMu6ih5cl7_3NyKVwtUAHrA,3979
|
15
|
+
ramifice/fields/choice_float_mult_field.py,sha256=lCRFDlftuf8FnQxhw3pw543Aeo45dDJoHJOOlEUrnXc,5261
|
16
|
+
ramifice/fields/choice_int_dyn_field.py,sha256=qUAZivbZSmGYhoPo-vu9P0psEjj-ZtUWjmjYv9GY6yc,3904
|
17
|
+
ramifice/fields/choice_int_field.py,sha256=QwRt155knw0rK-VHwc6M2GlOyUmqgI2hGyJfjaicMQA,4877
|
18
|
+
ramifice/fields/choice_int_mult_dyn_field.py,sha256=QajFttWuw5Z_S_ik48zev83tVIiPOgHjzPFnxmkO_e4,3973
|
19
|
+
ramifice/fields/choice_int_mult_field.py,sha256=bA3IzVNivQLJlQlKR9ot4TnaQVAFvGTNLvCYe55UMqE,5253
|
20
|
+
ramifice/fields/choice_text_dyn_field.py,sha256=H_BGtTuNNGJdXDZmGGPpi-7c0GtDGJwkyNFbKScLs28,3895
|
21
|
+
ramifice/fields/choice_text_field.py,sha256=8oWCn0xX_mk6ZUICq1H-poTEAsTDgHPLQfCAZSNs-xI,5097
|
22
|
+
ramifice/fields/choice_text_mult_dyn_field.py,sha256=OrPZ-y2ihcJeLkTWJrcPgMijedq_5czbPEmISg1HdWU,3964
|
23
|
+
ramifice/fields/choice_text_mult_field.py,sha256=gw5vWxooWBp0-RbFNTs74_n7Ib_nS2hKjlYzDLgy9RU,5244
|
24
|
+
ramifice/fields/color_field.py,sha256=-ju_cJBzKSmcXsFQweePqNmF8VeIyaRJLwvl_ypOuVk,4505
|
25
|
+
ramifice/fields/date_field.py,sha256=pmn627RGLojnprr3KAEYWvaF8IZm3YsWFZHBR8CCuYQ,6315
|
26
|
+
ramifice/fields/date_time_field.py,sha256=AVtxkvs6MP6GnSQ5chImWETnJ57LEHJinTj05Xg1xiE,6372
|
27
|
+
ramifice/fields/email_field.py,sha256=zW908yFZH7mY98GrvsBvE1gwvRL_yP44yh_WJE9pKWU,4431
|
28
|
+
ramifice/fields/file_field.py,sha256=Hjv1R3DYO-BaBJIBcwZVLvGsdCsBHydy3rd1bljFxcA,9478
|
29
|
+
ramifice/fields/float_field.py,sha256=ePOO0GBjDFlWjieRItpVKkUbKeuAagBCeDNvvFCVEJs,5859
|
30
|
+
ramifice/fields/id_field.py,sha256=36VroZIgCH6uKuYjjWTXIycZ06ZGy4reLX6FhMUphCI,4757
|
31
|
+
ramifice/fields/image_field.py,sha256=wfBi4M0J6JAU4dTSmtOR0L3LUyf5L6QiDY8XK1TuOUg,13046
|
32
|
+
ramifice/fields/integer_field.py,sha256=p6dkzuTDjuBdi4K43m9-qRQGOXz4zNIz0x2fD1tm-Mk,5833
|
33
|
+
ramifice/fields/ip_field.py,sha256=ICf5hwGEnq5RiRiPKZZXm6WtdzEw4_TDLB7_1BYG-Vs,4335
|
34
|
+
ramifice/fields/password_field.py,sha256=lKELnyIjlAIJWeCR_3BCa0ZL5R0L73cf9zimigIgN3g,3902
|
35
|
+
ramifice/fields/phone_field.py,sha256=XIiJJGXXeOSjoB9n2qMmTH6vIB7pAgvh-CJakL_mX8A,4622
|
36
|
+
ramifice/fields/slug_field.py,sha256=Vvuug6TYOxmOaoDeqaFgu6MlMmaSgpXkS60juuGNvIE,3538
|
37
|
+
ramifice/fields/text_field.py,sha256=fBVxBzHwj7R0TiSXnidqA5XHJdEz16WShT6TGjC-B6g,5299
|
38
|
+
ramifice/fields/url_field.py,sha256=O0IG1NKljTCN8AXll0vAQgPE5dXHJPbxrkytI6zG3i0,4348
|
39
39
|
ramifice/fields/general/__init__.py,sha256=JzgIDseNQLB_IDwY9-JSiT_bONxvhJmbKl5PhQzTnpE,40
|
40
40
|
ramifice/fields/general/choice_group.py,sha256=RkYEuEl6wSazqhq2aDhUoKzKTEd54BgItpRy69rH93o,928
|
41
41
|
ramifice/fields/general/date_group.py,sha256=9fgLgyKhfVEwlCcQ87uRInmvWhwMoyfB5dT3Tq3wCPM,1229
|
@@ -43,10 +43,10 @@ ramifice/fields/general/field.py,sha256=tBU-9l_w1LW1EVRvu0qJn1ySk5y3BzzaUSeStIbM
|
|
43
43
|
ramifice/fields/general/file_group.py,sha256=97JqyUCKYGtvQfNOuUjOa5SIMuQ4V6I-rpmM5UDmS1E,1032
|
44
44
|
ramifice/fields/general/number_group.py,sha256=6Canht6VXXzp2lF-6R7uoWXbPufrjceYP74btOyzmzA,785
|
45
45
|
ramifice/fields/general/text_group.py,sha256=ofWj1d-9pKkbxARpXa2xQ6ANY3fiLtJUaFPp0vsDiT4,1123
|
46
|
-
ramifice/models/__init__.py,sha256=
|
46
|
+
ramifice/models/__init__.py,sha256=I4p5Y_oHG9ZLZ3vR44PpCGGvB-C2W7fSQPb5qJsm-VQ,178
|
47
47
|
ramifice/models/decorator.py,sha256=uIjJ3uww0Ac7ufFn4VMqlA_8eP1I6oIhz5gRnDnH2w8,6396
|
48
48
|
ramifice/models/model.py,sha256=qH21L7sDmJxbMz5UygHPCJhWgL52snFV_BRN-GchV00,7711
|
49
|
-
ramifice/paladins/__init__.py,sha256=
|
49
|
+
ramifice/paladins/__init__.py,sha256=bFr12UzadCCpuIkGSd6reeIeQ5td8W7LfckduP84WXc,1517
|
50
50
|
ramifice/paladins/add_valid.py,sha256=NbRDEjetY0Pp3qoLzM5QUYI8ydkiXav_iOnqJUIwcRw,430
|
51
51
|
ramifice/paladins/check.py,sha256=UHGlyZqZVq200Iv7BpRphf8LfREzV3X5EkdoqSuDqsg,6935
|
52
52
|
ramifice/paladins/delete.py,sha256=k3N2qlaHZLWtFUTqWvtkYaqW9h3uK7ecpLjKr5gfoGE,3690
|
@@ -77,7 +77,7 @@ ramifice/utils/mixins.py,sha256=XSkxJllqsMxN7xcP_9kn3-GRS4a1l_QQpFOlD3e-tIM,1123
|
|
77
77
|
ramifice/utils/tools.py,sha256=EPFINdgAJgewwQ9OErLEX8_z-_soQckyX7FsA7eRvyQ,3147
|
78
78
|
ramifice/utils/translations.py,sha256=XlMcTRnDDxABxkBbFQY6Lg96IDuYoJUVSvPPWdeZNe8,4646
|
79
79
|
ramifice/utils/unit.py,sha256=7alJuqY6vmYVZtumND6yMSJQDgarqMdRHXTyC6ULh4M,2550
|
80
|
-
ramifice-0.8.
|
81
|
-
ramifice-0.8.
|
82
|
-
ramifice-0.8.
|
83
|
-
ramifice-0.8.
|
80
|
+
ramifice-0.8.26.dist-info/METADATA,sha256=O1WjnKMIkWsj1rch2lKpUIcfgnLnF_MoBafyW2-4Yq8,21081
|
81
|
+
ramifice-0.8.26.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
82
|
+
ramifice-0.8.26.dist-info/licenses/LICENSE,sha256=LrEL0aTZx90HDwFUQCJutORiDjJL9AnuVvCtspXIqt4,1095
|
83
|
+
ramifice-0.8.26.dist-info/RECORD,,
|
File without changes
|
File without changes
|