Skip to content

client API signature #6

Description

@lingyunzjdt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions