Don't throw an error if library.cell_line is None.
authorDiane Trout <diane@caltech.edu>
Thu, 21 Jan 2010 22:25:09 +0000 (22:25 +0000)
committerDiane Trout <diane@caltech.edu>
Thu, 21 Jan 2010 22:25:09 +0000 (22:25 +0000)
commit3d72e1d85b0153a3ed9bc454826fb2fe7b817efa
tree07be779e48ba5409846f307cf2370674b86c0898
parent7d34fa0d67a0aa883d8c1f1af20a131f856ad533
Don't throw an error if library.cell_line is None.

The API was having problems where if the cell_line wasn't set it was
trying to do None.cellline_name, which didn't work so well.

In addition there were a few other type conversion issues, such as
unicode(None) != None.

So I added unicode_or_none
htsworkflow/frontend/experiments/tests.py
htsworkflow/frontend/samples/fixtures/test_samples.json
htsworkflow/frontend/samples/tests.py
htsworkflow/frontend/samples/views.py
htsworkflow/util/conversion.py [new file with mode: 0644]