Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make parent formid a part of autogenerated oid #520

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ezag
Copy link

@ezag ezag commented Jun 11, 2021

Better late then never :) #394

@ezag ezag changed the title Make parent formid a part of autorenerated oid Make parent formid a part of autogenerated oid Jun 11, 2021
@stevepiercy
Copy link
Member

@ezag lint is failing. Would you please run tox -e format, commit, and push?

I'll do a detailed review once GitHub Actions passes.

@stevepiercy
Copy link
Member

@ezag additionally the functional tests must pass. Please let me know if you need assistance with that part. It can be tricky because deformdemo is in a separate repository.

@ezag
Copy link
Author

ezag commented Jun 13, 2021

@stevepiercy thanks, looks like there's plenty of instructions on setting up & running the functional tests - I'm going to get to it in a while

deform/tests/test_form.py Outdated Show resolved Hide resolved
@stevepiercy
Copy link
Member

Would you also please run black over the code base with tox format, commit, and push to this PR? That should resolve at least the lint build error.

@ezag
Copy link
Author

ezag commented Oct 22, 2021

@stevepiercy added meaningful test name and applied tox format; also updated related functional test Pylons/deformdemo#120

@stevepiercy
Copy link
Member

@ezag it looks like GitHub Actions deprecated pypy3 on macos-latest. Would you please rebase your branch on main to add the changes I just made to your branch and push?

Copy link
Member

@stevepiercy stevepiercy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a couple of questions, now that I took a little more time to look at this. Would you please respond to them? Thank you!

deform/field.py Outdated Show resolved Hide resolved
@@ -139,6 +139,7 @@ def __init__(
# Use kwargs to pass flags to descendant fields; saves cluttering
# the constructor
kw["focus"] = self.focus
self.formid = formid
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason you moved this line? I don't understand why it was moved.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The formid should be set prior to children initialization, since Field.__init__ does rely on it.

@ezag
Copy link
Author

ezag commented Oct 23, 2021

@stevepiercy rebased on up-to-date main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants