pycontribs / python-crowd

A python client to the Atlassian Crowd REST API. ❗️seeking-new-maintainer
https://github.com/pycontribs/python-crowd
BSD 2-Clause "Simplified" License
45 stars 41 forks source link

Implemented search #24

Closed TinHead closed 8 years ago

TinHead commented 10 years ago

Hi,

We needed to be able to search for users in order to get an user list, so I implemented it. If you think it is of use, here is the pull request.

Regards, Razvan Lixandru Devops Engineer Optaros

ssbarnea commented 10 years ago

I think that you change failed with py3.3

TinHead commented 10 years ago

Aww yes did not test with 3.3 :/ will do.

aelse commented 8 years ago

This broke in python3 but in python2 i didn't get the expected behaviour. I was getting all users for any email address i searched.

Refactored this to work with python 3, support group search, and POSTs xml search payload per the Crowd API docs.

To get the same (expected) behaviour before and after refactor:

search_string = '@example.com'

# before changes
search(search_string)

# after changes
search('user', 'email', search_string)