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

client API signature #6

Open
lingyunzjdt opened this issue Sep 8, 2015 · 0 comments
Open

client API signature #6

lingyunzjdt opened this issue Sep 8, 2015 · 0 comments

Comments

@lingyunzjdt
Copy link

Instead of this

cf = ChannelFinderClient(BaseURL = 'http://channelfinder.nsls2.bnl.gov:8080/ChannelFinder', username='boss', password='1234')

# set one tag
tag = Tag('example1', 'vioc')
cf.set(tag=tag)

# set a set of tags
tags = [Tag('example2', 'vioc'), Tag('example3', 'vioc'), Tag('example4', 'vioc'), Tag('example5', 'vioc')]
cf.set(tags=tags)

Can we move usergroup "vioc" into ChannelFinderClient Creating and using default group when not provided:

cf = ChannelFinderClient(BaseURL = 'http://channelfinder.nsls2.bnl.gov:8080/ChannelFinder', username='boss', password='1234', groupname="vioc")

# set one tag
tag = Tag('example1')
cf.set(tag=tag)

# set a set of tags
tags = [Tag('example2'), Tag('example3'), Tag('example4'), Tag('example5')]
cf.set(tags=tags)

Most of the time, I do not care about my groupname or I do not even know my default group name.

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

1 participant