-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
omics/tables: Fix missing links for Globus-downloadable files for som…
…e deployment configurations The link display wrongly depended on the PUBLIC_DATA_ROOT setting being set. But it should only matter whether File.public is non-empty. This patch changes the File.relpublic property (and also File.relpath to match) making those independent of any settings. The somewhat complicating factor is that the DB only stores the relative paths but if OMICS_DATA_ROOT / PUBLIC_DATA_ROOT are set then mibios.umrad.PathField will always prepend the root dir and we have to conditionally run relative_to() to get the relative path back. Leaving the default settings as-is even if OMICS_DATA_ROOT as ./ is not a good choice. The production deployment should leave both default settings; in both cases getting back the relative paths works. This closes #60.
- Loading branch information
Showing
4 changed files
with
24 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters