-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of http://github.com/mytardis/mytardis into de…
…velop * 'develop' of http://github.com/mytardis/mytardis: (35 commits) encode utf-8 for haystack indexing 3.7 release docs requirements.txt update docs link fix misplaced text build.sh update docs restructure and update After the Facility Overview's latest datasets are initially sorted by dataset id descending, this ordering was being overwritten by sorting in the groupBy methods. This commit addresses this by cloning the data before sorting in the groupBy methods. Add SFTP_USERNAME_ATTRIBUTE to default_settings so that it's documented. Use SFTP_USERNAME_ATTRIBUTE setting for login name in Cyberduck screenshot. Adding libfreetype6-dev to Ubuntu dependencies so Pillow builds with support, fixes /sftp_access Cyberduck image. preview_image_par should be initialized. If RENDER_IMAGE_SIZE_LIMIT is 0 or missing from settings, it should not be applied. Better use of the RENDER_IMAGE_SIZE_LIMIT setting. If we have generated a (small) preview image using a filter and saved it in a DatafileParameter, then there is no need to exclude that DataFile from the preview images, even if the original DataFile's file size is large. Instead of excluding it, we just need to ensure that DataFile's get_image_data method doesn't return a file object for a large file. It should either return a file object for a small image file, or None. Bug fix - correctly process some RAPID_CONNECT_* settings, raise an exception if misconfigured. default limit on carousel image number Max number of images in carousel is now configurable. get_images.count can be slow for large datasets. Casting size to BIGINT is no longer necessary. Addressing the part of Issue #595 which relates to counting and loading of preview images. (Not addressing the is_online part of that issue.) For a dataset with 125,550 datafiles, running exists() on the QuerySet takes a fraction of a second, whereas testing if get_images.count() > 0 takes several minutes. ...
- Loading branch information
Showing
122 changed files
with
1,013 additions
and
4,128 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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,14 @@ | ||
==================== | ||
Database Maintenance | ||
==================== | ||
|
||
Initialising | ||
------------ | ||
|
||
When creating a new database the ``syncdb`` command will need to be | ||
called to initialise the schema and insert the initial data fixtures. | ||
|
||
Usage | ||
~~~~~ | ||
``python mytardis.py syncdb --noinput --all`` | ||
|
||
Migrating | ||
--------- | ||
|
||
Some of the upgrades to MyTARDIS will require that the database schema | ||
be upgraded to match the internal data model. This tool migrates data | ||
from old database schemas to the current one. It detects which version | ||
of the database you are currently running and will automatically | ||
migrate to the current version. If you decided not to use South for | ||
migrating the data models and have removed it from the list of | ||
INSTALLED_APPS in the settings.py file, you could skip this step and | ||
go on initiating an administrator account with Django createsuperuser | ||
which is described in more detail below. | ||
|
||
In certain cases it is also necessary to update the permissions table. | ||
|
||
Usage | ||
~~~~~ | ||
|
||
Intial migration after ``syncdb --all``:: | ||
|
||
python mytardis.py migrate --fake | ||
|
||
Then:: | ||
|
||
python mytardis.py migrate | ||
|
||
If the model changes require it, run:: | ||
|
||
python mytardis.py update_permissions | ||
|
||
|
||
creating superuser | ||
------------------ | ||
|
||
After success of database initialization or migration, please use a | ||
command line utility called ``createsuperuser`` to create an | ||
administrator account using the admin site which is hooked to the URL | ||
/admin/. | ||
|
||
Usage | ||
~~~~~ | ||
|
||
``python mytardis.py createsuperuser`` | ||
|
||
Backup | ||
------ | ||
|
||
The backupdb command allows to backup and to restore of the MyTARDIS | ||
database. The command uses the corresponding database tool to | ||
facilitate this task. Currently implemented are PostgreSQL and | ||
MySQL. In case of backup, a directory called ``backups`` is created | ||
(if it does not exists) in the working directory. In case of restore, | ||
the database for storing the tablespace must already exist before | ||
loading the backup file into the database. | ||
|
||
Usage | ||
~~~~~ | ||
``python mytardis.py backupdb`` | ||
|
||
.. option:: -r FILE, --restore=FILE | ||
.. option:: -v VERBOSITY, --verbosity=VERBOSITY | ||
.. option:: --settings=SETTINGS | ||
.. option:: --pythonpath=PYTHONPATH | ||
.. option:: --traceback | ||
.. option:: --version | ||
.. option:: -h, --help | ||
================================ | ||
Configuration and Administration | ||
================================ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
admin/install | ||
admin/authentication | ||
admin/filters | ||
admin/database | ||
admin/metadata | ||
admin/searchsetup | ||
admin/storage |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
|
||
.. _dev-authentication: | ||
|
||
Authentication Methods | ||
====================== | ||
|
||
|
||
Users | ||
----- | ||
|
||
MyTardis supports several sources of authentication and identity, referred to | ||
as user providers. | ||
|
||
In the *settings.py* user providers are activated by specifying them | ||
within the **USER_PROVIDERS** variable:: | ||
|
||
USER_PROVIDERS = ('tardis.tardis_portal.auth.localdb_auth.DjangoUserProvider',) | ||
|
||
Groups | ||
------ | ||
|
||
MyTardis also supports several sources for group membership information, | ||
referred to as group providers. | ||
|
||
In the *settings.py* group providers are activated by specifying them | ||
within the **GROUP_PROVIDERS** variable:: | ||
|
||
GROUP_PROVIDERS = ('tardis.tardis_portal.auth.localdb_auth.DjangoGroupProvider', | ||
'tardis.tardis_portal.auth.vbl_auth.VblGroupProvider',) | ||
|
||
|
||
Included Auth Plugins | ||
--------------------- | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
auth_httpbasicendpoint | ||
auth_ldap | ||
auth_tokenauth | ||
|
||
* :py:mod:`tardis.tardis_portal.auth.ip_auth` | ||
|
||
The :doc:`../pydoc/tardis.tardis_portal.auth` module contains the authentication | ||
specific code. | ||
|
Oops, something went wrong.