Task #1580 (closed)
Unify all command-line logins
Reported by: | jamoore | Owned by: | jamoore |
---|---|---|---|
Priority: | major | Milestone: | OMERO-Beta4.2 |
Component: | Deployment | Version: | 3.0-M1 |
Keywords: | n.a. | Cc: | cxallan, dzmacdonald, carlos@… |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | 0.0d |
Sprint: | 2010-03-05 (4) |
Description (last modified by jmoore)
Currently there are a host of scripts, all of which require a different way to log in:
- -s, -u, -w
- -h, -u, getpass()
- --sudo --sudopass
- bin/omero config set
- ...
These should be unified. Preferably, all would re-use an existing session if available:
$ bin/omero login [-s localhost] -p 4063 [-u name ...] Server: Username [bob]: Password:
and all would take the same options. Scripts involved:
- omero/plugins/import.py (special because in Java)
- omero/plugins/export.py
- omero/plugins/download.py
- omero/adduser.py
- omero/util/populate_roi.py
Be sure to see:
Change History (13)
comment:1 Changed 14 years ago by jmoore
- Description modified (diff)
comment:2 Changed 14 years ago by jmoore
- Description modified (diff)
comment:3 Changed 14 years ago by jmoore
comment:4 Changed 14 years ago by jmoore
- Sprint set to Sprint 2
- Type changed from User Story to Task
Will need to do some of this for script reworking.
comment:5 Changed 14 years ago by jmoore
- Status changed from new to assigned
comment:6 Changed 14 years ago by jmoore
- r6184 : ticket:1580 - Rework of OmeroCli Arguments infrastructure incl. logins
- r6185 : ticket:1580 - Improved OmeroCli sessions plugin plus tests
- r6193 : ticket:1580 - Conversion to argparse for OmeroCli login handling
comment:7 Changed 14 years ago by jmoore
- Cc carlos@… added
r6204 corrects an issue with bin/omero import reported by Carlos.
comment:8 Changed 14 years ago by jmoore
r6205 adds missing file omero/util/sessions.py
comment:9 Changed 14 years ago by jmoore
- Remaining Time set to 0.5
Need to unify the non-plugins now.
comment:10 Changed 14 years ago by wmoore
- Sprint changed from 2010-02-19 (3) to 2010-03-05 (4)
comment:11 Changed 14 years ago by jmoore
- Remaining Time changed from 0.5 to 0.25
- r6212 corrects the login feature and updates all scripts except for populate_roi.py
comment:12 Changed 14 years ago by jmoore
- Remaining Time changed from 0.25 to 0
- Resolution set to fixed
- Status changed from assigned to closed
r6001 adds the "-w" option to the 4.1 branch. In trunk (4.2), the options may be changed.