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

simpleterm creation #10

Closed
iham opened this issue Sep 28, 2017 · 4 comments
Closed

simpleterm creation #10

iham opened this issue Sep 28, 2017 · 4 comments

Comments

@iham
Copy link

iham commented Sep 28, 2017

https://github.com/collective/collective.roster/blob/master/src/collective/roster/behaviors/groups.py#L82

why is the token derived from group (which is a tuple ) instead of normalizing the title or the id?

i use "id_from_normalized_groupname | groupname" for the roster groups.

on testing the value of the checkboxes are value="normalized_groupname-normalized_groupname" which is redundant... and somewhat hard to test...

wouldn't it be nicer to just normalize the title (the second part of the group tuple) for the token or use the plain id (first part of tuple)?

i wouldn't mind, spending that time, if there are no problems i don't see.

regards, iham

@datakurre
Copy link
Contributor

For no good reason, I believe.

I suspect its just an artifact from the very first versions where groups were define by just titles and there was no support for | separator. When I added | separator, I did not update token formula.

Probably normalized version of "value" would work fine.

iham pushed a commit that referenced this issue Sep 29, 2017
iham pushed a commit that referenced this issue Sep 29, 2017
@iham
Copy link
Author

iham commented Sep 29, 2017

i am fine with "value" too and will implement it that way.

done.

@datakurre can you publish it on pypi?

@datakurre
Copy link
Contributor

datakurre commented Sep 29, 2017 via email

@datakurre
Copy link
Contributor

@iham Released 2.2.1. Took some time to fix issues on test setup.

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

2 participants