-
Notifications
You must be signed in to change notification settings - Fork 161
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
AssertionError: assert(len(cstruct) == len(field.sequence_fields)) #359
Comments
I just ran into the same problem (Python 3.6, deform 2.0.5, same versions for the rest). It made my Python pserve instance crash completely. I am wondering what is the cause of the issue... |
Actually, this appeared because my model was defining a field which did not exist in the database, so my fault, sorry for the noise. |
|
Yeah... I though exactly the same, but from my point of view, it is not a blocker, it a missing coverage... |
@thomie @kalbermattenm I recently took on the role of maintainer for Deform. I'd accept a PR that returns a nice error message and provides a test. Here's one option to consider: Lines 1426 to 1428 in 3329bb1
and add right after that:
Would that do what you want? |
Yes, something like that... I lost a bit track of it, so I am not sure where exactly to put it... |
Same for me. I've not used @stevepiercy: thanks for taking over maintainership. |
Cool! Well, if y'all want to try it out, place those two lines of code in your checkout of Deform in Would y'all please submit a PR with a test to cover this, using your excellent example above? We have overhauled how to get started with Deform, too, making it much easier to be a contributor. See https://github.com/Pylons/deform/blob/master/contributing.md for detailed step-by-step instructions. If you get stuck, I'm here to help. Finally I'm doing tiny incremental releases of Deform now, so there's a good chance I will include contributions within a day or two of them getting merged to |
Running the following program results in an
AssertionError
indeform/widget.py
.Uncommenting either of the two commented out lines prevents the problem.
Versions used:
The text was updated successfully, but these errors were encountered: