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

tzname_widget broken under Python3 #313

Closed
tseaver opened this issue Sep 1, 2024 · 0 comments · Fixed by #314
Closed

tzname_widget broken under Python3 #313

tseaver opened this issue Sep 1, 2024 · 0 comments · Fixed by #314
Assignees
Labels

Comments

@tseaver
Copy link
Member

tseaver commented Sep 1, 2024

Cannot add or edit a prinicpal, because:

...
  File "mapping_item_6251f2e4a314675b630112ec7f5df3b9.py", line 465, in render
  File "/home/tseaver/projects/byelizabeth/substanced-buildout/eggs/deform-2.0.15-py3.11.egg/deform/field.py", line 626, in serialize
    return self.widget.serialize(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tseaver/projects/byelizabeth/substanced-buildout/eggs/deform-2.0.15-py3.11.egg/deform/widget.py", line 1167, in serialize
    raise TypeError(e)
TypeError: Values must be a sequence type (list, tuple, or range).

values in this case is the result calling zip(_ZONES, _ZONES), which returns an instance of the builtin type zip: not one of the "allowed" value types for deform.widget.SelectWidget.serialize (must be list, tuple, or range).

@tseaver tseaver added the bug label Sep 1, 2024
@tseaver tseaver self-assigned this Sep 1, 2024
tseaver added a commit that referenced this issue Sep 1, 2024
'deform.widget.SelectWidget.serialize' insists it must be an instance
of 'list', 'tuple', or 'range'.

Closes #313.
@tseaver tseaver closed this as completed in d743351 Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant