VUIIS/dax — pull request #3 by byvernault (2014-11-20 00:07:43+00:00)
Title: Dax manager

Hi,

A lot of updates and commits for the week. This branch is first of all for the introduction of dax_manager. A script to run/manage settings and dax_update,dax_update_open_tasks that needs to run.

Other new features:
1) XnatCheckLogin in Xnat_tools to check logins set or set your logins in your computer if you need
2) dax_update and dax_updates_open_tasks have new options like dax_update running on one project few sessions.
3) logging for every print statement: minimun or debug if ask when running script (options --debug)
4) adding NO_DATA status in Xnatquery --info
5) Xnatprocessupload has new options to upload only a resource to an assessor using the csv options
6) adding new settings in dax_settings for email, redcap for managing, etc...
7) New files:
- bin.py with the function corresponding to dax_update and dax_update_open_tasks and to upload info to redcap.
- log.py for the logging new features

Bugs Fix:
1) fixing bugs in Xnat_tools (e.g: list_project_assessors avoid the assessor without label that was giving an error for some project with "ghost" assessors which have no label,etc... )
2) fixing -r in zip command when uploading a folder (add to the zip all the subfolder)

You can test this branch and push when you are good with it.
IMPORTANT: All processors and modules we used need to be updated.

Best,

--Ben--

P.S: Two things to test this:
-you need to have SMTP_FROM and SMTP_PASS in your bashrc or set in dax_settings if you want to get emails.
-you need to add API_KEY_DAX to use dax_manager with redcap.