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

Problem with Gateway in Python3.X #6

Open
ptitloup opened this issue May 16, 2018 · 2 comments
Open

Problem with Gateway in Python3.X #6

ptitloup opened this issue May 16, 2018 · 2 comments

Comments

@ptitloup
Copy link

File : django_cas/views.py in _service_url L.51
Problem : can only concatenate list (not "generator") to list

Fixed by :

  • L.43 query_list = query_dict.items()
    +L.43 query_list = list(query_dict.items())
@agrausem
Copy link

We can replace this part of code (l.42 → l.49) :

query_list = query_dict.items()
 #remove duplicate params
 for item in query_list:
      for index, item2 in enumerate(gateway_params):
          if item[0] == item2[0]:
              gateway_params.pop(index)
 extra_params = gateway_params + query_list

by this one :

extra_params = set(gateway_params).union(set(query_dict.items()))

I'll make the changes in a dedicated branch and let you test the fix.
Thanks for the report

@ptitloup
Copy link
Author

ptitloup commented May 17, 2018 via email

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