Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffersonBledsoe committed Jan 21, 2025
1 parent 880a256 commit 25a992f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

setup(
name="collective.volto.formsupport",
version="3.2.2.dev4",
version="3.2.2.dev5",
description="Add support for customizable forms in Volto",
long_description=long_description,
# Get more from https://pypi.org/classifiers/
Expand Down
4 changes: 4 additions & 0 deletions src/collective/volto/formsupport/adapters/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def __call__(self):

filtered_fields = self.filter_parameters()

breakpoint()

errors = {}
for field in filtered_fields:
show_when = field.show_when_when
Expand Down Expand Up @@ -283,6 +285,7 @@ def filter_parameters(self):

def format_fields(self):
fields_data = []
breakpoint()
for submitted_field in self.form_data.get("data", []):
# TODO: Review if fields submitted without a field_id should be included. Is breaking change if we remove it
if submitted_field.get("field_id") is None:
Expand Down Expand Up @@ -327,4 +330,5 @@ def format_fields(self):
"validations": validations_for_field,
}
)
breakpoint()
return construct_fields(fields_data)
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def __init__(self, context, request):
self.block = self.get_block_data(block_id=self.block_id)

def reply(self):
breakpoint()
store_action = self.block.get("store", False)
send_action = self.block.get("send", [])

Expand Down Expand Up @@ -185,6 +186,7 @@ def get_subject(self):
return subject

def send_data(self):
breakpoint()
subject = self.get_subject()

mfrom = self.form_data.get("from", "") or self.block.get("default_from", "")
Expand Down

0 comments on commit 25a992f

Please sign in to comment.