Skip to content

Commit

Permalink
Mention that empty login names & passwords are accepted
Browse files Browse the repository at this point in the history
  • Loading branch information
mhucka committed Dec 19, 2018
1 parent c875a02 commit 732e330
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Version 1.5.0
-------------

* Store login & password on a per-server basis, instead of (as previously) a single login & password for all servers
* Accept empty user names and passwords for EPrints servers that don't need them
* Fix handling lack of `official_url` elements in EPrints records
* Change how thumbnail images and other files are identified for a given record, by looking at the `<relation>` element to see if it is `isVolatileVersionOf`
* Make sure to write files in UTF-8 format regardless of whether the user's environment variables are set properly. (Previously, having set `LC_ALL` to an unusual value would result in an error such as `'ascii' codec can't encode character '\u2019' in position 3540: ordinal not in range(128)`.)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ A program for downloading records from an EPrints server and creating [BagIt](ht
🏁 Log of recent changes
-----------------------

_Version 1.5.0_: `eprints2bags` now determines which derived files to ignore for a given record by looking at the `<relation>` element for each document, and checking if the relationship is `isVolatileVersionOf`. This makes it possible to ignore thumbnail images no matter what format or file name they have. It also now stores user login & password information on a per-server basis, instead of (as previously) using a single login & password for all servers.
_Version 1.5.0_: `eprints2bags` now determines which derived files to ignore for a given record by looking at the `<relation>` element for each document, and checking if the relationship is `isVolatileVersionOf`. This makes it possible to ignore thumbnail images no matter what format or file name they have. It also now stores user login & password information on a per-server basis, instead of (as previously) using a single login & password for all servers, and accepts empty user names and passwords in case an EPrints server does not need them.

The file [CHANGES](CHANGES.md) contains a more complete change log that includes information about previous releases.

Expand Down
13 changes: 8 additions & 5 deletions eprints2bags/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,10 @@ def main(api_url = 'A', base_name = 'B', final_fmt = 'F', id_list = 'I',
does not have to ask again in the future. It is also possible to supply the
information directly on the command line using the -u and -p options (or /u
and /p on Windows), but this is discouraged because it is insecure on
multiuser computer systems.
multiuser computer systems. If a given EPrints server does not require a user
name and password, do not use -u or -p and leave the values blank when
prompted for them by eprints2bags. (Empty user name and password are allowed
values.)
To reset the user name and password (e.g., if a mistake was made the last
time and the wrong credentials were stored in the keyring/keychain system),
Expand All @@ -173,10 +176,10 @@ def main(api_url = 'A', base_name = 'B', final_fmt = 'F', id_list = 'I',
password again even if an entry already exists in the keyring or keychain.
This program will print messages as it works. To reduce the number of messages
to warnings and errors, use the option -q (or /q on Windows). The output will
be color-coded unless the -C option (or /C on Windows) is given; this option
can be helpful if the color control signals create problems for your terminal
emulator.
to warnings and errors, use the option -q (or /q on Windows). Also, output
is color-coded by default unless the -C option (or /C on Windows) is given;
this option can be helpful if the color control signals create problems for
your terminal emulator.
Beware that some file systems have limitations on the number of
subdirectories that can be created, which directly impacts how many record
Expand Down

0 comments on commit 732e330

Please sign in to comment.