-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #328 from MasoniteFramework/fix-multi-form-values
added hotfix for multi select values
- Loading branch information
Showing
6 changed files
with
169 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
from .static import static | ||
from .password import password | ||
from .validator import validate | ||
from .misc import dot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
def dot(data, compile_to=None): | ||
notation_list = data.split('.') | ||
|
||
compiling = "" | ||
compiling += notation_list[0] | ||
beginning_string = compile_to.split('{1}')[0] | ||
compiling = beginning_string + compiling | ||
dot_split = compile_to.replace(beginning_string + '{1}', '').split('{.}') | ||
if any(len(x) > 1 for x in dot_split): | ||
raise ValueError("Cannot have multiple values between {1} and {.}") | ||
|
||
for notation in notation_list[1:]: | ||
compiling += dot_split[0] | ||
compiling += notation | ||
compiling += dot_split[1] | ||
return compiling |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
"""Module for specifying the Masonite version in a central location. | ||
""" | ||
|
||
VERSION = '2.0.21' | ||
VERSION = '2.0.22' |
Oops, something went wrong.