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

Error when using SelectMultipleField styled as checkboxes #11

Open
markosski opened this issue May 20, 2015 · 7 comments
Open

Error when using SelectMultipleField styled as checkboxes #11

markosski opened this issue May 20, 2015 · 7 comments

Comments

@markosski
Copy link

I'm using multi-checkbox form element following solution from http://wtforms.simplecodes.com/docs/1.0.1/specific_problems.html (bottom of the page)
I'm getting this error:
File ".../python3.4/site-packages/wtformsparsleyjs/core.py", line 292, in __init__ super(SelectMultipleField, self).__init__(widget=Select(multiple=True), *args, **kwargs) TypeError: __init__() got multiple values for keyword argument 'widget'

I don't quite understand why there is a need to overwrite default widgets from parent classes?

@fuhrysteve
Copy link

Hey @martez81

I'm not sure whether this will solve your issue, but I've been maintaining a fork over here: https://github.com/fuhrysteve/wtforms-parsleyjs

As it stands, the main fork has some issues with wtforms >= 2 and there are a handful of other bugfixes / improvements over there.

@markosski
Copy link
Author

@fuhrysteve
Thanks for quick reply. I am actually using your fork where I'm experiencing this error. Original repo doesn't implement multi-select field and there was additional error with Optional validators. I posted this on this repo because you don't seem to have issues enabled on yours :)

@johannes-gehrs
Copy link
Owner

guys, I have maintained this project very poorly. @fuhrysteve I can offer you either to mark this as unmaintained in the Readme and send people over to your fork or give you full write access so that you can merge in the changes from your fork.

What would you prefer?

@fuhrysteve
Copy link

Hey @johannes-gehrs - No worries, we all have projects we can't afford to give the attention they deserve.

I guess you could just point folks to my fork in the readme - this is a small enough library, no need to over-complicate it. Thanks!

@fuhrysteve
Copy link

@martez81 I've enabled issues! Thanks!

@markosski
Copy link
Author

@fuhrysteve I will reply this issue on your repo, will try to put some time to investigate this. thanks.

@SmileyJames2
Copy link

@mArtez You are likely the first maybe second user of that code with the exception of myself, so expect it to be a little buggy, but please post issues hopefully we will get round to solving them.

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

No branches or pull requests

4 participants