Compare commits
62 Commits
features/c
...
features/w
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
754b84b4d7 | ||
|
|
572690e2bc | ||
|
|
303e34299a | ||
|
|
c628de9ede | ||
|
|
e73be6bbab | ||
|
|
c9fd8b02e3 | ||
|
|
e1a63064dc | ||
|
|
42db8255d1 | ||
|
|
14d45cbe90 | ||
|
|
75be11bc96 | ||
|
|
ebf29d0eed | ||
|
|
a391d27b44 | ||
|
|
753c9b8b4b | ||
|
|
744bfefa5c | ||
|
|
850fb16c8c | ||
|
|
72ba805fbb | ||
|
|
3d7b40f029 | ||
|
|
2039a9f13b | ||
|
|
bb8f12dd7a | ||
|
|
40ab1f3665 | ||
|
|
fdef757fd0 | ||
|
|
3608ee1141 | ||
|
|
7fb3d61dff | ||
|
|
e9aa11673b | ||
|
|
03a7aa5daf | ||
|
|
755f20c5c4 | ||
|
|
64772e2e90 | ||
|
|
75a4a426e0 | ||
|
|
42a7ebeea2 | ||
|
|
3d22f48555 | ||
|
|
488e048d8f | ||
|
|
2f82559a5c | ||
|
|
7d5b7b9fc4 | ||
|
|
7aa68b8bbf | ||
|
|
aecde926f2 | ||
|
|
6b95628e56 | ||
|
|
56a1b97b46 | ||
|
|
34a5a54c8b | ||
|
|
0c17ab3f8a | ||
|
|
c967a25f82 | ||
|
|
7562588c42 | ||
|
|
a1a706b7b9 | ||
|
|
d623cb2df5 | ||
|
|
488ddcf1e1 | ||
|
|
3d39893f17 | ||
|
|
3694839d97 | ||
|
|
cce27aceca | ||
|
|
c73d251370 | ||
|
|
091f0d1cfd | ||
|
|
d2affdcf21 | ||
|
|
885d430b98 | ||
|
|
39eabe1c54 | ||
|
|
f6ad579829 | ||
|
|
6fc9e46882 | ||
|
|
2d326a679d | ||
|
|
aa8c2db446 | ||
|
|
925b55d76d | ||
|
|
5808d3653d | ||
|
|
bc072f7b7e | ||
|
|
b3d59eee39 | ||
|
|
7d379a52af | ||
|
|
499ab1f3e7 |
@@ -63,6 +63,7 @@ job_docker_nightly:
|
|||||||
only:
|
only:
|
||||||
- nightly
|
- nightly
|
||||||
- staging
|
- staging
|
||||||
|
- /^clients\/.+$/
|
||||||
|
|
||||||
job_documentation_build:
|
job_documentation_build:
|
||||||
stage: build_documentation
|
stage: build_documentation
|
||||||
@@ -160,6 +161,7 @@ job_push_python:
|
|||||||
- releases/python
|
- releases/python
|
||||||
- staging
|
- staging
|
||||||
- nightly
|
- nightly
|
||||||
|
- /^clients\/.+$/
|
||||||
|
|
||||||
test-mysql:
|
test-mysql:
|
||||||
<<: *test_base
|
<<: *test_base
|
||||||
|
|||||||
13
.tx/config
13
.tx/config
@@ -115,12 +115,6 @@ source_lang = en
|
|||||||
source_file = mayan/apps/events/locale/en/LC_MESSAGES/django.po
|
source_file = mayan/apps/events/locale/en/LC_MESSAGES/django.po
|
||||||
type = PO
|
type = PO
|
||||||
|
|
||||||
[mayan-edms.file_caching-3-0]
|
|
||||||
file_filter = mayan/apps/file_caching/locale/<lang>/LC_MESSAGES/django.po
|
|
||||||
source_lang = en
|
|
||||||
source_file = mayan/apps/file_caching/locale/en/LC_MESSAGES/django.po
|
|
||||||
type = PO
|
|
||||||
|
|
||||||
[mayan-edms.file_metadata-3-0]
|
[mayan-edms.file_metadata-3-0]
|
||||||
file_filter = mayan/apps/file_metadata/locale/<lang>/LC_MESSAGES/django.po
|
file_filter = mayan/apps/file_metadata/locale/<lang>/LC_MESSAGES/django.po
|
||||||
source_lang = en
|
source_lang = en
|
||||||
@@ -228,10 +222,3 @@ file_filter = mayan/apps/user_management/locale/<lang>/LC_MESSAGES/django.po
|
|||||||
source_lang = en
|
source_lang = en
|
||||||
source_file = mayan/apps/user_management/locale/en/LC_MESSAGES/django.po
|
source_file = mayan/apps/user_management/locale/en/LC_MESSAGES/django.po
|
||||||
type = PO
|
type = PO
|
||||||
|
|
||||||
[mayan-edms.weblink-3-0]
|
|
||||||
file_filter = mayan/apps/weblinks/locale/<lang>/LC_MESSAGES/django.po
|
|
||||||
source_lang = en
|
|
||||||
source_file = mayan/apps/weblinks/locale/en/LC_MESSAGES/django.po
|
|
||||||
type = PO
|
|
||||||
|
|
||||||
|
|||||||
14
CHANGES_BC.rst
Normal file
14
CHANGES_BC.rst
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
- Use Select2 widget for the document type selection form.
|
||||||
|
- Update source column matching to be additive and not exclusive.
|
||||||
|
- Add two columns to show the number of documents per workflow and
|
||||||
|
workflow state.
|
||||||
|
- Sort module.
|
||||||
|
- Add link to sort individual indexes.
|
||||||
|
- Support exclusions from source columns.
|
||||||
|
- Improve source column exclusion. Improve for model subclasses in partial querysets.
|
||||||
|
- Add sortable index instance label column.
|
||||||
|
- Add rectangle drawing transformation.
|
||||||
|
- Redactions app.
|
||||||
|
- Remove duplicated trashed document preview.
|
||||||
|
- Add label to trashed date and time document source column.
|
||||||
|
- Tag created event fix.
|
||||||
862
HISTORY.rst
862
HISTORY.rst
File diff suppressed because it is too large
Load Diff
8
Makefile
8
Makefile
@@ -18,7 +18,7 @@ clean-pyc: ## Remove Python artifacts.
|
|||||||
find . -name '*.pyc' -exec rm -f {} +
|
find . -name '*.pyc' -exec rm -f {} +
|
||||||
find . -name '*.pyo' -exec rm -f {} +
|
find . -name '*.pyo' -exec rm -f {} +
|
||||||
find . -name '*~' -exec rm -f {} +
|
find . -name '*~' -exec rm -f {} +
|
||||||
find . -name '__pycache__' -exec rm -R -f {} +
|
|
||||||
|
|
||||||
# Testing
|
# Testing
|
||||||
|
|
||||||
@@ -234,10 +234,10 @@ generate-requirements: ## Generate all requirements files from the project deped
|
|||||||
# Dev server
|
# Dev server
|
||||||
|
|
||||||
runserver: ## Run the development server.
|
runserver: ## Run the development server.
|
||||||
./manage.py runserver --nothreading --settings=mayan.settings.development $(ADDRPORT)
|
./manage.py runserver --settings=mayan.settings.development $(ADDRPORT)
|
||||||
|
|
||||||
runserver_plus: ## Run the Django extension's development server.
|
runserver_plus: ## Run the Django extension's development server.
|
||||||
./manage.py runserver_plus --nothreading --settings=mayan.settings.development $(ADDRPORT)
|
./manage.py runserver_plus --settings=mayan.settings.development $(ADDRPORT)
|
||||||
|
|
||||||
shell_plus: ## Run the shell_plus command.
|
shell_plus: ## Run the shell_plus command.
|
||||||
./manage.py shell_plus --settings=mayan.settings.development
|
./manage.py shell_plus --settings=mayan.settings.development
|
||||||
@@ -258,7 +258,7 @@ test-with-docker-frontend: ## Launch a front end instance that uses the producti
|
|||||||
./manage.py runserver --settings=mayan.settings.staging.docker
|
./manage.py runserver --settings=mayan.settings.staging.docker
|
||||||
|
|
||||||
test-with-docker-worker: ## Launch a worker instance that uses the production-like services.
|
test-with-docker-worker: ## Launch a worker instance that uses the production-like services.
|
||||||
DJANGO_SETTINGS_MODULE=mayan.settings.staging.docker ./manage.py celery worker -A mayan -B -l INFO -O fair
|
./manage.py celery worker --settings=mayan.settings.staging.docker -B -l INFO -O fair
|
||||||
|
|
||||||
docker-mysql-on: ## Launch and initialize a MySQL Docker container.
|
docker-mysql-on: ## Launch and initialize a MySQL Docker container.
|
||||||
docker run -d --name mysql -p 3306:3306 -e MYSQL_ALLOW_EMPTY_PASSWORD=True -e MYSQL_DATABASE=mayan_edms mysql
|
docker run -d --name mysql -p 3306:3306 -e MYSQL_ALLOW_EMPTY_PASSWORD=True -e MYSQL_DATABASE=mayan_edms mysql
|
||||||
|
|||||||
18
README.md
18
README.md
@@ -1,11 +1,11 @@
|
|||||||
[](https://paypal.me/MayanEDMS)
|
|
||||||
[![pypi][pypi]][pypi-url]
|
[![pypi][pypi]][pypi-url]
|
||||||
[![builds][builds]][builds-url]
|
[![builds][builds]][builds-url]
|
||||||
|
[![coverage][cover]][cover-url]
|
||||||
![python][python]
|
![python][python]
|
||||||
![license][license]
|
![license][license]
|
||||||
[](https://hub.docker.com/r/mayanedms/mayanedms/)
|
[](https://hub.docker.com/r/mayanedms/mayanedms/)
|
||||||
[](https://hub.docker.com/r/mayanedms/mayanedms/)
|
[](https://hub.docker.com/r/mayanedms/mayanedms/)
|
||||||
|
[](https://microbadger.com/images/mayanedms/mayanedms)
|
||||||
|
|
||||||
[pypi]: http://img.shields.io/pypi/v/mayan-edms.svg
|
[pypi]: http://img.shields.io/pypi/v/mayan-edms.svg
|
||||||
[pypi-url]: http://badge.fury.io/py/mayan-edms
|
[pypi-url]: http://badge.fury.io/py/mayan-edms
|
||||||
@@ -43,20 +43,6 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2 align="center">Book</h2>
|
|
||||||
|
|
||||||
The pre-release version of the book "Exploring Mayan EDMS" available now at a discounted price!
|
|
||||||
|
|
||||||
<p align="center">
|
|
||||||
<a href="https://sellfy.com/p/um2fkx/">
|
|
||||||
<img width="400" src="https://d12swbtw719y4s.cloudfront.net/images/v6RpxW40/aP0qKLjkPiAuXZhYuB45/wDAULAzFyx.jpeg?w=548">
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
Limited quantities. Buyers of the pre-release will get the full version for free when it is ready.
|
|
||||||
|
|
||||||
The link is https://sellfy.com/p/um2fkx/
|
|
||||||
|
|
||||||
<h2 align="center">Installation</h2>
|
<h2 align="center">Installation</h2>
|
||||||
|
|
||||||
The easiest way to use Mayan EDMS is by using the official
|
The easiest way to use Mayan EDMS is by using the official
|
||||||
|
|||||||
14
README.rst
14
README.rst
@@ -1,4 +1,4 @@
|
|||||||
|donation| |pypi| |builds| |coverage| |python| |license| |docker_pulls| |docker_stars| |docker_layers|
|
|pypi| |builds| |coverage| |python| |license| |docker_pulls| |docker_stars| |docker_layers|
|
||||||
|
|
||||||
|
|
||||||
.. image:: https://gitlab.com/mayan-edms/mayan-edms/raw/master/docs/_static/mayan_logo.png
|
.. image:: https://gitlab.com/mayan-edms/mayan-edms/raw/master/docs/_static/mayan_logo.png
|
||||||
@@ -25,16 +25,6 @@ at: https://docs.mayan-edms.com/topics/installation.html
|
|||||||
|
|
||||||
.. _Docker: https://www.docker.com/
|
.. _Docker: https://www.docker.com/
|
||||||
|
|
||||||
The pre-release version of the book "Exploring Mayan EDMS" available now at a discounted price!
|
|
||||||
|
|
||||||
.. image:: https://camo.githubusercontent.com/89d2fe787507c9247aa7bb406e2682b53eb7a5f9/68747470733a2f2f64313273776274773731397934732e636c6f756466726f6e742e6e65742f696d616765732f76365270785734302f615030714b4c6a6b50694175585a6859754234352f774441554c417a4679782e6a7065673f773d353438
|
|
||||||
:align: center
|
|
||||||
:width: 300
|
|
||||||
:target: https://sellfy.com/p/um2fkx/
|
|
||||||
|
|
||||||
Limited quantities. Buyers of the pre-release will get the full version for free when it is ready.
|
|
||||||
Click the image or visit: https://sellfy.com/p/um2fkx/
|
|
||||||
|
|
||||||
Hardware requirements
|
Hardware requirements
|
||||||
|
|
||||||
- 2 Gigabytes of RAM (1 Gigabyte if OCR is turned off).
|
- 2 Gigabytes of RAM (1 Gigabyte if OCR is turned off).
|
||||||
@@ -54,8 +44,6 @@ Important links
|
|||||||
- `Videos <https://www.youtube.com/channel/UCJOOXHP1MJ9lVA7d8ZTlHPw>`__
|
- `Videos <https://www.youtube.com/channel/UCJOOXHP1MJ9lVA7d8ZTlHPw>`__
|
||||||
|
|
||||||
|
|
||||||
.. |donation| image:: https://img.shields.io/badge/donation-PayPal-brightgreen
|
|
||||||
:target: https://paypal.me/MayanEDMS
|
|
||||||
.. |pypi| image:: http://img.shields.io/pypi/v/mayan-edms.svg
|
.. |pypi| image:: http://img.shields.io/pypi/v/mayan-edms.svg
|
||||||
:target: http://badge.fury.io/py/mayan-edms
|
:target: http://badge.fury.io/py/mayan-edms
|
||||||
.. |builds| image:: https://gitlab.com/mayan-edms/mayan-edms/badges/master/build.svg
|
.. |builds| image:: https://gitlab.com/mayan-edms/mayan-edms/badges/master/build.svg
|
||||||
|
|||||||
72
contrib/scripts/install/development.sh
Normal file
72
contrib/scripts/install/development.sh
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
INSTALLATION_DIRECTORY=/home/vagrant/mayan-edms/
|
||||||
|
DB_NAME=mayan_edms
|
||||||
|
DB_PASSWORD=test123
|
||||||
|
|
||||||
|
cat << EOF | sudo tee -a /etc/motd.tail
|
||||||
|
**********************************sudo apt
|
||||||
|
|
||||||
|
Mayan EDMS Vagrant Development Box
|
||||||
|
|
||||||
|
**********************************
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# Update sources
|
||||||
|
echo -e "\n -> Running apt-get update & upgrade \n"
|
||||||
|
sudo apt-get -qq update
|
||||||
|
sudo apt-get -y upgrade
|
||||||
|
|
||||||
|
echo -e "\n -> Installing core binaries \n"
|
||||||
|
sudo apt-get -y install git-core python-virtualenv gcc python-dev libjpeg-dev libpng-dev libtiff-dev tesseract-ocr poppler-utils libreoffice
|
||||||
|
|
||||||
|
echo -e "\n -> Cloning development branch of repository \n"
|
||||||
|
git clone /mayan-edms-repository/ $INSTALLATION_DIRECTORY
|
||||||
|
cd $INSTALLATION_DIRECTORY
|
||||||
|
git checkout development
|
||||||
|
git reset HEAD --hard
|
||||||
|
|
||||||
|
echo -e "\n -> Setting up virtual env \n"
|
||||||
|
virtualenv venv
|
||||||
|
source venv/bin/activate
|
||||||
|
|
||||||
|
echo -e "\n -> Installing python dependencies \n"
|
||||||
|
pip install -r requirements.txt
|
||||||
|
|
||||||
|
echo -e "\n -> Running Mayan EDMS initial setup \n"
|
||||||
|
./manage.py initialsetup
|
||||||
|
|
||||||
|
echo -e "\n -> Installing Redis server \n"
|
||||||
|
sudo apt-get install -y redis-server
|
||||||
|
pip install redis
|
||||||
|
|
||||||
|
echo -e "\n -> Installing testing software \n"
|
||||||
|
pip install coverage
|
||||||
|
|
||||||
|
echo -e "\n -> Installing MySQL \n"
|
||||||
|
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password '$DB_PASSWORD
|
||||||
|
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password '$DB_PASSWORD
|
||||||
|
sudo apt-get install -y mysql-server libmysqlclient-dev
|
||||||
|
# Create a passwordless root and travis users
|
||||||
|
mysql -u root -p$DB_PASSWORD -e "SET PASSWORD = PASSWORD('');"
|
||||||
|
mysql -u root -e "CREATE USER 'travis'@'localhost' IDENTIFIED BY '';GRANT ALL PRIVILEGES ON * . * TO 'travis'@'localhost';FLUSH PRIVILEGES;"
|
||||||
|
mysql -u travis -e "CREATE DATABASE $DB_NAME;"
|
||||||
|
pip install mysql-python
|
||||||
|
|
||||||
|
echo -e "\n -> Installing PostgreSQL \n"
|
||||||
|
sudo apt-get install -y postgresql postgresql-server-dev-all
|
||||||
|
sudo -u postgres psql -c 'create database mayan_edms;' -U postgres
|
||||||
|
sudo cat > /etc/postgresql/9.3/main/pg_hba.conf << EOF
|
||||||
|
local all postgres trust
|
||||||
|
|
||||||
|
# TYPE DATABASE USER ADDRESS METHOD
|
||||||
|
|
||||||
|
# "local" is for Unix domain socket connections only
|
||||||
|
local all all peer
|
||||||
|
# IPv4 local connections:
|
||||||
|
host all all 127.0.0.1/32 md5
|
||||||
|
# IPv6 local connections:
|
||||||
|
host all all ::1/128 md5
|
||||||
|
EOF
|
||||||
|
|
||||||
|
pip install -q psycopg2
|
||||||
1733
contrib/scripts/install/dialog.sh
Normal file
1733
contrib/scripts/install/dialog.sh
Normal file
File diff suppressed because it is too large
Load Diff
171
contrib/scripts/install/production.sh
Normal file
171
contrib/scripts/install/production.sh
Normal file
@@ -0,0 +1,171 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# ====== CONFIG ======
|
||||||
|
INSTALLATION_DIRECTORY=/usr/share/mayan-edms/
|
||||||
|
DB_NAME=mayan_edms
|
||||||
|
DB_USERNAME=mayan
|
||||||
|
DB_PASSWORD=test123
|
||||||
|
# ==== END CONFIG ====
|
||||||
|
|
||||||
|
cat << EOF | tee -a /etc/motd.tail
|
||||||
|
**********************************
|
||||||
|
|
||||||
|
Mayan EDMS Vagrant Production Box
|
||||||
|
|
||||||
|
**********************************
|
||||||
|
EOF
|
||||||
|
|
||||||
|
echo -e "\n -> Running apt-get update & upgrade \n"
|
||||||
|
apt-get -qq update
|
||||||
|
apt-get -y upgrade
|
||||||
|
|
||||||
|
echo -e "\n -> Installing core binaries \n"
|
||||||
|
apt-get install nginx supervisor redis-server postgresql libpq-dev libjpeg-dev libmagic1 libpng-dev libreoffice libtiff-dev gcc ghostscript gpgv python-dev python-virtualenv tesseract-ocr poppler-utils -y
|
||||||
|
|
||||||
|
echo -e "\n -> Setting up virtualenv \n"
|
||||||
|
rm -f ${INSTALLATION_DIRECTORY}
|
||||||
|
virtualenv ${INSTALLATION_DIRECTORY}
|
||||||
|
source ${INSTALLATION_DIRECTORY}bin/activate
|
||||||
|
|
||||||
|
echo -e "\n -> Installing Mayan EDMS from PyPI \n"
|
||||||
|
pip install mayan-edms
|
||||||
|
|
||||||
|
echo -e "\n -> Installing Python client for PostgreSQL, Redis, and uWSGI \n"
|
||||||
|
pip install psycopg2 redis uwsgi
|
||||||
|
|
||||||
|
echo -e "\n -> Creating the database for the installation \n"
|
||||||
|
echo "CREATE USER mayan WITH PASSWORD '$DB_PASSWORD';" | sudo -u postgres psql
|
||||||
|
sudo -u postgres createdb -O $DB_USERNAME $DB_NAME
|
||||||
|
|
||||||
|
echo -e "\n -> Creating the directories for the logs \n"
|
||||||
|
mkdir /var/log/mayan
|
||||||
|
|
||||||
|
echo -e "\n -> Making a convenience symlink \n"
|
||||||
|
cd ${INSTALLATION_DIRECTORY}
|
||||||
|
ln -s lib/python2.7/site-packages/mayan .
|
||||||
|
|
||||||
|
echo -e "\n -> Creating an initial settings file \n"
|
||||||
|
mayan-edms.py createsettings
|
||||||
|
|
||||||
|
echo -e "\n -> Updating the mayan/settings/local.py file \n"
|
||||||
|
cat >> mayan/settings/local.py << EOF
|
||||||
|
DATABASES = {
|
||||||
|
'default': {
|
||||||
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||||
|
'NAME': '$DB_NAME',
|
||||||
|
'USER': '$DB_USERNAME',
|
||||||
|
'PASSWORD': '$DB_PASSWORD',
|
||||||
|
'HOST': 'localhost',
|
||||||
|
'PORT': '5432',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
BROKER_URL = 'redis://127.0.0.1:6379/0'
|
||||||
|
CELERY_RESULT_BACKEND = 'redis://127.0.0.1:6379/0'
|
||||||
|
EOF
|
||||||
|
|
||||||
|
echo -e "\n -> Migrating the database or initialize the project \n"
|
||||||
|
mayan-edms.py initialsetup
|
||||||
|
|
||||||
|
echo -e "\n -> Disabling the default NGINX site \n"
|
||||||
|
rm -f /etc/nginx/sites-enabled/default
|
||||||
|
|
||||||
|
echo -e "\n -> Creating a uwsgi.ini file \n"
|
||||||
|
cat > uwsgi.ini << EOF
|
||||||
|
[uwsgi]
|
||||||
|
chdir = ${INSTALLATION_DIRECTORY}lib/python2.7/site-packages/mayan
|
||||||
|
chmod-socket = 664
|
||||||
|
chown-socket = www-data:www-data
|
||||||
|
env = DJANGO_SETTINGS_MODULE=mayan.settings.production
|
||||||
|
gid = www-data
|
||||||
|
logto = /var/log/uwsgi/%n.log
|
||||||
|
pythonpath = ${INSTALLATION_DIRECTORY}lib/python2.7/site-packages
|
||||||
|
master = True
|
||||||
|
max-requests = 5000
|
||||||
|
socket = ${INSTALLATION_DIRECTORY}uwsgi.sock
|
||||||
|
uid = www-data
|
||||||
|
vacuum = True
|
||||||
|
wsgi-file = ${INSTALLATION_DIRECTORY}lib/python2.7/site-packages/mayan/wsgi.py
|
||||||
|
EOF
|
||||||
|
|
||||||
|
echo -e "\n -> Creating the directory for the uWSGI log files \n"
|
||||||
|
mkdir -p /var/log/uwsgi
|
||||||
|
|
||||||
|
echo -e "\n -> Creating the NGINX site file for Mayan EDMS, /etc/nginx/sites-available/mayan \n"
|
||||||
|
cat > /etc/nginx/sites-available/mayan << EOF
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name localhost;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
include uwsgi_params;
|
||||||
|
uwsgi_pass unix:${INSTALLATION_DIRECTORY}uwsgi.sock;
|
||||||
|
|
||||||
|
client_max_body_size 30M; # Increse if your plan to upload bigger documents
|
||||||
|
proxy_read_timeout 30s; # Increase if your document uploads take more than 30 seconds
|
||||||
|
}
|
||||||
|
|
||||||
|
location /static {
|
||||||
|
alias ${INSTALLATION_DIRECTORY}mayan/media/static;
|
||||||
|
expires 1h;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /favicon.ico {
|
||||||
|
alias ${INSTALLATION_DIRECTORY}mayan/media/static/appearance/images/favicon.ico;
|
||||||
|
expires 1h;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
echo -e "\n -> Enabling the NGINX site for Mayan EDMS \n"
|
||||||
|
ln -s /etc/nginx/sites-available/mayan /etc/nginx/sites-enabled/
|
||||||
|
|
||||||
|
echo -e "\n -> Creating the supervisor file for the uWSGI process, /etc/supervisor/conf.d/mayan-uwsgi.conf \n"
|
||||||
|
cat > /etc/supervisor/conf.d/mayan-uwsgi.conf << EOF
|
||||||
|
[program:mayan-uwsgi]
|
||||||
|
command = ${INSTALLATION_DIRECTORY}bin/uwsgi --ini ${INSTALLATION_DIRECTORY}uwsgi.ini
|
||||||
|
user = root
|
||||||
|
autostart = true
|
||||||
|
autorestart = true
|
||||||
|
redirect_stderr = true
|
||||||
|
EOF
|
||||||
|
|
||||||
|
echo -e "\n -> Creating the supervisor file for the Celery worker, /etc/supervisor/conf.d/mayan-celery.conf \n"
|
||||||
|
cat > /etc/supervisor/conf.d/mayan-celery.conf << EOF
|
||||||
|
[program:mayan-worker]
|
||||||
|
command = ${INSTALLATION_DIRECTORY}bin/python ${INSTALLATION_DIRECTORY}bin/mayan-edms.py celery --settings=mayan.settings.production worker -Ofair -l ERROR
|
||||||
|
directory = ${INSTALLATION_DIRECTORY}
|
||||||
|
user = www-data
|
||||||
|
stdout_logfile = /var/log/mayan/worker-stdout.log
|
||||||
|
stderr_logfile = /var/log/mayan/worker-stderr.log
|
||||||
|
autostart = true
|
||||||
|
autorestart = true
|
||||||
|
startsecs = 10
|
||||||
|
stopwaitsecs = 10
|
||||||
|
killasgroup = true
|
||||||
|
priority = 998
|
||||||
|
|
||||||
|
[program:mayan-beat]
|
||||||
|
command = ${INSTALLATION_DIRECTORY}bin/python ${INSTALLATION_DIRECTORY}bin/mayan-edms.py celery --settings=mayan.settings.production beat -l ERROR
|
||||||
|
directory = ${INSTALLATION_DIRECTORY}
|
||||||
|
user = www-data
|
||||||
|
numprocs = 1
|
||||||
|
stdout_logfile = /var/log/mayan/beat-stdout.log
|
||||||
|
stderr_logfile = /var/log/mayan/beat-stderr.log
|
||||||
|
autostart = true
|
||||||
|
autorestart = true
|
||||||
|
startsecs = 10
|
||||||
|
stopwaitsecs = 1
|
||||||
|
killasgroup = true
|
||||||
|
priority = 998
|
||||||
|
EOF
|
||||||
|
|
||||||
|
echo -e "\n -> Collecting the static files \n"
|
||||||
|
mayan-edms.py preparestatic --noinput
|
||||||
|
|
||||||
|
echo -e "\n -> Making the installation directory readable and writable by the webserver user \n"
|
||||||
|
chown www-data:www-data ${INSTALLATION_DIRECTORY} -R
|
||||||
|
|
||||||
|
echo -e "\n -> Restarting the services \n"
|
||||||
|
/etc/init.d/nginx restart
|
||||||
|
/etc/init.d/supervisor restart
|
||||||
@@ -13,12 +13,11 @@ APP_LIST = (
|
|||||||
'checkouts', 'common', 'converter', 'dashboards', 'dependencies',
|
'checkouts', 'common', 'converter', 'dashboards', 'dependencies',
|
||||||
'django_gpg', 'document_comments', 'document_indexing',
|
'django_gpg', 'document_comments', 'document_indexing',
|
||||||
'document_parsing', 'document_signatures', 'document_states',
|
'document_parsing', 'document_signatures', 'document_states',
|
||||||
'documents', 'dynamic_search', 'events', 'file_caching',
|
'documents', 'dynamic_search', 'events', 'file_metadata', 'linking',
|
||||||
'file_metadata', 'linking', 'lock_manager', 'mailer',
|
'lock_manager', 'mayan_statistics', 'mailer', 'metadata', 'mirroring',
|
||||||
'mayan_statistics', 'metadata', 'mirroring', 'motd', 'navigation',
|
'motd', 'navigation', 'ocr', 'permissions', 'platform', 'rest_api',
|
||||||
'ocr', 'permissions', 'platform', 'rest_api', 'smart_settings',
|
'smart_settings', 'sources', 'storage', 'tags', 'task_manager',
|
||||||
'sources', 'storage', 'tags', 'task_manager', 'user_management',
|
'user_management'
|
||||||
'weblinks'
|
|
||||||
)
|
)
|
||||||
|
|
||||||
LANGUAGE_LIST = (
|
LANGUAGE_LIST = (
|
||||||
|
|||||||
35
contrib/scripts/start_gunicorn.sh
Normal file
35
contrib/scripts/start_gunicorn.sh
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
NAME="mayan-edms"
|
||||||
|
DJANGODIR=/usr/share/mayan-edms
|
||||||
|
SOCKFILE=/var/tmp/filesystem.sock
|
||||||
|
USER=www-data
|
||||||
|
GROUP=www-data
|
||||||
|
NUM_WORKERS=3
|
||||||
|
DJANGO_SETTINGS_MODULE=mayan.settings.production
|
||||||
|
DJANGO_WSGI_MODULE=mayan.wsgi
|
||||||
|
TIMEOUT=600
|
||||||
|
|
||||||
|
echo "Starting $NAME as `whoami`"
|
||||||
|
|
||||||
|
# Activate the virtual environment
|
||||||
|
cd $DJANGODIR
|
||||||
|
source bin/activate
|
||||||
|
export DJANGO_SETTINGS_MODULE=$DJANGO_SETTINGS_MODULE
|
||||||
|
export PYTHONPATH=$DJANGODIR:$PYTHONPATH
|
||||||
|
|
||||||
|
# Create the run directory if it doesn't exist
|
||||||
|
RUNDIR=$(dirname $SOCKFILE)
|
||||||
|
test -d $RUNDIR || mkdir -p $RUNDIR
|
||||||
|
|
||||||
|
# Start your Django Unicorn
|
||||||
|
# Programs meant to be run under supervisor should not daemonize themselves (do not use --daemon)
|
||||||
|
exec bin/gunicorn ${DJANGO_WSGI_MODULE}:application \
|
||||||
|
--name $NAME \
|
||||||
|
--workers $NUM_WORKERS \
|
||||||
|
--user=$USER --group=$GROUP \
|
||||||
|
--log-level=debug \
|
||||||
|
--bind=unix:$SOCKFILE \
|
||||||
|
--timeout=$TIMEOUT
|
||||||
|
|
||||||
|
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
# BASE_IMAGE - Bare bones image with the base packages needed to run Mayan EDMS
|
# BASE_IMAGE - Bare bones image with the base packages needed to run Mayan EDMS
|
||||||
####
|
####
|
||||||
|
|
||||||
FROM debian:10.0-slim as BASE_IMAGE
|
FROM debian:9.8-slim as BASE_IMAGE
|
||||||
|
|
||||||
LABEL maintainer="Roberto Rosario roberto.rosario@mayan-edms.com"
|
LABEL maintainer="Roberto Rosario roberto.rosario@mayan-edms.com"
|
||||||
|
|
||||||
@@ -22,7 +22,6 @@ RUN set -x \
|
|||||||
&& DEBIAN_FRONTEND=noninteractive \
|
&& DEBIAN_FRONTEND=noninteractive \
|
||||||
apt-get update \
|
apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
|
||||||
exiftool \
|
exiftool \
|
||||||
ghostscript \
|
ghostscript \
|
||||||
gpgv \
|
gpgv \
|
||||||
@@ -30,11 +29,11 @@ apt-get update \
|
|||||||
graphviz \
|
graphviz \
|
||||||
libfuse2 \
|
libfuse2 \
|
||||||
libmagic1 \
|
libmagic1 \
|
||||||
libmariadb3 \
|
libmariadbclient18 \
|
||||||
libreoffice \
|
libreoffice \
|
||||||
libpq5 \
|
libpq5 \
|
||||||
poppler-utils \
|
poppler-utils \
|
||||||
python3-distutils \
|
redis-server \
|
||||||
sane-utils \
|
sane-utils \
|
||||||
sudo \
|
sudo \
|
||||||
supervisor \
|
supervisor \
|
||||||
@@ -53,20 +52,22 @@ apt-get update \
|
|||||||
&& if [ "$(uname -m)" = "armv7l" ]; then \
|
&& if [ "$(uname -m)" = "armv7l" ]; then \
|
||||||
ln -s /usr/lib/arm-linux-gnueabihf/libz.so /usr/lib/ \
|
ln -s /usr/lib/arm-linux-gnueabihf/libz.so /usr/lib/ \
|
||||||
&& ln -s /usr/lib/arm-linux-gnueabihf/libjpeg.so /usr/lib/ \
|
&& ln -s /usr/lib/arm-linux-gnueabihf/libjpeg.so /usr/lib/ \
|
||||||
; fi
|
; fi \
|
||||||
|
# Discard data when Redis runs out of memory
|
||||||
|
&& echo "maxmemory-policy allkeys-lru" >> /etc/redis/redis.conf \
|
||||||
|
# Disable saving the Redis database
|
||||||
|
echo "save \"\"" >> /etc/redis/redis.conf \
|
||||||
|
# Only provision 1 database
|
||||||
|
&& echo "databases 1" >> /etc/redis/redis.conf
|
||||||
|
|
||||||
|
|
||||||
####
|
####
|
||||||
# BUILDER_IMAGE - This image builds the Python package and is discarded afterwards
|
# BUILDER_IMAGE - This image buildS the Python package and is discarded afterwards
|
||||||
# only the build artifact is carried over to the next image.
|
|
||||||
####
|
####
|
||||||
|
|
||||||
# Reuse image
|
# Reuse image
|
||||||
FROM BASE_IMAGE as BUILDER_IMAGE
|
FROM BASE_IMAGE as BUILDER_IMAGE
|
||||||
|
|
||||||
# Python libraries caching
|
|
||||||
ARG PIP_INDEX_URL
|
|
||||||
ARG PIP_TRUSTED_HOST
|
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
# Copy the source files needed to build the Python package
|
# Copy the source files needed to build the Python package
|
||||||
@@ -95,40 +96,39 @@ apt-get install -y --no-install-recommends \
|
|||||||
libssl-dev \
|
libssl-dev \
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
python3-dev \
|
python-dev \
|
||||||
python3-venv \
|
python-virtualenv \
|
||||||
&& mkdir -p "${PROJECT_INSTALL_DIR}" \
|
&& mkdir -p "${PROJECT_INSTALL_DIR}" \
|
||||||
&& chown -R mayan:mayan "${PROJECT_INSTALL_DIR}" \
|
&& chown -R mayan:mayan "${PROJECT_INSTALL_DIR}" \
|
||||||
&& chown -R mayan:mayan /src
|
&& chown -R mayan:mayan /src
|
||||||
|
|
||||||
USER mayan
|
USER mayan
|
||||||
RUN python3 -m venv "${PROJECT_INSTALL_DIR}" \
|
RUN python -m virtualenv "${PROJECT_INSTALL_DIR}" \
|
||||||
&& . "${PROJECT_INSTALL_DIR}/bin/activate" \
|
&& . "${PROJECT_INSTALL_DIR}/bin/activate" \
|
||||||
&& pip install --no-cache-dir \
|
&& pip install --no-cache-dir --no-use-pep517 \
|
||||||
librabbitmq==2.0.0 \
|
librabbitmq==1.6.1 \
|
||||||
mysqlclient==1.4.2.post1 \
|
mysql-python==1.2.5 \
|
||||||
psycopg2==2.8.3 \
|
psycopg2==2.7.3.2 \
|
||||||
redis==3.2.1 \
|
redis==2.10.6 \
|
||||||
flower==0.9.3 \
|
|
||||||
# psutil is needed by ARM builds otherwise gevent and gunicorn fail to start
|
# psutil is needed by ARM builds otherwise gevent and gunicorn fail to start
|
||||||
&& UNAME=`uname -m` && if [ "${UNAME#*arm}" != $UNAME ]; then \
|
&& UNAME=`uname -m` && if [ "${UNAME#*arm}" != $UNAME ]; then \
|
||||||
pip install --no-cache-dir \
|
pip install --no-cache-dir --no-use-pep517 \
|
||||||
psutil==5.6.2 \
|
psutil==5.6.2 \
|
||||||
; fi \
|
; fi \
|
||||||
# Install the Python packages needed to build Mayan EDMS
|
# Install the Python packages needed to build Mayan EDMS
|
||||||
&& pip install --no-cache-dir -r /src/requirements/build.txt \
|
&& pip install --no-cache-dir --no-use-pep517 -r /src/requirements/build.txt \
|
||||||
# Build Mayan EDMS
|
# Build Mayan EDMS
|
||||||
&& python3 setup.py sdist \
|
&& python setup.py sdist \
|
||||||
# Install the built Mayan EDMS package
|
# Install the built Mayan EDMS package
|
||||||
&& pip install --no-cache-dir dist/mayan* \
|
&& pip install --no-cache-dir --no-use-pep517 dist/mayan* \
|
||||||
# Install the static content
|
# Install the static content
|
||||||
&& mayan-edms.py installdependencies \
|
&& mayan-edms.py installjavascript \
|
||||||
&& MAYAN_STATIC_ROOT=${PROJECT_INSTALL_DIR}/static mayan-edms.py preparestatic --link --noinput
|
&& MAYAN_STATIC_ROOT=${PROJECT_INSTALL_DIR}/static mayan-edms.py preparestatic --link --noinput
|
||||||
|
|
||||||
COPY --chown=mayan:mayan requirements/testing-base.txt "${PROJECT_INSTALL_DIR}"
|
COPY --chown=mayan:mayan requirements/testing-base.txt "${PROJECT_INSTALL_DIR}"
|
||||||
|
|
||||||
####
|
####
|
||||||
# Final image - BASE_IMAGE + BUILDER_IMAGE artifact (Mayan install directory)
|
# Final image - BASE_IMAGE + Mayan install directory from the builder image
|
||||||
####
|
####
|
||||||
|
|
||||||
FROM BASE_IMAGE
|
FROM BASE_IMAGE
|
||||||
@@ -144,7 +144,7 @@ VOLUME ["/var/lib/mayan"]
|
|||||||
ENTRYPOINT ["entrypoint.sh"]
|
ENTRYPOINT ["entrypoint.sh"]
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
CMD ["run_all"]
|
CMD ["mayan"]
|
||||||
|
|
||||||
RUN ${PROJECT_INSTALL_DIR}/bin/mayan-edms.py platformtemplate supervisord_docker > /etc/supervisor/conf.d/mayan.conf \
|
RUN ${PROJECT_INSTALL_DIR}/bin/mayan-edms.py platformtemplate supervisord_docker > /etc/supervisor/conf.d/mayan.conf \
|
||||||
&& apt-get clean autoclean \
|
&& apt-get clean autoclean \
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
HOST_IP = `/sbin/ip route|awk '/docker0/ { print $$9 }'`
|
APT_PROXY ?= `/sbin/ip route|awk '/docker0/ { print $$9 }'`:3142
|
||||||
|
|
||||||
APT_PROXY ?= $(HOST_IP):3142
|
|
||||||
PIP_INDEX_URL ?= http://$(HOST_IP):3141/root/pypi/+simple/
|
|
||||||
PIP_TRUSTED_HOST ?= $(HOST_IP)
|
|
||||||
|
|
||||||
IMAGE_VERSION ?= `cat docker/rootfs/version`
|
IMAGE_VERSION ?= `cat docker/rootfs/version`
|
||||||
CONSOLE_COLUMNS ?= `echo $$(tput cols)`
|
CONSOLE_COLUMNS ?= `echo $$(tput cols)`
|
||||||
CONSOLE_LINES ?= `echo $$(tput lines)`
|
CONSOLE_LINES ?= `echo $$(tput lines)`
|
||||||
@@ -12,7 +7,7 @@ docker-build: ## Build a new image locally.
|
|||||||
docker build -t mayanedms/mayanedms:$(IMAGE_VERSION) -f docker/Dockerfile .
|
docker build -t mayanedms/mayanedms:$(IMAGE_VERSION) -f docker/Dockerfile .
|
||||||
|
|
||||||
docker-build-with-proxy: ## Build a new image locally using an APT proxy as APT_PROXY.
|
docker-build-with-proxy: ## Build a new image locally using an APT proxy as APT_PROXY.
|
||||||
docker build -t mayanedms/mayanedms:$(IMAGE_VERSION) -f docker/Dockerfile --build-arg APT_PROXY=$(APT_PROXY) --build-arg PIP_INDEX_URL=$(PIP_INDEX_URL) --build-arg PIP_TRUSTED_HOST=$(PIP_TRUSTED_HOST) --build-arg HTTP_PROXY=$(HTTP_PROXY) --build-arg HTTPS_PROXY=$(HTTPS_PROXY) .
|
docker build -t mayanedms/mayanedms:$(IMAGE_VERSION) -f docker/Dockerfile --build-arg APT_PROXY=$(APT_PROXY) .
|
||||||
|
|
||||||
docker-shell: ## Launch a bash instance inside a running container. Pass the container name via DOCKER_CONTAINER.
|
docker-shell: ## Launch a bash instance inside a running container. Pass the container name via DOCKER_CONTAINER.
|
||||||
docker exec -e TERM=$(TERM) -e "COLUMNS=$(CONSOLE_COLUMNS)" -e "LINES=$(CONSOLE_LINES)" -it $(DOCKER_CONTAINER) /bin/bash
|
docker exec -e TERM=$(TERM) -e "COLUMNS=$(CONSOLE_COLUMNS)" -e "LINES=$(CONSOLE_LINES)" -it $(DOCKER_CONTAINER) /bin/bash
|
||||||
@@ -28,13 +23,3 @@ docker-test-cleanup: ## Delete the test container and the test volume.
|
|||||||
docker-test-all: ## Build and executed the test suite in a test container.
|
docker-test-all: ## Build and executed the test suite in a test container.
|
||||||
docker-test-all: docker-build-with-proxy
|
docker-test-all: docker-build-with-proxy
|
||||||
docker run --rm run-tests
|
docker run --rm run-tests
|
||||||
|
|
||||||
docker-compose-build:
|
|
||||||
docker-compose -f docker/docker-compose.yml -p mayan-edms build
|
|
||||||
|
|
||||||
docker-compose-build-with-proxy:
|
|
||||||
docker-compose -f docker/docker-compose.yml -p mayan-edms build --build-arg APT_PROXY=$(APT_PROXY) --build-arg PIP_INDEX_URL=$(PIP_INDEX_URL) --build-arg PIP_TRUSTED_HOST=$(PIP_TRUSTED_HOST) --build-arg HTTP_PROXY=$(HTTP_PROXY) --build-arg HTTPS_PROXY=$(HTTPS_PROXY)
|
|
||||||
|
|
||||||
docker-compose-up:
|
|
||||||
docker-compose -f docker/docker-compose.yml -p mayan-edms up
|
|
||||||
|
|
||||||
|
|||||||
72
docker/docker-compose-development.yml
Executable file
72
docker/docker-compose-development.yml
Executable file
@@ -0,0 +1,72 @@
|
|||||||
|
version: '2.1'
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
broker:
|
||||||
|
driver: local
|
||||||
|
app:
|
||||||
|
driver: local
|
||||||
|
db:
|
||||||
|
driver: local
|
||||||
|
results:
|
||||||
|
driver: local
|
||||||
|
|
||||||
|
services:
|
||||||
|
broker:
|
||||||
|
container_name: mayan-edms-broker
|
||||||
|
image: healthcheck/rabbitmq
|
||||||
|
environment:
|
||||||
|
RABBITMQ_DEFAULT_USER: mayan
|
||||||
|
RABBITMQ_DEFAULT_PASS: mayan
|
||||||
|
RABBITMQ_DEFAULT_VHOST: mayan
|
||||||
|
volumes:
|
||||||
|
- broker:/var/lib/rabbitmq
|
||||||
|
results:
|
||||||
|
container_name: mayan-edms-results
|
||||||
|
image: healthcheck/redis
|
||||||
|
volumes:
|
||||||
|
- results:/data
|
||||||
|
#db:
|
||||||
|
# container_name: mayan-edms-db
|
||||||
|
# image: healthcheck/mysql
|
||||||
|
# environment:
|
||||||
|
# MYSQL_DATABASE: mayan
|
||||||
|
# MYSQL_PASSWORD: mayan-password
|
||||||
|
# MYSQL_ROOT_PASSWORD: root-password
|
||||||
|
# MYSQL_USER: mayan
|
||||||
|
# volumes:
|
||||||
|
# - db:/var/lib/mysql
|
||||||
|
db:
|
||||||
|
container_name: mayan-edms-db
|
||||||
|
image: healthcheck/postgres
|
||||||
|
environment:
|
||||||
|
POSTGRES_DB: mayan
|
||||||
|
POSTGRES_PASSWORD: mayan-password
|
||||||
|
POSTGRES_USER: mayan
|
||||||
|
volumes:
|
||||||
|
- db:/var/lib/postgresql/data
|
||||||
|
mayan-edms:
|
||||||
|
container_name: mayan-edms-app
|
||||||
|
image: mayan-edms/next
|
||||||
|
build:
|
||||||
|
context: ./
|
||||||
|
args:
|
||||||
|
- APT_PROXY=172.18.0.1:3142
|
||||||
|
depends_on:
|
||||||
|
broker:
|
||||||
|
condition: service_healthy
|
||||||
|
db:
|
||||||
|
condition: service_healthy
|
||||||
|
results:
|
||||||
|
condition: service_healthy
|
||||||
|
environment:
|
||||||
|
MAYAN_BROKER_URL: amqp://mayan:mayan@broker:5672/mayan
|
||||||
|
MAYAN_CELERY_RESULT_BACKEND: redis://results:6379/0
|
||||||
|
MAYAN_DATABASE_ENGINE: django.db.backends.postgresql
|
||||||
|
MAYAN_DATABASE_HOST: db
|
||||||
|
MAYAN_DATABASE_NAME: mayan
|
||||||
|
MAYAN_DATABASE_PASSWORD: mayan-password
|
||||||
|
MAYAN_DATABASE_USER: mayan
|
||||||
|
ports:
|
||||||
|
- "80:80"
|
||||||
|
volumes:
|
||||||
|
- app:/var/lib/mayan
|
||||||
@@ -1,130 +1,58 @@
|
|||||||
version: '3.7'
|
version: '2.1'
|
||||||
|
|
||||||
networks:
|
volumes:
|
||||||
mayan-bridge:
|
broker:
|
||||||
driver: bridge
|
driver: local
|
||||||
|
app:
|
||||||
|
driver: local
|
||||||
|
db:
|
||||||
|
driver: local
|
||||||
|
results:
|
||||||
|
driver: local
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
broker:
|
||||||
build:
|
container_name: mayan-edms-broker
|
||||||
context: ..
|
image: healthcheck/rabbitmq
|
||||||
dockerfile: ./docker/Dockerfile
|
environment:
|
||||||
depends_on:
|
RABBITMQ_DEFAULT_USER: mayan
|
||||||
- postgresql
|
RABBITMQ_DEFAULT_PASS: mayan
|
||||||
- redis
|
RABBITMQ_DEFAULT_VHOST: mayan
|
||||||
# Enable to use RabbitMQ
|
|
||||||
#- rabbitmq
|
|
||||||
environment: &mayan_env
|
|
||||||
# Enable to use RabbitMQ
|
|
||||||
# MAYAN_CELERY_BROKER_URL: amqp://mayan:mayanrabbitpass@broker:5672/mayan
|
|
||||||
# Disable Redis Broker to use RabbitMQ as Broker
|
|
||||||
MAYAN_CELERY_BROKER_URL: redis://redis:6379/1
|
|
||||||
MAYAN_CELERY_RESULT_BACKEND: redis://redis:6379/0
|
|
||||||
MAYAN_DATABASES: "{'default':{'ENGINE':'django.db.backends.postgresql','NAME':'mayan','PASSWORD':'mayandbpass','USER':'mayan','HOST':'postgresql'}}"
|
|
||||||
image: mayanedms/mayanedms:3.2.6
|
|
||||||
networks:
|
|
||||||
- mayan-bridge
|
|
||||||
ports:
|
|
||||||
- "80:8000"
|
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
volumes:
|
||||||
- /docker-volumes/mayan-edms/media:/var/lib/mayan
|
- broker:/var/lib/rabbitmq
|
||||||
|
results:
|
||||||
postgresql:
|
container_name: mayan-edms-results
|
||||||
|
image: healthcheck/redis
|
||||||
|
volumes:
|
||||||
|
- results:/data
|
||||||
|
db:
|
||||||
|
container_name: mayan-edms-db
|
||||||
|
image: healthcheck/postgres
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: mayan
|
POSTGRES_DB: mayan
|
||||||
POSTGRES_PASSWORD: mayandbpass
|
POSTGRES_PASSWORD: mayan-password
|
||||||
POSTGRES_USER: mayan
|
POSTGRES_USER: mayan
|
||||||
image: postgres:9.6
|
|
||||||
networks:
|
|
||||||
- mayan-bridge
|
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
volumes:
|
||||||
- /docker-volumes/mayan-edms/postgres:/var/lib/postgresql/data
|
- db:/var/lib/postgresql/data
|
||||||
|
mayan-edms:
|
||||||
redis:
|
container_name: mayan-edms-app
|
||||||
command:
|
image: mayanedms/mayanedms:latest
|
||||||
- redis-server
|
depends_on:
|
||||||
- --databases
|
broker:
|
||||||
- "2"
|
condition: service_healthy
|
||||||
- --maxmemory-policy
|
db:
|
||||||
- allkeys-lru
|
condition: service_healthy
|
||||||
- --save
|
results:
|
||||||
- ""
|
condition: service_healthy
|
||||||
image: redis:5.0
|
environment:
|
||||||
networks:
|
MAYAN_BROKER_URL: amqp://mayan:mayan@broker:5672/mayan
|
||||||
- mayan-bridge
|
MAYAN_CELERY_RESULT_BACKEND: redis://results:6379/0
|
||||||
restart: unless-stopped
|
MAYAN_DATABASE_ENGINE: django.db.backends.postgresql
|
||||||
|
MAYAN_DATABASE_HOST: db
|
||||||
# Optional services
|
MAYAN_DATABASE_NAME: mayan
|
||||||
|
MAYAN_DATABASE_PASSWORD: mayan-password
|
||||||
# celery_flower:
|
MAYAN_DATABASE_USER: mayan
|
||||||
# command:
|
ports:
|
||||||
# - run_celery
|
- "80:8000"
|
||||||
# - flower
|
volumes:
|
||||||
# depends_on:
|
- app:/var/lib/mayan
|
||||||
# - postgresql
|
|
||||||
# - redis
|
|
||||||
# # Enable to use RabbitMQ
|
|
||||||
# # - rabbitmq
|
|
||||||
# environment:
|
|
||||||
# <<: *mayan_env
|
|
||||||
# image: mayanedms/mayanedms:3.2.6
|
|
||||||
# networks:
|
|
||||||
# - mayan-bridge
|
|
||||||
# ports:
|
|
||||||
# - "5555:5555"
|
|
||||||
# restart: unless-stopped
|
|
||||||
|
|
||||||
# Enable to use RabbitMQ
|
|
||||||
# rabbitmq:
|
|
||||||
# container_name: mayan-edms-rabbitmq
|
|
||||||
# image: healthcheck/rabbitmq
|
|
||||||
# environment:
|
|
||||||
# RABBITMQ_DEFAULT_USER: mayan
|
|
||||||
# RABBITMQ_DEFAULT_PASS: mayanrabbitpass
|
|
||||||
# RABBITMQ_DEFAULT_VHOST: mayan
|
|
||||||
# networks:
|
|
||||||
# - mayan-bridge
|
|
||||||
# restart: unless-stopped
|
|
||||||
# volumes:
|
|
||||||
# - /docker-volumes/mayan-edms/rabbitmq:/var/lib/rabbitmq
|
|
||||||
|
|
||||||
# Enable to run stand alone workers
|
|
||||||
# worker_fast:
|
|
||||||
# command:
|
|
||||||
# - run_worker
|
|
||||||
# - fast
|
|
||||||
# depends_on:
|
|
||||||
# - postgresql
|
|
||||||
# - redis
|
|
||||||
# # Enable to use RabbitMQ
|
|
||||||
# # - rabbitmq
|
|
||||||
# environment:
|
|
||||||
# <<: *mayan_env
|
|
||||||
# image: mayanedms/mayanedms:3.2.6
|
|
||||||
# networks:
|
|
||||||
# - mayan-bridge
|
|
||||||
# restart: unless-stopped
|
|
||||||
# volumes:
|
|
||||||
# - /docker-volumes/mayan-edms/media:/var/lib/mayan
|
|
||||||
|
|
||||||
# Enable to run stand frontend gunicorn
|
|
||||||
# frontend:
|
|
||||||
# command:
|
|
||||||
# - run_frontend
|
|
||||||
# depends_on:
|
|
||||||
# - postgresql
|
|
||||||
# - redis
|
|
||||||
# # Enable to use RabbitMQ
|
|
||||||
# # - rabbitmq
|
|
||||||
# environment:
|
|
||||||
# <<: *mayan_env
|
|
||||||
# image: mayanedms/mayanedms:3.2.6
|
|
||||||
# networks:
|
|
||||||
# - mayan-bridge
|
|
||||||
# ports:
|
|
||||||
# - "81:8000"
|
|
||||||
# restart: unless-stopped
|
|
||||||
# volumes:
|
|
||||||
# - /docker-volumes/mayan-edms/media:/var/lib/mayan
|
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
# Use bash and not sh to support argument slicing "${@:2}"
|
|
||||||
# sh defaults to dash instead of bash.
|
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
echo "mayan: starting entrypoint.sh"
|
echo "mayan: starting entrypoint.sh"
|
||||||
@@ -9,18 +6,19 @@ INSTALL_FLAG=/var/lib/mayan/system/SECRET_KEY
|
|||||||
CONCURRENCY_ARGUMENT=--concurrency=
|
CONCURRENCY_ARGUMENT=--concurrency=
|
||||||
|
|
||||||
DEFAULT_USER_UID=1000
|
DEFAULT_USER_UID=1000
|
||||||
DEFAULT_USER_GID=1000
|
DEFAULT_USER_GUID=1000
|
||||||
|
|
||||||
MAYAN_USER_UID=${MAYAN_USER_UID:-${DEFAULT_USER_UID}}
|
export MAYAN_DEFAULT_BROKER_URL=redis://127.0.0.1:6379/0
|
||||||
MAYAN_USER_GID=${MAYAN_USER_GID:-${DEFAULT_USER_GID}}
|
export MAYAN_DEFAULT_CELERY_RESULT_BACKEND=redis://127.0.0.1:6379/0
|
||||||
|
|
||||||
export MAYAN_ALLOWED_HOSTS='["*"]'
|
export MAYAN_ALLOWED_HOSTS='["*"]'
|
||||||
export MAYAN_BIN=/opt/mayan-edms/bin/mayan-edms.py
|
export MAYAN_BIN=/opt/mayan-edms/bin/mayan-edms.py
|
||||||
|
export MAYAN_BROKER_URL=${MAYAN_BROKER_URL:-${MAYAN_DEFAULT_BROKER_URL}}
|
||||||
|
export MAYAN_CELERY_RESULT_BACKEND=${MAYAN_CELERY_RESULT_BACKEND:-${MAYAN_DEFAULT_CELERY_RESULT_BACKEND}}
|
||||||
export MAYAN_INSTALL_DIR=/opt/mayan-edms
|
export MAYAN_INSTALL_DIR=/opt/mayan-edms
|
||||||
export MAYAN_PYTHON_BIN_DIR=/opt/mayan-edms/bin/
|
export MAYAN_PYTHON_BIN_DIR=/opt/mayan-edms/bin/
|
||||||
export MAYAN_MEDIA_ROOT=/var/lib/mayan
|
export MAYAN_MEDIA_ROOT=/var/lib/mayan
|
||||||
export MAYAN_SETTINGS_MODULE=${MAYAN_SETTINGS_MODULE:-mayan.settings.production}
|
export MAYAN_SETTINGS_MODULE=${MAYAN_SETTINGS_MODULE:-mayan.settings.production}
|
||||||
export DJANGO_SETTINGS_MODULE=${MAYAN_SETTINGS_MODULE}
|
|
||||||
|
|
||||||
export MAYAN_GUNICORN_BIN=${MAYAN_PYTHON_BIN_DIR}gunicorn
|
export MAYAN_GUNICORN_BIN=${MAYAN_PYTHON_BIN_DIR}gunicorn
|
||||||
export MAYAN_GUNICORN_WORKERS=${MAYAN_GUNICORN_WORKERS:-2}
|
export MAYAN_GUNICORN_WORKERS=${MAYAN_GUNICORN_WORKERS:-2}
|
||||||
@@ -28,22 +26,13 @@ export MAYAN_GUNICORN_TIMEOUT=${MAYAN_GUNICORN_TIMEOUT:-120}
|
|||||||
export MAYAN_PIP_BIN=${MAYAN_PYTHON_BIN_DIR}pip
|
export MAYAN_PIP_BIN=${MAYAN_PYTHON_BIN_DIR}pip
|
||||||
export MAYAN_STATIC_ROOT=${MAYAN_INSTALL_DIR}/static
|
export MAYAN_STATIC_ROOT=${MAYAN_INSTALL_DIR}/static
|
||||||
|
|
||||||
MAYAN_WORKER_FAST_CONCURRENCY=${MAYAN_WORKER_FAST_CONCURRENCY:-0}
|
MAYAN_WORKER_FAST_CONCURRENCY=${MAYAN_WORKER_FAST_CONCURRENCY:-1}
|
||||||
MAYAN_WORKER_MEDIUM_CONCURRENCY=${MAYAN_WORKER_MEDIUM_CONCURRENCY:-0}
|
MAYAN_WORKER_MEDIUM_CONCURRENCY=${MAYAN_WORKER_MEDIUM_CONCURRENCY:-1}
|
||||||
MAYAN_WORKER_SLOW_CONCURRENCY=${MAYAN_WORKER_SLOW_CONCURRENCY:-0}
|
MAYAN_WORKER_SLOW_CONCURRENCY=${MAYAN_WORKER_SLOW_CONCURRENCY:-1}
|
||||||
|
|
||||||
update_uid_gid() {
|
echo "mayan: changing uid/guid"
|
||||||
echo "mayan: update_uid_gid()"
|
usermod mayan -u ${MAYAN_USER_UID:-${DEFAULT_USER_UID}}
|
||||||
groupmod mayan -g ${MAYAN_USER_GID} 2>/dev/null || true
|
groupmod mayan -g ${MAYAN_USER_GUID:-${DEFAULT_USER_GUID}}
|
||||||
usermod mayan -u ${MAYAN_USER_UID} -g ${MAYAN_USER_GID} 2>/dev/null
|
|
||||||
|
|
||||||
if [ ${MAYAN_USER_UID} -ne ${DEFAULT_USER_UID} ] || [ ${MAYAN_USER_GID} -ne ${DEFAULT_USER_GID} ]; then
|
|
||||||
echo "mayan: Updating file ownership. This might take a while if there are many documents."
|
|
||||||
chown mayan:mayan ${MAYAN_INSTALL_DIR} ${MAYAN_STATIC_ROOT} ${MAYAN_MEDIA_ROOT}
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
update_uid_gid
|
|
||||||
|
|
||||||
if [ "$MAYAN_WORKER_FAST_CONCURRENCY" -eq 0 ]; then
|
if [ "$MAYAN_WORKER_FAST_CONCURRENCY" -eq 0 ]; then
|
||||||
MAYAN_WORKER_FAST_CONCURRENCY=
|
MAYAN_WORKER_FAST_CONCURRENCY=
|
||||||
@@ -66,9 +55,11 @@ else
|
|||||||
fi
|
fi
|
||||||
export MAYAN_WORKER_SLOW_CONCURRENCY
|
export MAYAN_WORKER_SLOW_CONCURRENCY
|
||||||
|
|
||||||
# Allow importing of user setting modules
|
export CELERY_ALWAYS_EAGER=False
|
||||||
export PYTHONPATH=$PYTHONPATH:$MAYAN_MEDIA_ROOT
|
export PYTHONPATH=$PYTHONPATH:$MAYAN_MEDIA_ROOT
|
||||||
|
|
||||||
|
chown mayan:mayan /var/lib/mayan -R
|
||||||
|
|
||||||
apt_get_install() {
|
apt_get_install() {
|
||||||
apt-get -q update
|
apt-get -q update
|
||||||
apt-get install -y --force-yes --no-install-recommends --auto-remove "$@"
|
apt-get install -y --force-yes --no-install-recommends --auto-remove "$@"
|
||||||
@@ -76,9 +67,9 @@ apt_get_install() {
|
|||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
}
|
}
|
||||||
|
|
||||||
initialsetup() {
|
initialize() {
|
||||||
echo "mayan: initialsetup()"
|
echo "mayan: initialize()"
|
||||||
su mayan -c "${MAYAN_BIN} initialsetup --force --no-dependencies"
|
su mayan -c "${MAYAN_BIN} initialsetup --force --no-javascript"
|
||||||
}
|
}
|
||||||
|
|
||||||
os_package_installs() {
|
os_package_installs() {
|
||||||
@@ -95,71 +86,43 @@ pip_installs() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
run_all() {
|
start() {
|
||||||
echo "mayan: start()"
|
echo "mayan: start()"
|
||||||
rm -rf /var/run/supervisor.sock
|
rm -rf /var/run/supervisor.sock
|
||||||
exec /usr/bin/supervisord -nc /etc/supervisor/supervisord.conf
|
exec /usr/bin/supervisord -nc /etc/supervisor/supervisord.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
performupgrade() {
|
upgrade() {
|
||||||
echo "mayan: performupgrade()"
|
echo "mayan: upgrade()"
|
||||||
su mayan -c "${MAYAN_BIN} performupgrade --no-dependencies"
|
su mayan -c "${MAYAN_BIN} performupgrade --no-javascript"
|
||||||
}
|
|
||||||
|
|
||||||
make_ready() {
|
|
||||||
# Check if this is a new install, otherwise try to upgrade the existing
|
|
||||||
# installation on subsequent starts
|
|
||||||
if [ ! -f $INSTALL_FLAG ]; then
|
|
||||||
initialsetup
|
|
||||||
else
|
|
||||||
performupgrade
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
set_uid_guid() {
|
|
||||||
echo "mayan: changing uid/guid"
|
|
||||||
usermod mayan -u ${MAYAN_USER_UID:-${DEFAULT_USER_UID}}
|
|
||||||
groupmod mayan -g ${MAYAN_USER_GID:-${DEFAULT_USER_GID}}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
os_package_installs || true
|
os_package_installs || true
|
||||||
pip_installs || true
|
pip_installs || true
|
||||||
chown mayan:mayan /var/lib/mayan -R
|
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
|
||||||
run_initialsetup)
|
mayan) # Check if this is a new install, otherwise try to upgrade the existing
|
||||||
initialsetup
|
# installation on subsequent starts
|
||||||
;;
|
if [ ! -f $INSTALL_FLAG ]; then
|
||||||
|
initialize
|
||||||
|
else
|
||||||
|
upgrade
|
||||||
|
fi
|
||||||
|
start
|
||||||
|
;;
|
||||||
|
|
||||||
run_performupgrade)
|
run-tests) # Check if this is a new install, otherwise try to upgrade the existing
|
||||||
performupgrade
|
# installation on subsequent starts
|
||||||
;;
|
if [ ! -f $INSTALL_FLAG ]; then
|
||||||
|
initialize
|
||||||
|
else
|
||||||
|
upgrade
|
||||||
|
fi
|
||||||
|
run-tests.sh
|
||||||
|
;;
|
||||||
|
|
||||||
run_all)
|
*) su mayan -c "$@";
|
||||||
make_ready
|
;;
|
||||||
run_all
|
|
||||||
;;
|
|
||||||
|
|
||||||
run_celery)
|
|
||||||
run_celery.sh "${@:2}"
|
|
||||||
;;
|
|
||||||
|
|
||||||
run_frontend)
|
|
||||||
run_frontend.sh
|
|
||||||
;;
|
|
||||||
|
|
||||||
run_tests)
|
|
||||||
make_ready
|
|
||||||
run_tests.sh
|
|
||||||
;;
|
|
||||||
|
|
||||||
run_worker)
|
|
||||||
run_worker.sh "${@:2}"
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
su mayan -c "$@"
|
|
||||||
;;
|
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Use -A and not --app. Both are the same but behave differently
|
|
||||||
# -A can be located before the command while --app cannot.
|
|
||||||
su mayan -c "${MAYAN_PYTHON_BIN_DIR}celery -A mayan $@"
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
MAYAN_GUNICORN_MAX_REQUESTS=${MAYAN_GUNICORN_MAX_REQUESTS:-500}
|
|
||||||
MAYAN_GUNICORN_MAX_REQUESTS_JITTERS=${MAYAN_GUNICORN_MAX_REQUESTS_JITTERS:-50}
|
|
||||||
MAYAN_GUNICORN_WORKER_CLASS=${MAYAN_GUNICORN_WORKER_CLASS:-sync}
|
|
||||||
|
|
||||||
su mayan -c "${MAYAN_PYTHON_BIN_DIR}gunicorn -w ${MAYAN_GUNICORN_WORKERS} mayan.wsgi --max-requests ${MAYAN_GUNICORN_MAX_REQUESTS} --max-requests-jitter ${MAYAN_GUNICORN_MAX_REQUESTS_JITTERS} --worker-class ${MAYAN_GUNICORN_WORKER_CLASS} --bind 0.0.0.0:8000 --timeout ${MAYAN_GUNICORN_TIMEOUT}"
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
QUEUE_LIST=`MAYAN_WORKER_NAME=$1 su mayan -c "${MAYAN_PYTHON_BIN_DIR}mayan-edms.py platformtemplate worker_queues"`
|
|
||||||
|
|
||||||
# Use -A and not --app. Both are the same but behave differently
|
|
||||||
# -A can be located before the command while --app cannot.
|
|
||||||
# Pass ${@:2} to allow overriding the defaults arguments
|
|
||||||
su mayan -c "${MAYAN_PYTHON_BIN_DIR}celery -A mayan worker -Ofair -l ERROR -Q $QUEUE_LIST ${@:2}"
|
|
||||||
@@ -1 +1 @@
|
|||||||
3.2.7
|
3.2.5
|
||||||
|
|||||||
@@ -9,32 +9,24 @@ volumes:
|
|||||||
services:
|
services:
|
||||||
|
|
||||||
db:
|
db:
|
||||||
|
image: postgres
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: mayan
|
POSTGRES_DB: mayan
|
||||||
POSTGRES_PASSWORD: mayandbpass
|
POSTGRES_PASSWORD: mayan-password
|
||||||
POSTGRES_USER: mayan
|
POSTGRES_USER: mayan
|
||||||
image: postgres
|
|
||||||
volumes:
|
volumes:
|
||||||
- db:/var/lib/postgresql/data
|
- db:/var/lib/postgresql/data
|
||||||
|
|
||||||
app:
|
app:
|
||||||
environment:
|
|
||||||
MAYAN_CELERY_BROKER_URL: redis://redis:6379/1
|
|
||||||
MAYAN_CELERY_RESULT_BACKEND: redis://redis:6379/0
|
|
||||||
MAYAN_DATABASES: "{'default':{'ENGINE':'django.db.backends.postgresql','NAME':'mayan','PASSWORD':'mayandbpass','USER':'mayan','HOST':'db'}}"
|
|
||||||
image: mayanedms/mayanedms:latest
|
image: mayanedms/mayanedms:latest
|
||||||
ports:
|
ports:
|
||||||
- 80:8000
|
- 80:8000
|
||||||
|
environment:
|
||||||
|
MAYAN_DATABASE_ENGINE: django.db.backends.postgresql
|
||||||
|
MAYAN_DATABASE_HOST: db
|
||||||
|
MAYAN_DATABASE_NAME: mayan
|
||||||
|
MAYAN_DATABASE_PASSWORD: mayan-password
|
||||||
|
MAYAN_DATABASE_USER: mayan
|
||||||
|
MAYAN_DATABASE_CONN_MAX_AGE: 0
|
||||||
volumes:
|
volumes:
|
||||||
- app:/var/lib/mayan
|
- app:/var/lib/mayan
|
||||||
|
|
||||||
redis:
|
|
||||||
command:
|
|
||||||
- redis-server
|
|
||||||
- --databases
|
|
||||||
- "2"
|
|
||||||
- --maxmemory-policy
|
|
||||||
- allkeys-lru
|
|
||||||
- --save
|
|
||||||
- ""
|
|
||||||
image: redis:5.0
|
|
||||||
|
|||||||
@@ -127,8 +127,9 @@ For another setup that offers more performance and scalability refer to the
|
|||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
sudo -u mayan MAYAN_DATABASES="{'default':{'ENGINE':'django.db.backends.postgresql','NAME':'mayan','PASSWORD':'mayanuserpass','USER':'mayan','HOST':'127.0.0.1'}}" \
|
sudo -u mayan MAYAN_DATABASE_ENGINE=django.db.backends.postgresql MAYAN_DATABASE_NAME=mayan \
|
||||||
MAYAN_MEDIA_ROOT=/opt/mayan-edms/media \
|
MAYAN_DATABASE_PASSWORD=mayanuserpass MAYAN_DATABASE_USER=mayan \
|
||||||
|
MAYAN_DATABASE_HOST=127.0.0.1 MAYAN_MEDIA_ROOT=/opt/mayan-edms/media \
|
||||||
/opt/mayan-edms/bin/mayan-edms.py initialsetup
|
/opt/mayan-edms/bin/mayan-edms.py initialsetup
|
||||||
|
|
||||||
|
|
||||||
@@ -147,8 +148,9 @@ For another setup that offers more performance and scalability refer to the
|
|||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
::
|
::
|
||||||
|
|
||||||
sudo mayan MAYAN_DATABASES="{'default':{'ENGINE':'django.db.backends.postgresql','NAME':'mayan','PASSWORD':'mayanuserpass','USER':'mayan','HOST':'127.0.0.1'}}" \
|
sudo MAYAN_DATABASE_ENGINE=django.db.backends.postgresql MAYAN_DATABASE_NAME=mayan \
|
||||||
MAYAN_MEDIA_ROOT=/opt/mayan-edms/media \
|
MAYAN_DATABASE_PASSWORD=mayanuserpass MAYAN_DATABASE_USER=mayan \
|
||||||
|
MAYAN_DATABASE_HOST=127.0.0.1 MAYAN_MEDIA_ROOT=/opt/mayan-edms/media \
|
||||||
/opt/mayan-edms/bin/mayan-edms.py platformtemplate supervisord > /etc/supervisor/conf.d/mayan.conf
|
/opt/mayan-edms/bin/mayan-edms.py platformtemplate supervisord > /etc/supervisor/conf.d/mayan.conf
|
||||||
|
|
||||||
|
|
||||||
@@ -220,11 +222,11 @@ of a restart or power failure. The Gunicorn workers are increased to 3.
|
|||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
Replace (paying attention to the comma at the end)::
|
Replace (paying attention to the comma at the end)::
|
||||||
|
|
||||||
MAYAN_CELERY_BROKER_URL="redis://127.0.0.1:6379/0",
|
MAYAN_BROKER_URL="redis://127.0.0.1:6379/0",
|
||||||
|
|
||||||
with::
|
with::
|
||||||
|
|
||||||
MAYAN_CELERY_BROKER_URL="amqp://mayan:mayanrabbitmqpassword@localhost:5672/mayan",
|
MAYAN_BROKER_URL="amqp://mayan:mayanrabbitmqpassword@localhost:5672/mayan",
|
||||||
|
|
||||||
increase the number of Gunicorn workers to 3 in the line (``-w 2`` section)::
|
increase the number of Gunicorn workers to 3 in the line (``-w 2`` section)::
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,12 @@ Finally create and run a Mayan EDMS container::
|
|||||||
--name mayan-edms \
|
--name mayan-edms \
|
||||||
--restart=always \
|
--restart=always \
|
||||||
-p 80:8000 \
|
-p 80:8000 \
|
||||||
-e MAYAN_DATABASES="{'default':{'ENGINE':'django.db.backends.postgresql','NAME':'mayan','PASSWORD':'mayanuserpass','USER':'mayan','HOST':'172.17.0.1'}}" \
|
-e MAYAN_DATABASE_ENGINE=django.db.backends.postgresql \
|
||||||
|
-e MAYAN_DATABASE_HOST=172.17.0.1 \
|
||||||
|
-e MAYAN_DATABASE_NAME=mayan \
|
||||||
|
-e MAYAN_DATABASE_PASSWORD=mayanuserpass \
|
||||||
|
-e MAYAN_DATABASE_USER=mayan \
|
||||||
|
-e MAYAN_DATABASE_CONN_MAX_AGE=0 \
|
||||||
-v /docker-volumes/mayan-edms/media:/var/lib/mayan \
|
-v /docker-volumes/mayan-edms/media:/var/lib/mayan \
|
||||||
mayanedms/mayanedms:<version>
|
mayanedms/mayanedms:<version>
|
||||||
|
|
||||||
@@ -103,7 +108,12 @@ instead of the IP address of the Docker host (``172.17.0.1``)::
|
|||||||
--network=mayan \
|
--network=mayan \
|
||||||
--restart=always \
|
--restart=always \
|
||||||
-p 80:8000 \
|
-p 80:8000 \
|
||||||
-e MAYAN_DATABASES="{'default':{'ENGINE':'django.db.backends.postgresql','NAME':'mayan','PASSWORD':'mayanuserpass','USER':'mayan','HOST':'mayan-edms-postgres'}}" \
|
-e MAYAN_DATABASE_ENGINE=django.db.backends.postgresql \
|
||||||
|
-e MAYAN_DATABASE_HOST=mayan-edms-postgres \
|
||||||
|
-e MAYAN_DATABASE_NAME=mayan \
|
||||||
|
-e MAYAN_DATABASE_PASSWORD=mayanuserpass \
|
||||||
|
-e MAYAN_DATABASE_USER=mayan \
|
||||||
|
-e MAYAN_DATABASE_CONN_MAX_AGE=0 \
|
||||||
-v /docker-volumes/mayan-edms/media:/var/lib/mayan \
|
-v /docker-volumes/mayan-edms/media:/var/lib/mayan \
|
||||||
mayanedms/mayanedms:<version>
|
mayanedms/mayanedms:<version>
|
||||||
|
|
||||||
@@ -127,14 +137,102 @@ To start the container again::
|
|||||||
Environment Variables
|
Environment Variables
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
The common set of settings can also be modified via environment variables when
|
The Mayan EDMS image can be configure via environment variables.
|
||||||
using the Docker image. In addition to the common set of settings, some Docker
|
|
||||||
image specific environment variables are available.
|
``MAYAN_DATABASE_ENGINE``
|
||||||
|
|
||||||
|
Defaults to ``None``. This environment variable configures the database
|
||||||
|
backend to use. If left unset, SQLite will be used. The database backends
|
||||||
|
supported by this Docker image are:
|
||||||
|
|
||||||
|
- ``'django.db.backends.postgresql'``
|
||||||
|
- ``'django.db.backends.mysql'``
|
||||||
|
- ``'django.db.backends.sqlite3'``
|
||||||
|
|
||||||
|
When using the SQLite backend, the database file will be saved in the Docker
|
||||||
|
volume. The SQLite database as used by Mayan EDMS is meant only for development
|
||||||
|
or testing, never use it in production.
|
||||||
|
|
||||||
|
``MAYAN_DATABASE_NAME``
|
||||||
|
|
||||||
|
Defaults to 'mayan'. This optional environment variable can be used to define
|
||||||
|
the database name that Mayan EDMS will connect to. For more information read
|
||||||
|
the pertinent Django documentation page:
|
||||||
|
:django-docs:`Connecting to the database <ref/databases/#connecting-to-the-database>`
|
||||||
|
|
||||||
|
``MAYAN_DATABASE_USER``
|
||||||
|
|
||||||
|
Defaults to 'mayan'. This optional environment variable is used to set the
|
||||||
|
username that will be used to connect to the database. For more information
|
||||||
|
read the pertinent Django documentation page:
|
||||||
|
:django-docs:`Settings, USER <ref/settings/#user>`
|
||||||
|
|
||||||
|
``MAYAN_DATABASE_PASSWORD``
|
||||||
|
|
||||||
|
Defaults to ''. This optional environment variable is used to set the
|
||||||
|
password that will be used to connect to the database. For more information
|
||||||
|
read the pertinent Django documentation page:
|
||||||
|
:django-docs:`Settings, PASSWORD <ref/settings/#password>`
|
||||||
|
|
||||||
|
``MAYAN_DATABASE_HOST``
|
||||||
|
|
||||||
|
Defaults to `None`. This optional environment variable is used to set the
|
||||||
|
hostname that will be used to connect to the database. This can be the
|
||||||
|
hostname of another container or an IP address. For more information read
|
||||||
|
the pertinent Django documentation page:
|
||||||
|
:django-docs:`Settings, HOST <ref/settings/#host>`
|
||||||
|
|
||||||
|
``MAYAN_DATABASE_PORT``
|
||||||
|
|
||||||
|
Defaults to `None`. This optional environment variable is used to set the
|
||||||
|
port number to use when connecting to the database. An empty string means
|
||||||
|
the default port. Not used with SQLite. For more information read the
|
||||||
|
pertinent Django documentation page:
|
||||||
|
:django-docs:`Settings, PORT <ref/settings/#port>`
|
||||||
|
|
||||||
|
``MAYAN_BROKER_URL``
|
||||||
|
|
||||||
|
This optional environment variable determines the broker that Celery will use
|
||||||
|
to relay task messages between the frontend code and the background workers.
|
||||||
|
For more information read the pertinent Celery Kombu documentation page: `Broker URL`_
|
||||||
|
|
||||||
|
.. _Broker URL: http://kombu.readthedocs.io/en/latest/userguide/connections.html#connection-urls
|
||||||
|
|
||||||
|
This Docker image supports using Redis and RabbitMQ as brokers.
|
||||||
|
|
||||||
|
Caveat: If the `MAYAN_BROKER_URL` and `MAYAN_CELERY_RESULT_BACKEND` environment
|
||||||
|
variables are specified, the built-in Redis server inside the container will
|
||||||
|
be disabled.
|
||||||
|
|
||||||
|
``MAYAN_CELERY_RESULT_BACKEND``
|
||||||
|
|
||||||
|
This optional environment variable determines the results backend that Celery
|
||||||
|
will use to relay result messages from the background workers to the frontend
|
||||||
|
code. For more information read the pertinent Celery Kombu documentation page:
|
||||||
|
`Task result backend settings`_
|
||||||
|
|
||||||
|
.. _Task result backend settings: http://docs.celeryproject.org/en/3.1/configuration.html#celery-result-backend
|
||||||
|
|
||||||
|
This Docker image supports using Redis and RabbitMQ as result backends.
|
||||||
|
|
||||||
|
Caveat: If the `MAYAN_BROKER_URL` and `MAYAN_CELERY_RESULT_BACKEND` environment
|
||||||
|
variables are specified, the built-in Redis server inside the container will
|
||||||
|
be disabled.
|
||||||
|
|
||||||
``MAYAN_SETTINGS_MODULE``
|
``MAYAN_SETTINGS_MODULE``
|
||||||
|
|
||||||
Optional. Allows loading an alternate settings file.
|
Optional. Allows loading an alternate settings file.
|
||||||
|
|
||||||
|
``MAYAN_DATABASE_CONN_MAX_AGE``
|
||||||
|
|
||||||
|
Amount in seconds to keep a database connection alive. Allow reuse of database
|
||||||
|
connections. For more information read the pertinent Django documentation
|
||||||
|
page: :django-docs:`Settings, CONN_MAX_AGE <ref/settings/#conn-max-age>`
|
||||||
|
According to new information Gunicorn's microthreads don't share connections
|
||||||
|
and will exhaust the available Postgres connections available if a number
|
||||||
|
other than 0 is used. Reference: https://serverfault.com/questions/635100/django-conn-max-age-persists-connections-but-doesnt-reuse-them-with-postgresq
|
||||||
|
and https://github.com/benoitc/gunicorn/issues/996
|
||||||
|
|
||||||
``MAYAN_GUNICORN_WORKERS``
|
``MAYAN_GUNICORN_WORKERS``
|
||||||
|
|
||||||
Optional. This environment variable controls the number of frontend workers
|
Optional. This environment variable controls the number of frontend workers
|
||||||
@@ -171,21 +269,12 @@ number of CPUs detected).
|
|||||||
Optional. Changes the UID of the ``mayan`` user internal to the Docker
|
Optional. Changes the UID of the ``mayan`` user internal to the Docker
|
||||||
container. Defaults to 1000.
|
container. Defaults to 1000.
|
||||||
|
|
||||||
``MAYAN_USER_GID``
|
``MAYAN_USER_GUID``
|
||||||
|
|
||||||
Optional. Changes the GID of the ``mayan`` user internal to the Docker
|
Optional. Changes the GUID of the ``mayan`` user internal to the Docker
|
||||||
container. Defaults to 1000.
|
container. Defaults to 1000.
|
||||||
|
|
||||||
|
|
||||||
Included drivers
|
|
||||||
----------------
|
|
||||||
|
|
||||||
The Docker image supports using Redis and RabbitMQ as result backends. For
|
|
||||||
databases, the image includes support for PostgreSQL and MySQL/MariaDB.
|
|
||||||
Support for additional brokers or databases may be added using the
|
|
||||||
``MAYAN_APT_INSTALL`` environment variable.
|
|
||||||
|
|
||||||
|
|
||||||
.. _docker-accessing-outside-data:
|
.. _docker-accessing-outside-data:
|
||||||
|
|
||||||
Accessing outside data
|
Accessing outside data
|
||||||
@@ -353,7 +442,6 @@ These are:
|
|||||||
|
|
||||||
Nightly images
|
Nightly images
|
||||||
==============
|
==============
|
||||||
|
|
||||||
The continuous integration pipeline used for testing development builds also
|
The continuous integration pipeline used for testing development builds also
|
||||||
produces a resulting Docker image. These are build automatically and their
|
produces a resulting Docker image. These are build automatically and their
|
||||||
stability is not guaranteed. They should never be used in production.
|
stability is not guaranteed. They should never be used in production.
|
||||||
|
|||||||
@@ -94,11 +94,11 @@ For the Docker image, launch a separate RabbitMQ container
|
|||||||
|
|
||||||
docker run -d --name mayan-edms-rabbitmq -e RABBITMQ_DEFAULT_USER=mayan -e RABBITMQ_DEFAULT_PASS=mayanrabbitmqpassword -e RABBITMQ_DEFAULT_VHOST=mayan rabbitmq:3
|
docker run -d --name mayan-edms-rabbitmq -e RABBITMQ_DEFAULT_USER=mayan -e RABBITMQ_DEFAULT_PASS=mayanrabbitmqpassword -e RABBITMQ_DEFAULT_VHOST=mayan rabbitmq:3
|
||||||
|
|
||||||
Pass the MAYAN_CELERY_BROKER_URL environment variable (https://kombu.readthedocs.io/en/latest/userguide/connections.html#connection-urls)
|
Pass the MAYAN_BROKER_URL environment variable (https://kombu.readthedocs.io/en/latest/userguide/connections.html#connection-urls)
|
||||||
to the Mayan EDMS container so that it uses the RabbitMQ container the
|
to the Mayan EDMS container so that it uses the RabbitMQ container the
|
||||||
message broker::
|
message broker::
|
||||||
|
|
||||||
-e MAYAN_CELERY_BROKER_URL="amqp://mayan:mayanrabbitmqpassword@localhost:5672/mayan",
|
-e MAYAN_BROKER_URL="amqp://mayan:mayanrabbitmqpassword@localhost:5672/mayan",
|
||||||
|
|
||||||
When tasks finish, they leave behind a return status or the result of a
|
When tasks finish, they leave behind a return status or the result of a
|
||||||
calculation, these are stored for a while so that whoever requested the
|
calculation, these are stored for a while so that whoever requested the
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ The current document sources supported are:
|
|||||||
- IMAP email - Same as the ``POP3`` email source but for email accounts using
|
- IMAP email - Same as the ``POP3`` email source but for email accounts using
|
||||||
the ``IMAP`` protocol.
|
the ``IMAP`` protocol.
|
||||||
- Watch folder - A filesystem folder that is scanned periodically for files.
|
- Watch folder - A filesystem folder that is scanned periodically for files.
|
||||||
Any file in the watch folder is automatically uploaded. When the upload for a
|
Any file in the watch folder is automatically uploaded.
|
||||||
file is completed, the file is removed from source folder.
|
|
||||||
- Staging folder - Folder where networked attached scanned can save image
|
- Staging folder - Folder where networked attached scanned can save image
|
||||||
files. The files in these staging folders are scanned and a preview is
|
files. The files in these staging folders are scanned and a preview is
|
||||||
generated to help the process of upload. Staging folders and Watch folders
|
generated to help the process of upload. Staging folders and Watch folders
|
||||||
|
|||||||
@@ -242,9 +242,6 @@ extlinks = {
|
|||||||
mayan.__django_version__
|
mayan.__django_version__
|
||||||
), 'Django documentation section: '
|
), 'Django documentation section: '
|
||||||
),
|
),
|
||||||
'forum-topic': (
|
|
||||||
'https://forum.mayan-edms.com/viewtopic.php?t=%s', 'Forum topic #'
|
|
||||||
),
|
|
||||||
'github-issue': (
|
'github-issue': (
|
||||||
'https://github.com/mayan-edms/mayan-edms/issues/%s', 'GitHub issue #'
|
'https://github.com/mayan-edms/mayan-edms/issues/%s', 'GitHub issue #'
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ Changes
|
|||||||
GitLab issue #625. Thanks to Jesaja Everling (@jeverling)
|
GitLab issue #625. Thanks to Jesaja Everling (@jeverling)
|
||||||
for the report and the research.
|
for the report and the research.
|
||||||
|
|
||||||
|
|
||||||
Removals
|
Removals
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
|||||||
@@ -1,111 +0,0 @@
|
|||||||
Version 3.2.6
|
|
||||||
=============
|
|
||||||
|
|
||||||
Released: July 10, 2019
|
|
||||||
|
|
||||||
|
|
||||||
Changes
|
|
||||||
-------
|
|
||||||
|
|
||||||
- Remove the smart settings app * import. Following MERC 0005.
|
|
||||||
- Encode settings YAML before hashing. Avoids unicode issues with Python 3.
|
|
||||||
- Fix document icon used in the workflow runtime links.
|
|
||||||
- Add trashed date time label.
|
|
||||||
- Fix thumbnail generation issue. GitLab issue #637.
|
|
||||||
Thanks to Giacomo Cariello (@giacomocariello) for the report
|
|
||||||
and the merge request fixing the issue.
|
|
||||||
|
|
||||||
Removals
|
|
||||||
--------
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|
||||||
|
|
||||||
Upgrading from a previous version
|
|
||||||
---------------------------------
|
|
||||||
|
|
||||||
If installed via Python's PIP
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
Remove deprecated requirements::
|
|
||||||
|
|
||||||
sudo -u mayan curl https://gitlab.com/mayan-edms/mayan-edms/raw/master/removals.txt -o /tmp/removals.txt && sudo -u mayan /opt/mayan-edms/bin/pip uninstall -y -r /tmp/removals.txt
|
|
||||||
|
|
||||||
Type in the console::
|
|
||||||
|
|
||||||
sudo -u mayan /opt/mayan-edms/bin/pip install mayan-edms==3.2.6
|
|
||||||
|
|
||||||
the requirements will also be updated automatically.
|
|
||||||
|
|
||||||
|
|
||||||
Using Git
|
|
||||||
^^^^^^^^^
|
|
||||||
|
|
||||||
If you installed Mayan EDMS by cloning the Git repository issue the commands::
|
|
||||||
|
|
||||||
$ git reset --hard HEAD
|
|
||||||
$ git pull
|
|
||||||
|
|
||||||
otherwise download the compressed archived and uncompress it overriding the
|
|
||||||
existing installation.
|
|
||||||
|
|
||||||
Remove deprecated requirements::
|
|
||||||
|
|
||||||
$ pip uninstall -y -r removals.txt
|
|
||||||
|
|
||||||
Next upgrade/add the new requirements::
|
|
||||||
|
|
||||||
$ pip install --upgrade -r requirements.txt
|
|
||||||
|
|
||||||
|
|
||||||
Common steps
|
|
||||||
^^^^^^^^^^^^
|
|
||||||
|
|
||||||
Perform these steps after updating the code from either step above.
|
|
||||||
|
|
||||||
Make a backup of your supervisord file::
|
|
||||||
|
|
||||||
sudo cp /etc/supervisor/conf.d/mayan.conf /etc/supervisor/conf.d/mayan.conf.bck
|
|
||||||
|
|
||||||
Update the supervisord configuration file. Replace the environment
|
|
||||||
variables values show here with your respective settings. This step will refresh
|
|
||||||
the supervisord configuration file with the new queues and the latest
|
|
||||||
recommended layout::
|
|
||||||
|
|
||||||
sudo MAYAN_DATABASE_ENGINE=django.db.backends.postgresql MAYAN_DATABASE_NAME=mayan \
|
|
||||||
MAYAN_DATABASE_PASSWORD=mayanuserpass MAYAN_DATABASE_USER=mayan \
|
|
||||||
MAYAN_DATABASE_HOST=127.0.0.1 MAYAN_MEDIA_ROOT=/opt/mayan-edms/media \
|
|
||||||
/opt/mayan-edms/bin/mayan-edms.py platformtemplate supervisord > /etc/supervisor/conf.d/mayan.conf
|
|
||||||
|
|
||||||
Edit the supervisord configuration file and update any setting the template
|
|
||||||
generator missed::
|
|
||||||
|
|
||||||
sudo vi /etc/supervisor/conf.d/mayan.conf
|
|
||||||
|
|
||||||
Migrate existing database schema with::
|
|
||||||
|
|
||||||
sudo -u mayan MAYAN_DATABASE_ENGINE=django.db.backends.postgresql MAYAN_DATABASE_NAME=mayan \
|
|
||||||
MAYAN_DATABASE_PASSWORD=mayanuserpass MAYAN_DATABASE_USER=mayan \
|
|
||||||
MAYAN_DATABASE_HOST=127.0.0.1 MAYAN_MEDIA_ROOT=/opt/mayan-edms/media \
|
|
||||||
/opt/mayan-edms/bin/mayan-edms.py performupgrade
|
|
||||||
|
|
||||||
Add new static media::
|
|
||||||
|
|
||||||
sudo -u mayan MAYAN_MEDIA_ROOT=/opt/mayan-edms/media \
|
|
||||||
/opt/mayan-edms/bin/mayan-edms.py preparestatic --noinput
|
|
||||||
|
|
||||||
The upgrade procedure is now complete.
|
|
||||||
|
|
||||||
|
|
||||||
Backward incompatible changes
|
|
||||||
-----------------------------
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|
||||||
|
|
||||||
Bugs fixed or issues closed
|
|
||||||
---------------------------
|
|
||||||
|
|
||||||
- :gitlab-issue:`637` Thumbnail generation bug
|
|
||||||
|
|
||||||
.. _PyPI: https://pypi.python.org/pypi/mayan-edms/
|
|
||||||
@@ -1,145 +0,0 @@
|
|||||||
Version 3.2.7
|
|
||||||
=============
|
|
||||||
|
|
||||||
Released: August 28, 2019
|
|
||||||
|
|
||||||
|
|
||||||
Changes
|
|
||||||
-------
|
|
||||||
|
|
||||||
- Fix checkouts form bug. Fixes GitLab issue #654
|
|
||||||
Thanks to Lucius Schaerer (@lschaer1) for the report.
|
|
||||||
- Disable pagination current page button
|
|
||||||
Current page button was clickable and would cause the
|
|
||||||
single page navigation to jump to the home view.
|
|
||||||
- Remove redundant Celery queue declarations from the
|
|
||||||
file_metadata app.
|
|
||||||
- Add internal_name field to workflow serializer.
|
|
||||||
Fixes workflow API creation view.
|
|
||||||
- Fix document cabinet list API view. Thanks for forum user
|
|
||||||
"jere" for the report. Forum topic 1039.
|
|
||||||
- Fix document template column field. GitLab issue #655.
|
|
||||||
Thanks to Christian Wiegand (@christianwgd) for the
|
|
||||||
report.
|
|
||||||
- Increase mailing profile password field max length
|
|
||||||
from 48 to 128 characters. GitLab issue #657.
|
|
||||||
Thanks to sigsec (@sigsec) for the report.
|
|
||||||
- Update the Docker entrypoint to update the ownership
|
|
||||||
of files when the UID of GUID are changed.
|
|
||||||
GitLab issue #650. Thanks to Fabian (@ruffy91)
|
|
||||||
for the report.
|
|
||||||
- Update the Docker entrypoint to allow changing
|
|
||||||
the GID of the mayan user to existing values.
|
|
||||||
GitLab issue #652. Thanks to Fabian (@ruffy91)
|
|
||||||
for the report.
|
|
||||||
- Rename the MAYAN_USER_GUID environment variable
|
|
||||||
to MAYAN_USER_GID.
|
|
||||||
- Backport individual index rebuild support.
|
|
||||||
- Add automatic adjustment of HTML body on navigation
|
|
||||||
bar changes. Closes GitLab issue #643. Thanks to
|
|
||||||
Light Templar (@LightTemplar) for the report.
|
|
||||||
- Unify all line endings to be Linux style.
|
|
||||||
- Make sure system alerts don't appear under
|
|
||||||
floating elements.
|
|
||||||
|
|
||||||
Removals
|
|
||||||
--------
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|
||||||
|
|
||||||
Upgrading from a previous version
|
|
||||||
---------------------------------
|
|
||||||
|
|
||||||
If installed via Python's PIP
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
Remove deprecated requirements::
|
|
||||||
|
|
||||||
sudo -u mayan curl https://gitlab.com/mayan-edms/mayan-edms/raw/master/removals.txt -o /tmp/removals.txt && sudo -u mayan /opt/mayan-edms/bin/pip uninstall -y -r /tmp/removals.txt
|
|
||||||
|
|
||||||
Type in the console::
|
|
||||||
|
|
||||||
sudo -u mayan /opt/mayan-edms/bin/pip install mayan-edms==3.2.7
|
|
||||||
|
|
||||||
the requirements will also be updated automatically.
|
|
||||||
|
|
||||||
|
|
||||||
Using Git
|
|
||||||
^^^^^^^^^
|
|
||||||
|
|
||||||
If you installed Mayan EDMS by cloning the Git repository issue the commands::
|
|
||||||
|
|
||||||
$ git reset --hard HEAD
|
|
||||||
$ git pull
|
|
||||||
|
|
||||||
otherwise download the compressed archived and uncompress it overriding the
|
|
||||||
existing installation.
|
|
||||||
|
|
||||||
Remove deprecated requirements::
|
|
||||||
|
|
||||||
$ pip uninstall -y -r removals.txt
|
|
||||||
|
|
||||||
Next upgrade/add the new requirements::
|
|
||||||
|
|
||||||
$ pip install --upgrade -r requirements.txt
|
|
||||||
|
|
||||||
|
|
||||||
Common steps
|
|
||||||
^^^^^^^^^^^^
|
|
||||||
|
|
||||||
Perform these steps after updating the code from either step above.
|
|
||||||
|
|
||||||
Make a backup of your supervisord file::
|
|
||||||
|
|
||||||
sudo cp /etc/supervisor/conf.d/mayan.conf /etc/supervisor/conf.d/mayan.conf.bck
|
|
||||||
|
|
||||||
Update the supervisord configuration file. Replace the environment
|
|
||||||
variables values show here with your respective settings. This step will refresh
|
|
||||||
the supervisord configuration file with the new queues and the latest
|
|
||||||
recommended layout::
|
|
||||||
|
|
||||||
sudo MAYAN_DATABASE_ENGINE=django.db.backends.postgresql MAYAN_DATABASE_NAME=mayan \
|
|
||||||
MAYAN_DATABASE_PASSWORD=mayanuserpass MAYAN_DATABASE_USER=mayan \
|
|
||||||
MAYAN_DATABASE_HOST=127.0.0.1 MAYAN_MEDIA_ROOT=/opt/mayan-edms/media \
|
|
||||||
/opt/mayan-edms/bin/mayan-edms.py platformtemplate supervisord > /etc/supervisor/conf.d/mayan.conf
|
|
||||||
|
|
||||||
Edit the supervisord configuration file and update any setting the template
|
|
||||||
generator missed::
|
|
||||||
|
|
||||||
sudo vi /etc/supervisor/conf.d/mayan.conf
|
|
||||||
|
|
||||||
Migrate existing database schema with::
|
|
||||||
|
|
||||||
sudo -u mayan MAYAN_DATABASE_ENGINE=django.db.backends.postgresql MAYAN_DATABASE_NAME=mayan \
|
|
||||||
MAYAN_DATABASE_PASSWORD=mayanuserpass MAYAN_DATABASE_USER=mayan \
|
|
||||||
MAYAN_DATABASE_HOST=127.0.0.1 MAYAN_MEDIA_ROOT=/opt/mayan-edms/media \
|
|
||||||
/opt/mayan-edms/bin/mayan-edms.py performupgrade
|
|
||||||
|
|
||||||
Add new static media::
|
|
||||||
|
|
||||||
sudo -u mayan MAYAN_MEDIA_ROOT=/opt/mayan-edms/media \
|
|
||||||
/opt/mayan-edms/bin/mayan-edms.py preparestatic --noinput
|
|
||||||
|
|
||||||
The upgrade procedure is now complete.
|
|
||||||
|
|
||||||
|
|
||||||
Backward incompatible changes
|
|
||||||
-----------------------------
|
|
||||||
|
|
||||||
- None
|
|
||||||
|
|
||||||
|
|
||||||
Bugs fixed or issues closed
|
|
||||||
---------------------------
|
|
||||||
|
|
||||||
- :gitlab-issue:`643` The "Actions" button won't show up, if window size between 992 and 1248 px
|
|
||||||
- :gitlab-issue:`650` Permission denied when MAYAN_USER_UID and MAYAN_USER_GUID are set
|
|
||||||
- :gitlab-issue:`652` MAYAN_USER_GUID cannot be set to specific values
|
|
||||||
- :gitlab-issue:`654` Internal Server Error, Document Checkout
|
|
||||||
- :gitlab-issue:`655` Index setup tree view shows two times the "enabled" field instead of "Link documents"
|
|
||||||
- :gitlab-issue:`657` Mailer password length restriction is too short
|
|
||||||
- :forum-topic:`1039` Re: /api/documents/{id}/cabinets returns 500
|
|
||||||
- :forum-topic:`1050` edit/delete sub-cabinet
|
|
||||||
|
|
||||||
.. _PyPI: https://pypi.python.org/pypi/mayan-edms/
|
|
||||||
@@ -8,109 +8,11 @@ Changes
|
|||||||
-------
|
-------
|
||||||
|
|
||||||
- Add support for icon shadows.
|
- Add support for icon shadows.
|
||||||
- Add icons and no-result template to the object error log view and
|
|
||||||
links.
|
|
||||||
- Use Select2 widget for the document type selection form.
|
|
||||||
- Backport the vertical main menu update. This update splits the previous
|
|
||||||
main menu into a new menu in the same location as the previous one
|
|
||||||
now called the top bar, and a new vertical main menu on the left side.
|
|
||||||
The vertical menu remain open even when clicking on items and upon
|
|
||||||
a browser refresh will also restore its state to match the selected
|
|
||||||
view.
|
|
||||||
- Backport workflow preview refactor. GitLab issue #532.
|
|
||||||
- Add support for source column inheritance.
|
|
||||||
- Add support for source column exclusion.
|
|
||||||
- Backport workflow context support.
|
|
||||||
- Backport workflow transitions field support.
|
|
||||||
- Backport workflow email action.
|
|
||||||
- Backport individual index rebuild support.
|
|
||||||
- Rename the installjavascript command to installdependencies.
|
|
||||||
- Remove database conversion command.
|
|
||||||
- Remove support for quoted configuration entries. Support unquoted,
|
|
||||||
nested dictionaries in the configuration. Requires manual
|
|
||||||
update of existing config.yml files.
|
|
||||||
- Support user specified locations for the configuration file with the
|
|
||||||
CONFIGURATION_FILEPATH (MAYAN_CONFIGURATION_FILEPATH environment variable), and
|
|
||||||
CONFIGURATION_LAST_GOOD_FILEPATH
|
|
||||||
(MAYAN_CONFIGURATION_LAST_GOOD_FILEPATH environment variable) settings.
|
|
||||||
- Move bootstrapped settings code to their own module in the smart_settings apps.
|
|
||||||
- Remove individual database configuration options. All database configuration
|
|
||||||
is now done using MAYAN_DATABASES to mirror Django way of doing database setup.
|
|
||||||
- Added support for YAML encoded environment variables to the platform
|
|
||||||
templates apps.
|
|
||||||
- Move YAML code to its own module. Code now resides in common.serialization
|
|
||||||
in the form of two new functions: yaml_load and yaml_dump.
|
|
||||||
- Move Django and Celery settings. Django settings now reside in the smart
|
|
||||||
settings app. Celery settings now reside in the task manager app.
|
|
||||||
- Backport FakeStorageSubclass from versions/next. Placeholder class to allow
|
|
||||||
serializing the real storage subclass to support migrations.
|
|
||||||
Used by all configurable storages.
|
|
||||||
- Support checking in and out multiple documents.
|
|
||||||
- Remove encapsulate helper.
|
|
||||||
- Add support for menu inheritance.
|
|
||||||
- Emphasize source column labels.
|
|
||||||
- Backport file cache manager app.
|
|
||||||
- Convert document image cache to use file cache manager app.
|
|
||||||
Add setting DOCUMENTS_CACHE_MAXIMUM_SIZE defaults to 500 MB.
|
|
||||||
- Update Celery to version 4.3.0. Settings changed:
|
|
||||||
MAYAN_BROKER_URL to MAYAN_CELERY_BROKER_URL,
|
|
||||||
MAYAN_CELERY_ALWAYS_EAGER to MAYAN_CELERY_TASK_ALWAYS_EAGER.
|
|
||||||
- Replace djcelery and replace it with django-celery-beat.
|
|
||||||
- Update Celery to version 4.3.0 with 55e9b2263cbdb9b449361412fd18d8ee0a442dd3
|
|
||||||
from versions/next, code from GitLab issue #594 and GitLab merge request !55.
|
|
||||||
Thanks to Jakob Haufe (@sur5r) and Jesaja Everling (@jeverling)
|
|
||||||
for much of the research and code updates.
|
|
||||||
- Support wildcard MIME type associations for the file metadata drivers.
|
|
||||||
- Rename MAYAN_GUID to MAYAN_GID
|
|
||||||
- Update Gunicorn to use sync workers.
|
|
||||||
- Include devpi-server as a development dependency.
|
|
||||||
- Update default Docker stack file.
|
|
||||||
- Remove Redis from the Docker image.
|
|
||||||
- Add Celery flower to the Docker image.
|
|
||||||
- Allow PIP proxying to the Docker image during build.
|
|
||||||
- Default Celery worker concurrency to 0 (auto).
|
|
||||||
- Set DJANGO_SETTINGS_MODULE environment variable to make it
|
|
||||||
available to sub processes.
|
|
||||||
- Add entrypoint commands to run single workers, single gunicorn
|
|
||||||
or single celery commands like "flower".
|
|
||||||
- Add platform template to return queues for a worker.
|
|
||||||
- Remove task inspection from task manager app.
|
|
||||||
- Move pagination navigation inside the toolbar.
|
|
||||||
- Remove document image clear link and view.
|
|
||||||
This is now handled by the file caching app.
|
|
||||||
- Add web links app.
|
|
||||||
- Add support to display column help text
|
|
||||||
as a tooltip.
|
|
||||||
- Update numeric dashboard widget to display
|
|
||||||
thousand commas.
|
|
||||||
- Add support for disabling document pages.
|
|
||||||
- Add support for converter layers.
|
|
||||||
- Add redactions app.
|
|
||||||
- Unify all line endings to be Linux style.
|
|
||||||
- Add support for changing the system messages position.
|
|
||||||
GitLab issue #640. Thanks to Matthias Urhahn (@d4rken).
|
|
||||||
|
|
||||||
Removals
|
Removals
|
||||||
--------
|
--------
|
||||||
|
|
||||||
- Database conversion. Reason for removal. The database conversions support
|
- None
|
||||||
provided by this feature (SQLite to PostgreSQL) was being confused with
|
|
||||||
database migrations and upgrades.
|
|
||||||
|
|
||||||
Database upgrades are the responsibility of the app and the framework.
|
|
||||||
Database conversions however are not the responsibility of the app (Mayan),
|
|
||||||
they are the responsibility of the framework.
|
|
||||||
|
|
||||||
Database conversion is outside the scope of what Mayan does but we added
|
|
||||||
the code, management command, instructions and testing setup to provide
|
|
||||||
this to our users until the framework (Django) decided to add this
|
|
||||||
themselves (like they did with migrations).
|
|
||||||
|
|
||||||
Continued confusion about the purpose of the feature and confusion about
|
|
||||||
how errors with this feature were a reflexion of the code quality of
|
|
||||||
Mayannecessitated the removal of the database conversion feature.
|
|
||||||
|
|
||||||
- Django environ
|
|
||||||
|
|
||||||
|
|
||||||
Upgrading from a previous version
|
Upgrading from a previous version
|
||||||
@@ -121,11 +23,11 @@ If installed via Python's PIP
|
|||||||
|
|
||||||
Remove deprecated requirements::
|
Remove deprecated requirements::
|
||||||
|
|
||||||
sudo -u mayan curl https://gitlab.com/mayan-edms/mayan-edms/raw/master/removals.txt -o /tmp/removals.txt && sudo -u mayan /opt/mayan-edms/bin/pip uninstall -y -r /tmp/removals.txt
|
$ curl https://gitlab.com/mayan-edms/mayan-edms/raw/master/removals.txt | pip uninstall -r /dev/stdin
|
||||||
|
|
||||||
Type in the console::
|
Type in the console::
|
||||||
|
|
||||||
/opt/mayan-edms/bin/pip install mayan-edms==3.3
|
$ pip install mayan-edms==3.3
|
||||||
|
|
||||||
the requirements will also be updated automatically.
|
the requirements will also be updated automatically.
|
||||||
|
|
||||||
@@ -135,19 +37,19 @@ Using Git
|
|||||||
|
|
||||||
If you installed Mayan EDMS by cloning the Git repository issue the commands::
|
If you installed Mayan EDMS by cloning the Git repository issue the commands::
|
||||||
|
|
||||||
git reset --hard HEAD
|
$ git reset --hard HEAD
|
||||||
git pull
|
$ git pull
|
||||||
|
|
||||||
otherwise download the compressed archived and uncompress it overriding the
|
otherwise download the compressed archived and uncompress it overriding the
|
||||||
existing installation.
|
existing installation.
|
||||||
|
|
||||||
Remove deprecated requirements::
|
Remove deprecated requirements::
|
||||||
|
|
||||||
pip uninstall -y -r removals.txt
|
$ pip uninstall -y -r removals.txt
|
||||||
|
|
||||||
Next upgrade/add the new requirements::
|
Next upgrade/add the new requirements::
|
||||||
|
|
||||||
pip install --upgrade -r requirements.txt
|
$ pip install --upgrade -r requirements.txt
|
||||||
|
|
||||||
|
|
||||||
Common steps
|
Common steps
|
||||||
@@ -164,8 +66,9 @@ variables values show here with your respective settings. This step will refresh
|
|||||||
the supervisord configuration file with the new queues and the latest
|
the supervisord configuration file with the new queues and the latest
|
||||||
recommended layout::
|
recommended layout::
|
||||||
|
|
||||||
sudo MAYAN_DATABASES="{'default':{'ENGINE':'django.db.backends.postgresql','NAME':'mayan','PASSWORD':'mayanuserpass','USER':'mayan','HOST':'127.0.0.1'}}" \
|
sudo MAYAN_DATABASE_ENGINE=django.db.backends.postgresql MAYAN_DATABASE_NAME=mayan \
|
||||||
MAYAN_MEDIA_ROOT=/opt/mayan-edms/media \
|
MAYAN_DATABASE_PASSWORD=mayanuserpass MAYAN_DATABASE_USER=mayan \
|
||||||
|
MAYAN_DATABASE_HOST=127.0.0.1 MAYAN_MEDIA_ROOT=/opt/mayan-edms/media \
|
||||||
/opt/mayan-edms/bin/mayan-edms.py platformtemplate supervisord > /etc/supervisor/conf.d/mayan.conf
|
/opt/mayan-edms/bin/mayan-edms.py platformtemplate supervisord > /etc/supervisor/conf.d/mayan.conf
|
||||||
|
|
||||||
Edit the supervisord configuration file and update any setting the template
|
Edit the supervisord configuration file and update any setting the template
|
||||||
@@ -175,11 +78,11 @@ generator missed::
|
|||||||
|
|
||||||
Migrate existing database schema with::
|
Migrate existing database schema with::
|
||||||
|
|
||||||
sudo -u mayan MAYAN_MEDIA_ROOT=/opt/mayan-edms/media /opt/mayan-edms/bin/mayan-edms.py performupgrade
|
$ mayan-edms.py performupgrade
|
||||||
|
|
||||||
Add new static media::
|
Add new static media::
|
||||||
|
|
||||||
sudo -u mayan MAYAN_MEDIA_ROOT=/opt/mayan-edms/media /opt/mayan-edms/bin/mayan-edms.py preparestatic --noinput
|
$ mayan-edms.py preparestatic --noinput
|
||||||
|
|
||||||
The upgrade procedure is now complete.
|
The upgrade procedure is now complete.
|
||||||
|
|
||||||
@@ -187,27 +90,12 @@ The upgrade procedure is now complete.
|
|||||||
Backward incompatible changes
|
Backward incompatible changes
|
||||||
-----------------------------
|
-----------------------------
|
||||||
|
|
||||||
- Update quoted settings to be unquoted:
|
- None
|
||||||
|
|
||||||
- COMMON_SHARED_STORAGE_ARGUMENTS
|
|
||||||
- CONVERTER_GRAPHICS_BACKEND_ARGUMENTS
|
|
||||||
- DOCUMENTS_CACHE_STORAGE_BACKEND_ARGUMENTS
|
|
||||||
- DOCUMENTS_STORAGE_BACKEND_ARGUMENTS
|
|
||||||
- FILE_METADATA_DRIVERS_ARGUMENTS
|
|
||||||
- SIGNATURES_STORAGE_BACKEND_ARGUMENTS
|
|
||||||
|
|
||||||
|
|
||||||
Bugs fixed or issues closed
|
Bugs fixed or issues closed
|
||||||
---------------------------
|
---------------------------
|
||||||
|
|
||||||
- :gitlab-issue:`526` RuntimeWarning: Never call result.get() within a task!
|
- :gitlab-issue:`XX`
|
||||||
- :gitlab-issue:`532` Workflow preview isn't updated right after transitions are modified
|
|
||||||
- :gitlab-issue:`540` hint-outdated/update documentation
|
|
||||||
- :gitlab-issue:`594` 3.2b1: Unable to install/run under Python 3.5/3.6/3.7
|
|
||||||
- :gitlab-issue:`634` Failing docker entrypoint when using secret config
|
|
||||||
- :gitlab-issue:`635` Build a docker image for Python3
|
|
||||||
- :gitlab-issue:`640` UX: "Toast" Popup position prevents access to actions
|
|
||||||
- :gitlab-issue:`644` Update sane-utils package in docker image.
|
|
||||||
|
|
||||||
|
|
||||||
.. _PyPI: https://pypi.python.org/pypi/mayan-edms/
|
.. _PyPI: https://pypi.python.org/pypi/mayan-edms/
|
||||||
|
|||||||
@@ -21,8 +21,6 @@ versions of the documentation contain the release notes for any later releases.
|
|||||||
:maxdepth: 1
|
:maxdepth: 1
|
||||||
|
|
||||||
3.3
|
3.3
|
||||||
3.2.7
|
|
||||||
3.2.6
|
|
||||||
3.2.5
|
3.2.5
|
||||||
3.2.4
|
3.2.4
|
||||||
3.2.3
|
3.2.3
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
__title__ = 'Mayan EDMS'
|
__title__ = 'Mayan EDMS'
|
||||||
__version__ = '3.2.7'
|
__version__ = '3.2.5'
|
||||||
__build__ = 0x030207
|
__build__ = 0x030205
|
||||||
__build_string__ = 'v3.2.7_Wed Aug 28 17:31:08 2019 -0400'
|
__build_string__ = 'v3.2.5_Fri Jul 5 16:39:17 2019 -0400'
|
||||||
__django_version__ = '1.11'
|
__django_version__ = '1.11'
|
||||||
__author__ = 'Roberto Rosario'
|
__author__ = 'Roberto Rosario'
|
||||||
__author_email__ = 'roberto.rosario@mayan-edms.com'
|
__author_email__ = 'roberto.rosario@mayan-edms.com'
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ logger = logging.getLogger(__name__)
|
|||||||
class ModelPermission(object):
|
class ModelPermission(object):
|
||||||
_functions = {}
|
_functions = {}
|
||||||
_inheritances = {}
|
_inheritances = {}
|
||||||
_manager_names = {}
|
|
||||||
_registry = {}
|
_registry = {}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@@ -21,6 +20,22 @@ class ModelPermission(object):
|
|||||||
# TODO: Find method to revert the add_to_class('acls'...)
|
# TODO: Find method to revert the add_to_class('acls'...)
|
||||||
# delattr doesn't work.
|
# delattr doesn't work.
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def register(cls, model, permissions):
|
||||||
|
from django.contrib.contenttypes.fields import GenericRelation
|
||||||
|
|
||||||
|
cls._registry.setdefault(model, [])
|
||||||
|
for permission in permissions:
|
||||||
|
cls._registry[model].append(permission)
|
||||||
|
|
||||||
|
AccessControlList = apps.get_model(
|
||||||
|
app_label='acls', model_name='AccessControlList'
|
||||||
|
)
|
||||||
|
|
||||||
|
model.add_to_class(
|
||||||
|
name='acls', value=GenericRelation(AccessControlList)
|
||||||
|
)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_classes(cls, as_content_type=False):
|
def get_classes(cls, as_content_type=False):
|
||||||
ContentType = apps.get_model(
|
ContentType = apps.get_model(
|
||||||
@@ -82,40 +97,6 @@ class ModelPermission(object):
|
|||||||
def get_inheritance(cls, model):
|
def get_inheritance(cls, model):
|
||||||
return cls._inheritances[model]
|
return cls._inheritances[model]
|
||||||
|
|
||||||
@classmethod
|
|
||||||
def get_manager(cls, model):
|
|
||||||
try:
|
|
||||||
manager_name = cls.get_manager_name(model=model)
|
|
||||||
except KeyError:
|
|
||||||
manager_name = None
|
|
||||||
|
|
||||||
if manager_name:
|
|
||||||
manager = getattr(model, manager_name)
|
|
||||||
else:
|
|
||||||
manager = model._meta.default_manager
|
|
||||||
|
|
||||||
return manager
|
|
||||||
|
|
||||||
@classmethod
|
|
||||||
def get_manager_name(cls, model):
|
|
||||||
return cls._manager_names[model]
|
|
||||||
|
|
||||||
@classmethod
|
|
||||||
def register(cls, model, permissions):
|
|
||||||
from django.contrib.contenttypes.fields import GenericRelation
|
|
||||||
|
|
||||||
cls._registry.setdefault(model, [])
|
|
||||||
for permission in permissions:
|
|
||||||
cls._registry[model].append(permission)
|
|
||||||
|
|
||||||
AccessControlList = apps.get_model(
|
|
||||||
app_label='acls', model_name='AccessControlList'
|
|
||||||
)
|
|
||||||
|
|
||||||
model.add_to_class(
|
|
||||||
name='acls', value=GenericRelation(AccessControlList)
|
|
||||||
)
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def register_function(cls, model, function):
|
def register_function(cls, model, function):
|
||||||
cls._functions[model] = function
|
cls._functions[model] = function
|
||||||
@@ -123,7 +104,3 @@ class ModelPermission(object):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def register_inheritance(cls, model, related):
|
def register_inheritance(cls, model, related):
|
||||||
cls._inheritances[model] = related
|
cls._inheritances[model] = related
|
||||||
|
|
||||||
@classmethod
|
|
||||||
def register_manager(cls, model, manager_name):
|
|
||||||
cls._manager_names[model] = manager_name
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Arabic (http://www.transifex.com/rosarior/mayan-edms/language/ar/)\n"
|
"Language-Team: Arabic (http://www.transifex.com/rosarior/mayan-edms/language/ar/)\n"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Bulgarian (http://www.transifex.com/rosarior/mayan-edms/language/bg/)\n"
|
"Language-Team: Bulgarian (http://www.transifex.com/rosarior/mayan-edms/language/bg/)\n"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Bosnian (Bosnia and Herzegovina) (http://www.transifex.com/rosarior/mayan-edms/language/bs_BA/)\n"
|
"Language-Team: Bosnian (Bosnia and Herzegovina) (http://www.transifex.com/rosarior/mayan-edms/language/bs_BA/)\n"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Czech (http://www.transifex.com/rosarior/mayan-edms/language/cs/)\n"
|
"Language-Team: Czech (http://www.transifex.com/rosarior/mayan-edms/language/cs/)\n"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Danish (Denmark) (http://www.transifex.com/rosarior/mayan-edms/language/da_DK/)\n"
|
"Language-Team: Danish (Denmark) (http://www.transifex.com/rosarior/mayan-edms/language/da_DK/)\n"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: German (Germany) (http://www.transifex.com/rosarior/mayan-edms/language/de_DE/)\n"
|
"Language-Team: German (Germany) (http://www.transifex.com/rosarior/mayan-edms/language/de_DE/)\n"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Greek (http://www.transifex.com/rosarior/mayan-edms/language/el/)\n"
|
"Language-Team: Greek (http://www.transifex.com/rosarior/mayan-edms/language/el/)\n"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-06-15 07:51+0000\n"
|
"PO-Revision-Date: 2019-06-15 07:51+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Spanish (http://www.transifex.com/rosarior/mayan-edms/language/es/)\n"
|
"Language-Team: Spanish (http://www.transifex.com/rosarior/mayan-edms/language/es/)\n"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Persian (http://www.transifex.com/rosarior/mayan-edms/language/fa/)\n"
|
"Language-Team: Persian (http://www.transifex.com/rosarior/mayan-edms/language/fa/)\n"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: French (http://www.transifex.com/rosarior/mayan-edms/language/fr/)\n"
|
"Language-Team: French (http://www.transifex.com/rosarior/mayan-edms/language/fr/)\n"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Hungarian (http://www.transifex.com/rosarior/mayan-edms/language/hu/)\n"
|
"Language-Team: Hungarian (http://www.transifex.com/rosarior/mayan-edms/language/hu/)\n"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Indonesian (http://www.transifex.com/rosarior/mayan-edms/language/id/)\n"
|
"Language-Team: Indonesian (http://www.transifex.com/rosarior/mayan-edms/language/id/)\n"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Italian (http://www.transifex.com/rosarior/mayan-edms/language/it/)\n"
|
"Language-Team: Italian (http://www.transifex.com/rosarior/mayan-edms/language/it/)\n"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-06-28 11:16+0000\n"
|
"PO-Revision-Date: 2019-06-28 11:16+0000\n"
|
||||||
"Last-Translator: Māris Teivāns <maris.teivans@gmail.com>\n"
|
"Last-Translator: Māris Teivāns <maris.teivans@gmail.com>\n"
|
||||||
"Language-Team: Latvian (http://www.transifex.com/rosarior/mayan-edms/language/lv/)\n"
|
"Language-Team: Latvian (http://www.transifex.com/rosarior/mayan-edms/language/lv/)\n"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Dutch (Netherlands) (http://www.transifex.com/rosarior/mayan-edms/language/nl_NL/)\n"
|
"Language-Team: Dutch (Netherlands) (http://www.transifex.com/rosarior/mayan-edms/language/nl_NL/)\n"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Polish (http://www.transifex.com/rosarior/mayan-edms/language/pl/)\n"
|
"Language-Team: Polish (http://www.transifex.com/rosarior/mayan-edms/language/pl/)\n"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Portuguese (http://www.transifex.com/rosarior/mayan-edms/language/pt/)\n"
|
"Language-Team: Portuguese (http://www.transifex.com/rosarior/mayan-edms/language/pt/)\n"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/rosarior/mayan-edms/language/pt_BR/)\n"
|
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/rosarior/mayan-edms/language/pt_BR/)\n"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-06-18 15:35+0000\n"
|
"PO-Revision-Date: 2019-06-18 15:35+0000\n"
|
||||||
"Last-Translator: Harald Ersch\n"
|
"Last-Translator: Harald Ersch\n"
|
||||||
"Language-Team: Romanian (Romania) (http://www.transifex.com/rosarior/mayan-edms/language/ro_RO/)\n"
|
"Language-Team: Romanian (Romania) (http://www.transifex.com/rosarior/mayan-edms/language/ro_RO/)\n"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Russian (http://www.transifex.com/rosarior/mayan-edms/language/ru/)\n"
|
"Language-Team: Russian (http://www.transifex.com/rosarior/mayan-edms/language/ru/)\n"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Slovenian (Slovenia) (http://www.transifex.com/rosarior/mayan-edms/language/sl_SI/)\n"
|
"Language-Team: Slovenian (Slovenia) (http://www.transifex.com/rosarior/mayan-edms/language/sl_SI/)\n"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Turkish (Turkey) (http://www.transifex.com/rosarior/mayan-edms/language/tr_TR/)\n"
|
"Language-Team: Turkish (Turkey) (http://www.transifex.com/rosarior/mayan-edms/language/tr_TR/)\n"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Vietnamese (Viet Nam) (http://www.transifex.com/rosarior/mayan-edms/language/vi_VN/)\n"
|
"Language-Team: Vietnamese (Viet Nam) (http://www.transifex.com/rosarior/mayan-edms/language/vi_VN/)\n"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
"PO-Revision-Date: 2019-06-15 07:48+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Chinese (http://www.transifex.com/rosarior/mayan-edms/language/zh/)\n"
|
"Language-Team: Chinese (http://www.transifex.com/rosarior/mayan-edms/language/zh/)\n"
|
||||||
|
|||||||
@@ -45,8 +45,8 @@ class AccessControlListManager(models.Manager):
|
|||||||
# 4: No related field, but has an inherited related field, solved by
|
# 4: No related field, but has an inherited related field, solved by
|
||||||
# recursion, branches to #2 or #3.
|
# recursion, branches to #2 or #3.
|
||||||
# 5: Inherited field of a related field
|
# 5: Inherited field of a related field
|
||||||
# 6: Inherited field of a related field that is Generic Foreign Key
|
|
||||||
# -- Not addressed yet --
|
# -- Not addressed yet --
|
||||||
|
# 6: Inherited field of a related field that is Generic Foreign Key
|
||||||
# 7: Has a related function
|
# 7: Has a related function
|
||||||
result = []
|
result = []
|
||||||
|
|
||||||
@@ -58,28 +58,10 @@ class AccessControlListManager(models.Manager):
|
|||||||
if isinstance(related_field, GenericForeignKey):
|
if isinstance(related_field, GenericForeignKey):
|
||||||
# Case 3: Generic Foreign Key, multiple ContentTypes + object
|
# Case 3: Generic Foreign Key, multiple ContentTypes + object
|
||||||
# id combinations
|
# id combinations
|
||||||
# Also handles case #6 using the parent related field
|
|
||||||
# reference template.
|
|
||||||
|
|
||||||
# Craft a double underscore reference to a previous related
|
|
||||||
# field in the case where multiple related fields are
|
|
||||||
# associated.
|
|
||||||
# Example: object_layer__content_type
|
|
||||||
recuisive_related_reference = '__'.join(related_field_name.split('__')[0:-1])
|
|
||||||
|
|
||||||
# If there is at least one parent related field we add a
|
|
||||||
# double underscore to make it a valid filter template.
|
|
||||||
if recuisive_related_reference:
|
|
||||||
recuisive_related_reference = '{}__'.format(recuisive_related_reference)
|
|
||||||
|
|
||||||
content_type_object_id_queryset = queryset.annotate(
|
content_type_object_id_queryset = queryset.annotate(
|
||||||
ct_fk_combination=Concat(
|
ct_fk_combination=Concat(
|
||||||
'{}{}'.format(
|
related_field.ct_field, Value('-'),
|
||||||
recuisive_related_reference, related_field.ct_field
|
related_field.fk_field, output_field=CharField()
|
||||||
), Value('-'),
|
|
||||||
'{}{}'.format(
|
|
||||||
recuisive_related_reference, related_field.fk_field
|
|
||||||
), output_field=CharField()
|
|
||||||
)
|
)
|
||||||
).values('ct_fk_combination')
|
).values('ct_fk_combination')
|
||||||
|
|
||||||
@@ -93,7 +75,8 @@ class AccessControlListManager(models.Manager):
|
|||||||
ct_fk_combination__in=content_type_object_id_queryset
|
ct_fk_combination__in=content_type_object_id_queryset
|
||||||
).values('object_id')
|
).values('object_id')
|
||||||
|
|
||||||
field_lookup = '{}object_id__in'.format(recuisive_related_reference)
|
field_lookup = 'object_id__in'
|
||||||
|
|
||||||
result.append(Q(**{field_lookup: acl_filter}))
|
result.append(Q(**{field_lookup: acl_filter}))
|
||||||
else:
|
else:
|
||||||
# Case 2: Related field of a single type, single ContentType,
|
# Case 2: Related field of a single type, single ContentType,
|
||||||
@@ -114,7 +97,6 @@ class AccessControlListManager(models.Manager):
|
|||||||
|
|
||||||
# Case 5: Related field, has an inherited related field itself
|
# Case 5: Related field, has an inherited related field itself
|
||||||
# Bubble up permssion check
|
# Bubble up permssion check
|
||||||
# Recurse and reduce
|
|
||||||
# TODO: Add relationship support: OR or AND
|
# TODO: Add relationship support: OR or AND
|
||||||
# TODO: OR for document pages, version, doc, and types
|
# TODO: OR for document pages, version, doc, and types
|
||||||
# TODO: AND for new cabinet levels ACLs
|
# TODO: AND for new cabinet levels ACLs
|
||||||
@@ -218,26 +200,28 @@ class AccessControlListManager(models.Manager):
|
|||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def check_access(self, obj, permissions, user):
|
def check_access(self, obj, permissions, user, manager=None):
|
||||||
# Allow specific managers for models that have more than one
|
# Allow specific managers for models that have more than one
|
||||||
# for example the Document model when checking for access for a trashed
|
# for example the Document model when checking for access for a trashed
|
||||||
# document.
|
# document.
|
||||||
|
|
||||||
meta = getattr(obj, '_meta', None)
|
if manager:
|
||||||
|
|
||||||
if not meta:
|
|
||||||
logger.debug(
|
|
||||||
ugettext(
|
|
||||||
'Object "%s" is not a model and cannot be checked for '
|
|
||||||
'access.'
|
|
||||||
) % force_text(obj)
|
|
||||||
)
|
|
||||||
return True
|
|
||||||
else:
|
|
||||||
manager = ModelPermission.get_manager(model=obj._meta.model)
|
|
||||||
source_queryset = manager.all()
|
source_queryset = manager.all()
|
||||||
|
else:
|
||||||
|
meta = getattr(obj, '_meta', None)
|
||||||
|
|
||||||
restricted_queryset = manager.none()
|
if not meta:
|
||||||
|
logger.debug(
|
||||||
|
ugettext(
|
||||||
|
'Object "%s" is not a model and cannot be checked for '
|
||||||
|
'access.'
|
||||||
|
) % force_text(obj)
|
||||||
|
)
|
||||||
|
return True
|
||||||
|
else:
|
||||||
|
source_queryset = obj._meta.default_manager.all()
|
||||||
|
|
||||||
|
restricted_queryset = obj._meta.default_manager.none()
|
||||||
for permission in permissions:
|
for permission in permissions:
|
||||||
# Default relationship betweens permissions is OR
|
# Default relationship betweens permissions is OR
|
||||||
# TODO: Add support for AND relationship
|
# TODO: Add support for AND relationship
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ from __future__ import absolute_import, unicode_literals
|
|||||||
from rest_framework import status
|
from rest_framework import status
|
||||||
|
|
||||||
from mayan.apps.permissions.tests.literals import TEST_ROLE_LABEL
|
from mayan.apps.permissions.tests.literals import TEST_ROLE_LABEL
|
||||||
from mayan.apps.rest_api.tests.base import BaseAPITestCase
|
from mayan.apps.rest_api.tests import BaseAPITestCase
|
||||||
|
|
||||||
from ..models import AccessControlList
|
from ..models import AccessControlList
|
||||||
from ..permissions import permission_acl_edit, permission_acl_view
|
from ..permissions import permission_acl_edit, permission_acl_view
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
from __future__ import absolute_import, unicode_literals
|
from __future__ import absolute_import, unicode_literals
|
||||||
|
|
||||||
from mayan.apps.common.tests.base import BaseTestCase
|
from mayan.apps.common.tests import BaseTestCase
|
||||||
|
|
||||||
from ..classes import ModelPermission
|
from ..classes import ModelPermission
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ from __future__ import unicode_literals
|
|||||||
|
|
||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
|
|
||||||
from mayan.apps.common.tests.base import GenericViewTestCase
|
from mayan.apps.common.tests import GenericViewTestCase
|
||||||
|
|
||||||
from ..links import (
|
from ..links import (
|
||||||
link_acl_delete, link_acl_list, link_acl_create, link_acl_permissions
|
link_acl_delete, link_acl_list, link_acl_create, link_acl_permissions
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ from __future__ import absolute_import, unicode_literals
|
|||||||
from django.core.exceptions import PermissionDenied
|
from django.core.exceptions import PermissionDenied
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
|
||||||
from mayan.apps.common.tests.base import BaseTestCase
|
from mayan.apps.common.tests import BaseTestCase
|
||||||
|
|
||||||
from ..classes import ModelPermission
|
from ..classes import ModelPermission
|
||||||
from ..models import AccessControlList
|
from ..models import AccessControlList
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
from __future__ import absolute_import, unicode_literals
|
from __future__ import absolute_import, unicode_literals
|
||||||
|
|
||||||
from mayan.apps.common.tests.base import GenericViewTestCase
|
from mayan.apps.common.tests import GenericViewTestCase
|
||||||
|
|
||||||
from ..models import AccessControlList
|
from ..models import AccessControlList
|
||||||
from ..permissions import permission_acl_edit, permission_acl_view
|
from ..permissions import permission_acl_edit, permission_acl_view
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ from mayan.apps.permissions.models import Role
|
|||||||
from .classes import ModelPermission
|
from .classes import ModelPermission
|
||||||
from .permissions import permission_acl_edit
|
from .permissions import permission_acl_edit
|
||||||
|
|
||||||
|
__all__ = ('GrantAccessAction', 'RevokeAccessAction')
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
@@ -56,7 +57,7 @@ class GrantAccessAction(WorkflowAction):
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
field_order = ('content_type', 'object_id', 'roles', 'permissions')
|
field_order = ('content_type', 'object_id', 'roles', 'permissions')
|
||||||
label = _('Grant object access')
|
label = _('Grant access')
|
||||||
widgets = {
|
widgets = {
|
||||||
'content_type': {
|
'content_type': {
|
||||||
'class': 'django.forms.widgets.Select', 'kwargs': {
|
'class': 'django.forms.widgets.Select', 'kwargs': {
|
||||||
@@ -139,7 +140,7 @@ class GrantAccessAction(WorkflowAction):
|
|||||||
|
|
||||||
|
|
||||||
class RevokeAccessAction(GrantAccessAction):
|
class RevokeAccessAction(GrantAccessAction):
|
||||||
label = _('Revoke object access')
|
label = _('Revoke access')
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
self.get_execute_data()
|
self.get_execute_data()
|
||||||
|
|||||||
@@ -1,2 +1 @@
|
|||||||
DEFAULT_MAXIMUM_TITLE_LENGTH = 120
|
DEFAULT_MAXIMUM_TITLE_LENGTH = 120
|
||||||
DEFAULT_MESSAGE_POSITION = 'top-right'
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Arabic (http://www.transifex.com/rosarior/mayan-edms/language/ar/)\n"
|
"Language-Team: Arabic (http://www.transifex.com/rosarior/mayan-edms/language/ar/)\n"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Bulgarian (http://www.transifex.com/rosarior/mayan-edms/language/bg/)\n"
|
"Language-Team: Bulgarian (http://www.transifex.com/rosarior/mayan-edms/language/bg/)\n"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Bosnian (Bosnia and Herzegovina) (http://www.transifex.com/rosarior/mayan-edms/language/bs_BA/)\n"
|
"Language-Team: Bosnian (Bosnia and Herzegovina) (http://www.transifex.com/rosarior/mayan-edms/language/bs_BA/)\n"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Czech (http://www.transifex.com/rosarior/mayan-edms/language/cs/)\n"
|
"Language-Team: Czech (http://www.transifex.com/rosarior/mayan-edms/language/cs/)\n"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Danish (Denmark) (http://www.transifex.com/rosarior/mayan-edms/language/da_DK/)\n"
|
"Language-Team: Danish (Denmark) (http://www.transifex.com/rosarior/mayan-edms/language/da_DK/)\n"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: German (Germany) (http://www.transifex.com/rosarior/mayan-edms/language/de_DE/)\n"
|
"Language-Team: German (Germany) (http://www.transifex.com/rosarior/mayan-edms/language/de_DE/)\n"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Greek (http://www.transifex.com/rosarior/mayan-edms/language/el/)\n"
|
"Language-Team: Greek (http://www.transifex.com/rosarior/mayan-edms/language/el/)\n"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-07-05 06:49+0000\n"
|
"PO-Revision-Date: 2019-07-05 06:49+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Spanish (http://www.transifex.com/rosarior/mayan-edms/language/es/)\n"
|
"Language-Team: Spanish (http://www.transifex.com/rosarior/mayan-edms/language/es/)\n"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Persian (http://www.transifex.com/rosarior/mayan-edms/language/fa/)\n"
|
"Language-Team: Persian (http://www.transifex.com/rosarior/mayan-edms/language/fa/)\n"
|
||||||
|
|||||||
Binary file not shown.
@@ -13,9 +13,9 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-08-22 14:03+0000\n"
|
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
||||||
"Last-Translator: Frédéric Sheedy <sheedf@gmail.com>\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: French (http://www.transifex.com/rosarior/mayan-edms/language/fr/)\n"
|
"Language-Team: French (http://www.transifex.com/rosarior/mayan-edms/language/fr/)\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
@@ -195,7 +195,7 @@ msgstr "Avertissement"
|
|||||||
msgid ""
|
msgid ""
|
||||||
"Settings updated, restart your installation for changes to take proper "
|
"Settings updated, restart your installation for changes to take proper "
|
||||||
"effect."
|
"effect."
|
||||||
msgstr "Les paramètres ont été mis à jour, redémarrez votre installation pour que les modifications prennent effet."
|
msgstr ""
|
||||||
|
|
||||||
#: templates/appearance/base.html:59
|
#: templates/appearance/base.html:59
|
||||||
#: templates/appearance/generic_list_items_subtemplate.html:104
|
#: templates/appearance/generic_list_items_subtemplate.html:104
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Hungarian (http://www.transifex.com/rosarior/mayan-edms/language/hu/)\n"
|
"Language-Team: Hungarian (http://www.transifex.com/rosarior/mayan-edms/language/hu/)\n"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Indonesian (http://www.transifex.com/rosarior/mayan-edms/language/id/)\n"
|
"Language-Team: Indonesian (http://www.transifex.com/rosarior/mayan-edms/language/id/)\n"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Italian (http://www.transifex.com/rosarior/mayan-edms/language/it/)\n"
|
"Language-Team: Italian (http://www.transifex.com/rosarior/mayan-edms/language/it/)\n"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Latvian (http://www.transifex.com/rosarior/mayan-edms/language/lv/)\n"
|
"Language-Team: Latvian (http://www.transifex.com/rosarior/mayan-edms/language/lv/)\n"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Dutch (Netherlands) (http://www.transifex.com/rosarior/mayan-edms/language/nl_NL/)\n"
|
"Language-Team: Dutch (Netherlands) (http://www.transifex.com/rosarior/mayan-edms/language/nl_NL/)\n"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Polish (http://www.transifex.com/rosarior/mayan-edms/language/pl/)\n"
|
"Language-Team: Polish (http://www.transifex.com/rosarior/mayan-edms/language/pl/)\n"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Portuguese (http://www.transifex.com/rosarior/mayan-edms/language/pt/)\n"
|
"Language-Team: Portuguese (http://www.transifex.com/rosarior/mayan-edms/language/pt/)\n"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/rosarior/mayan-edms/language/pt_BR/)\n"
|
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/rosarior/mayan-edms/language/pt_BR/)\n"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Romanian (Romania) (http://www.transifex.com/rosarior/mayan-edms/language/ro_RO/)\n"
|
"Language-Team: Romanian (Romania) (http://www.transifex.com/rosarior/mayan-edms/language/ro_RO/)\n"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Russian (http://www.transifex.com/rosarior/mayan-edms/language/ru/)\n"
|
"Language-Team: Russian (http://www.transifex.com/rosarior/mayan-edms/language/ru/)\n"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Slovenian (Slovenia) (http://www.transifex.com/rosarior/mayan-edms/language/sl_SI/)\n"
|
"Language-Team: Slovenian (Slovenia) (http://www.transifex.com/rosarior/mayan-edms/language/sl_SI/)\n"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Turkish (Turkey) (http://www.transifex.com/rosarior/mayan-edms/language/tr_TR/)\n"
|
"Language-Team: Turkish (Turkey) (http://www.transifex.com/rosarior/mayan-edms/language/tr_TR/)\n"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Vietnamese (Viet Nam) (http://www.transifex.com/rosarior/mayan-edms/language/vi_VN/)\n"
|
"Language-Team: Vietnamese (Viet Nam) (http://www.transifex.com/rosarior/mayan-edms/language/vi_VN/)\n"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Mayan EDMS\n"
|
"Project-Id-Version: Mayan EDMS\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-08-25 20:27-0400\n"
|
"POT-Creation-Date: 2019-07-05 01:27-0400\n"
|
||||||
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
"PO-Revision-Date: 2019-07-05 05:33+0000\n"
|
||||||
"Last-Translator: Roberto Rosario\n"
|
"Last-Translator: Roberto Rosario\n"
|
||||||
"Language-Team: Chinese (http://www.transifex.com/rosarior/mayan-edms/language/zh/)\n"
|
"Language-Team: Chinese (http://www.transifex.com/rosarior/mayan-edms/language/zh/)\n"
|
||||||
|
|||||||
@@ -2,9 +2,9 @@ from __future__ import unicode_literals
|
|||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
from mayan.apps.smart_settings.classes import Namespace
|
from mayan.apps.smart_settings import Namespace
|
||||||
|
|
||||||
from .literals import DEFAULT_MAXIMUM_TITLE_LENGTH, DEFAULT_MESSAGE_POSITION
|
from .literals import DEFAULT_MAXIMUM_TITLE_LENGTH
|
||||||
|
|
||||||
namespace = Namespace(label=_('Appearance'), name='appearance')
|
namespace = Namespace(label=_('Appearance'), name='appearance')
|
||||||
|
|
||||||
@@ -15,11 +15,3 @@ setting_max_title_length = namespace.add_setting(
|
|||||||
'title.'
|
'title.'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
setting_message_position = namespace.add_setting(
|
|
||||||
default=DEFAULT_MESSAGE_POSITION,
|
|
||||||
global_name='APPEARANCE_MESSAGE_POSITION', help_text=_(
|
|
||||||
'Position where the system message will be displayed. Options are: '
|
|
||||||
'top-left, top-center, top-right, bottom-left, bottom-center, '
|
|
||||||
'bottom-right.'
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
padding-top: 60px;
|
padding-top: 70px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-brand {
|
.navbar-brand {
|
||||||
@@ -98,10 +98,14 @@ hr {
|
|||||||
min-height: 120px;
|
min-height: 120px;
|
||||||
padding-bottom: 1px;
|
padding-bottom: 1px;
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
text-shadow: 1px 1px 3px rgba(0, 0, 0, 1);
|
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-block .fa {
|
||||||
|
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
.radio ul li {
|
.radio ul li {
|
||||||
list-style-type:none;
|
list-style-type:none;
|
||||||
}
|
}
|
||||||
@@ -111,10 +115,14 @@ a i {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dashboard-widget {
|
.dashboard-widget {
|
||||||
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
|
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dashboard-widget .panel-heading i {
|
||||||
|
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
.dashboard-widget-icon {
|
.dashboard-widget-icon {
|
||||||
font-size: 200%;
|
font-size: 200%;
|
||||||
}
|
}
|
||||||
@@ -208,22 +216,6 @@ a i {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.source-column-label {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.panel-highlighted {
|
|
||||||
box-shadow: 0px 0px 3px #18bc9c, 10px 10px 20px #000000;
|
|
||||||
}
|
|
||||||
|
|
||||||
.panel-highlighted:hover {
|
|
||||||
box-shadow: 0px 0px 3px #18bc9c, 10px 10px 20px #000000, 0px 0px 8px #000000;
|
|
||||||
}
|
|
||||||
|
|
||||||
.panel-item:not(.panel-highlighted):hover {
|
|
||||||
box-shadow: 0px 0px 8px #000000;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Content */
|
/* Content */
|
||||||
@media (min-width:1200px) {
|
@media (min-width:1200px) {
|
||||||
.container-fluid {
|
.container-fluid {
|
||||||
@@ -253,6 +245,14 @@ a i {
|
|||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.thin_border {
|
||||||
|
border: 1px solid black;
|
||||||
|
display: block;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.thin_border-thumbnail {
|
.thin_border-thumbnail {
|
||||||
display: block;
|
display: block;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
@@ -262,18 +262,10 @@ a i {
|
|||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Must go after .thin_border-thumbnail */
|
|
||||||
.thin_border {
|
|
||||||
border: 1px solid black;
|
|
||||||
display: inline;
|
|
||||||
margin-left: 0px;
|
|
||||||
margin-right: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ajax-spinner {
|
#ajax-spinner {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 16px;
|
top: 12px;
|
||||||
left: 10px;
|
right: 10px;
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
width: 25px;
|
width: 25px;
|
||||||
height: 25px;
|
height: 25px;
|
||||||
@@ -339,7 +331,7 @@ a i {
|
|||||||
.main {
|
.main {
|
||||||
padding-right: 0px;
|
padding-right: 0px;
|
||||||
padding-left: 0px;
|
padding-left: 0px;
|
||||||
margin-left: 210px;
|
/*margin-left: 210px;*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -421,139 +413,3 @@ a i {
|
|||||||
.btn-list {
|
.btn-list {
|
||||||
margin-bottom: 2px;
|
margin-bottom: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Top navigation
|
|
||||||
* Hide default border to remove 1px line.
|
|
||||||
*/
|
|
||||||
.navbar-fixed-top {
|
|
||||||
border: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* menu_main */
|
|
||||||
/* Hide for mobile, show later */
|
|
||||||
|
|
||||||
#menu-main {
|
|
||||||
display: none;
|
|
||||||
background-color: #2c3e50;
|
|
||||||
border-right: 1px solid #18bc9c;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
overflow-x: hidden;
|
|
||||||
overflow-y: auto;
|
|
||||||
padding-top: 10px;
|
|
||||||
position: fixed;
|
|
||||||
top: 51px;
|
|
||||||
width: 210px;
|
|
||||||
z-index: 1000;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
|
||||||
#menu-main {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-brand {
|
|
||||||
text-align: center;
|
|
||||||
width: 210px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.main .page-header {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-brand {
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-brand {
|
|
||||||
outline: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.container-fluid {
|
|
||||||
margin-right: 0px;
|
|
||||||
margin-left: 0px;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#accordion-sidebar a {
|
|
||||||
padding: 10px 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#accordion-sidebar a[aria-expanded="true"] {
|
|
||||||
background: #1a242f;
|
|
||||||
}
|
|
||||||
|
|
||||||
#accordion-sidebar .panel {
|
|
||||||
border: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#accordion-sidebar a {
|
|
||||||
text-decoration: none;
|
|
||||||
outline: none;
|
|
||||||
position: relative;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
#accordion-sidebar .panel-heading {
|
|
||||||
background-color: #2c3e50;
|
|
||||||
color: white;
|
|
||||||
padding: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#accordion-sidebar .panel-heading:hover {
|
|
||||||
background-color: #517394;
|
|
||||||
}
|
|
||||||
|
|
||||||
#accordion-sidebar > .panel > div > .panel-body > ul > li > a:hover {
|
|
||||||
background-color: #517394;
|
|
||||||
}
|
|
||||||
|
|
||||||
#accordion-sidebar > .panel > div > .panel-body > ul > li.active {
|
|
||||||
background: #1a242f;
|
|
||||||
}
|
|
||||||
|
|
||||||
#accordion-sidebar .panel-title {
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#accordion-sidebar .panel-body {
|
|
||||||
font-size: 13px;
|
|
||||||
border: 0px;
|
|
||||||
background-color: #2c3e50;
|
|
||||||
padding-top: 5px;
|
|
||||||
padding-left: 20px;
|
|
||||||
padding-right: 0px;
|
|
||||||
padding-bottom: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#accordion-sidebar .panel-body li {
|
|
||||||
padding: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#accordion-sidebar .panel-body a {
|
|
||||||
color: white;
|
|
||||||
text-decoration: none;
|
|
||||||
padding: 9px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-fixed-top {
|
|
||||||
box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.4);
|
|
||||||
}
|
|
||||||
|
|
||||||
.toolbar {
|
|
||||||
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
||||||
box-shadow: 1px 1px 2px rgba(0, 0, 0, .3);
|
|
||||||
margin-bottom: 10px;
|
|
||||||
padding-bottom: 8px;
|
|
||||||
padding-left: 12px;
|
|
||||||
padding-right: 15px;
|
|
||||||
padding-top: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#body-plain {
|
|
||||||
padding-top: 0px;
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -6,8 +6,7 @@ var MayanAppClass = MayanApp;
|
|||||||
|
|
||||||
var partialNavigation = new PartialNavigation({
|
var partialNavigation = new PartialNavigation({
|
||||||
initialURL: initialURL,
|
initialURL: initialURL,
|
||||||
disabledAnchorClasses: [
|
disabledAnchorClasses: ['disabled'],
|
||||||
'btn-multi-item-action', 'disabled', 'pagination-disabled'
|
|
||||||
],
|
|
||||||
excludeAnchorClasses: ['fancybox', 'new_window', 'non-ajax'],
|
excludeAnchorClasses: ['fancybox', 'new_window', 'non-ajax'],
|
||||||
|
formBeforeSerializeCallbacks: [MayanApp.MultiObjectFormProcess],
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ class MayanApp {
|
|||||||
constructor (options) {
|
constructor (options) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
this.options = options || {
|
options = options || {
|
||||||
ajaxMenusOptions: []
|
ajaxMenusOptions: []
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -17,57 +17,37 @@ class MayanApp {
|
|||||||
|
|
||||||
// Class methods and variables
|
// Class methods and variables
|
||||||
|
|
||||||
static countChecked() {
|
static MultiObjectFormProcess ($form, options) {
|
||||||
var checkCount = $('.check-all-slave:checked').length;
|
/*
|
||||||
|
* ajaxForm callback to add the external item checkboxes to the
|
||||||
|
* submitted form
|
||||||
|
*/
|
||||||
|
|
||||||
if (checkCount) {
|
if ($form.hasClass('form-multi-object-action')) {
|
||||||
$('#multi-item-title').hide();
|
// Turn form data into an object
|
||||||
$('#multi-item-actions').show();
|
var formArray = $form.serializeArray().reduce(function (obj, item) {
|
||||||
} else {
|
obj[item.name] = item.value;
|
||||||
$('#multi-item-title').show();
|
return obj;
|
||||||
$('#multi-item-actions').hide();
|
}, {});
|
||||||
|
|
||||||
|
// Add all checked checkboxes to the form data
|
||||||
|
$('.form-multi-object-action-checkbox:checked').each(function() {
|
||||||
|
var $this = $(this);
|
||||||
|
formArray[$this.attr('name')] = $this.attr('value');
|
||||||
|
});
|
||||||
|
|
||||||
|
// Set the form data as the data to send
|
||||||
|
options.data = formArray;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static setupMultiItemActions () {
|
|
||||||
$('body').on('change', '.check-all-slave', function () {
|
|
||||||
MayanApp.countChecked();
|
|
||||||
});
|
|
||||||
|
|
||||||
$('body').on('click', '.btn-multi-item-action', function (event) {
|
|
||||||
var id_list = [];
|
|
||||||
$('.check-all-slave:checked').each(function (index, value) {
|
|
||||||
//Split the name (ie:"pk_200") and extract only the ID
|
|
||||||
id_list.push(value.name.split('_')[1]);
|
|
||||||
});
|
|
||||||
event.preventDefault();
|
|
||||||
partialNavigation.setLocation(
|
|
||||||
$(this).attr('href') + '?id_list=' + id_list.join(',')
|
|
||||||
);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
static setupNavBarState () {
|
|
||||||
$('body').on('click', '.a-main-menu-accordion-link', function (event) {
|
|
||||||
var $this = $(this);
|
|
||||||
|
|
||||||
$('.a-main-menu-accordion-link').each(function (index, value) {
|
|
||||||
$this.parent().removeClass('active');
|
|
||||||
});
|
|
||||||
|
|
||||||
$this.parent().addClass('active');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
static updateNavbarState () {
|
static updateNavbarState () {
|
||||||
var uri = new URI(window.location.hash);
|
var uri = new URI(window.location.hash);
|
||||||
var uriFragment = uri.fragment();
|
var uriFragment = uri.fragment();
|
||||||
$('.a-main-menu-accordion-link').each(function (index, value) {
|
$('.a-main-menu-accordion-link').each(function (index, value) {
|
||||||
if (value.pathname === uriFragment) {
|
if (value.pathname === uriFragment) {
|
||||||
var $this = $(this);
|
$(this).closest('.collapse').addClass('in').parent().find('.collapsed').removeClass('collapsed').attr('aria-expanded', 'true');
|
||||||
|
$(this).parent().addClass('active');
|
||||||
$this.closest('.collapse').addClass('in').parent().find('.collapsed').removeClass('collapsed').attr('aria-expanded', 'true');
|
|
||||||
$this.parent().addClass('active');
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -80,13 +60,6 @@ class MayanApp {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
doBodyAdjust () {
|
|
||||||
// Adjust the height of the body-spacer to move content elements
|
|
||||||
// up or down when the navbar changes size.
|
|
||||||
const navbarSize = 60;
|
|
||||||
$('.body-spacer').css('height', $('.navbar').height() - navbarSize);
|
|
||||||
}
|
|
||||||
|
|
||||||
doRefreshAJAXMenu (options) {
|
doRefreshAJAXMenu (options) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
complete: function() {
|
complete: function() {
|
||||||
@@ -99,7 +72,7 @@ class MayanApp {
|
|||||||
$(options.menuSelector).html(data.html);
|
$(options.menuSelector).html(data.html);
|
||||||
options.app.ajaxMenuHashes[data.name] = data.hex_hash;
|
options.app.ajaxMenuHashes[data.name] = data.hex_hash;
|
||||||
if (options.callback !== undefined) {
|
if (options.callback !== undefined) {
|
||||||
options.callback(options);
|
options.callback();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -112,7 +85,7 @@ class MayanApp {
|
|||||||
'closeButton': true,
|
'closeButton': true,
|
||||||
'debug': false,
|
'debug': false,
|
||||||
'newestOnTop': true,
|
'newestOnTop': true,
|
||||||
'positionClass': 'toast-' + this.options.messagePosition,
|
'positionClass': 'toast-top-right',
|
||||||
'preventDuplicates': false,
|
'preventDuplicates': false,
|
||||||
'onclick': null,
|
'onclick': null,
|
||||||
'showDuration': '300',
|
'showDuration': '300',
|
||||||
@@ -182,19 +155,16 @@ class MayanApp {
|
|||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
this.setupAJAXSpinner();
|
this.setupAJAXSpinner();
|
||||||
this.setupBodyAdjust();
|
this.setupAutoSubmit();
|
||||||
this.setupFormHotkeys();
|
this.setupFormHotkeys();
|
||||||
this.setupFullHeightResizing();
|
this.setupFullHeightResizing();
|
||||||
this.setupItemsSelector();
|
this.setupItemsSelector();
|
||||||
MayanApp.setupMultiItemActions();
|
|
||||||
this.setupNavbarCollapse();
|
this.setupNavbarCollapse();
|
||||||
MayanApp.setupNavBarState();
|
|
||||||
this.setupNewWindowAnchor();
|
this.setupNewWindowAnchor();
|
||||||
$.each(this.ajaxMenusOptions, function(index, value) {
|
$.each(this.ajaxMenusOptions, function(index, value) {
|
||||||
value.app = self;
|
value.app = self;
|
||||||
app.doRefreshAJAXMenu(value);
|
app.doRefreshAJAXMenu(value);
|
||||||
});
|
});
|
||||||
this.setupPanelSelection();
|
|
||||||
partialNavigation.initialize();
|
partialNavigation.initialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -218,11 +188,11 @@ class MayanApp {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
setupBodyAdjust () {
|
setupAutoSubmit () {
|
||||||
var self = this;
|
$('body').on('change', '.select-auto-submit', function () {
|
||||||
|
if ($(this).val()) {
|
||||||
this.window.resize(function() {
|
$(this.form).trigger('submit');
|
||||||
self.doBodyAdjust();
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -256,22 +226,9 @@ class MayanApp {
|
|||||||
app.lastChecked = null;
|
app.lastChecked = null;
|
||||||
|
|
||||||
$('body').on('click', '.check-all', function (event) {
|
$('body').on('click', '.check-all', function (event) {
|
||||||
var $this = $(this);
|
|
||||||
var checked = $(event.target).prop('checked');
|
var checked = $(event.target).prop('checked');
|
||||||
var $checkBoxes = $('.check-all-slave');
|
var $checkBoxes = $('.check-all-slave');
|
||||||
|
|
||||||
if (checked === undefined) {
|
|
||||||
checked = $this.data('checked');
|
|
||||||
checked = !checked;
|
|
||||||
$this.data('checked', checked);
|
|
||||||
|
|
||||||
if (checked) {
|
|
||||||
$this.find('[data-fa-i2svg]').addClass($this.data('icon-checked')).removeClass($this.data('icon-unchecked'));
|
|
||||||
} else {
|
|
||||||
$this.find('[data-fa-i2svg]').addClass($this.data('icon-unchecked')).removeClass($this.data('icon-checked'));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$checkBoxes.prop('checked', checked);
|
$checkBoxes.prop('checked', checked);
|
||||||
$checkBoxes.trigger('change');
|
$checkBoxes.trigger('change');
|
||||||
});
|
});
|
||||||
@@ -317,58 +274,6 @@ class MayanApp {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
setupPanelSelection () {
|
|
||||||
var app = this;
|
|
||||||
|
|
||||||
// Setup panel highlighting on check
|
|
||||||
$('body').on('change', '.check-all-slave', function (event) {
|
|
||||||
var checked = $(event.target).prop('checked');
|
|
||||||
if (checked) {
|
|
||||||
$(this).closest('.panel-item').addClass('panel-highlighted');
|
|
||||||
} else {
|
|
||||||
$(this).closest('.panel-item').removeClass('panel-highlighted');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$('body').on('click', '.panel-item', function (event) {
|
|
||||||
var $this = $(this);
|
|
||||||
var targetSrc = $(event.target).prop('src');
|
|
||||||
var targetHref = $(event.target).prop('href');
|
|
||||||
var targetIsButton = event.target.tagName === 'BUTTON';
|
|
||||||
var lastChecked = null;
|
|
||||||
|
|
||||||
if ((targetSrc === undefined) && (targetHref === undefined) && (targetIsButton === false)) {
|
|
||||||
var $checkbox = $this.find('.check-all-slave');
|
|
||||||
var checked = $checkbox.prop('checked');
|
|
||||||
|
|
||||||
if (checked) {
|
|
||||||
$checkbox.prop('checked', '');
|
|
||||||
$checkbox.trigger('change');
|
|
||||||
} else {
|
|
||||||
$checkbox.prop('checked', 'checked');
|
|
||||||
$checkbox.trigger('change');
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!app.lastChecked) {
|
|
||||||
app.lastChecked = $checkbox;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (event.shiftKey) {
|
|
||||||
var $checkBoxes = $('.check-all-slave');
|
|
||||||
|
|
||||||
var start = $checkBoxes.index($checkbox);
|
|
||||||
var end = $checkBoxes.index(app.lastChecked);
|
|
||||||
|
|
||||||
$checkBoxes.slice(
|
|
||||||
Math.min(start, end), Math.max(start, end) + 1
|
|
||||||
).prop('checked', app.lastChecked.prop('checked')).trigger('change');
|
|
||||||
}
|
|
||||||
app.lastChecked = $checkbox;
|
|
||||||
window.getSelection().removeAllRanges();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
setupScrollView () {
|
setupScrollView () {
|
||||||
$('.scrollable').scrollview();
|
$('.scrollable').scrollview();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,168 +1,156 @@
|
|||||||
{% extends 'appearance/base.html' %}
|
{% extends 'appearance/base.html' %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
{% load appearance_tags %}
|
{% load appearance_tags %}
|
||||||
{% load common_tags %}
|
{% load common_tags %}
|
||||||
{% load smart_settings_tags %}
|
{% load smart_settings_tags %}
|
||||||
|
|
||||||
{% block title %}{% trans 'About' %}{% endblock %}
|
{% block title %}{% trans 'About' %}{% endblock %}
|
||||||
|
|
||||||
{% block stylesheets %}
|
{% block stylesheets %}
|
||||||
<style>
|
<style>
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'mayan-edms';
|
font-family: 'mayan-edms';
|
||||||
src: url("{% static 'appearance/fonts/mayan-edms.ttf' %}") format('truetype');
|
src: url("{% static 'appearance/fonts/mayan-edms.ttf' %}") format('truetype');
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
[class^="icon-"], [class*=" icon-"] {
|
[class^="icon-"], [class*=" icon-"] {
|
||||||
font-family: 'mayan-edms';
|
font-family: 'mayan-edms';
|
||||||
speak: none;
|
speak: none;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-variant: normal;
|
font-variant: normal;
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-mayan-edms-logo:before {
|
.icon-mayan-edms-logo:before {
|
||||||
content: "\e600";
|
content: "\e600";
|
||||||
font-size: 150%;
|
font-size: 150%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mayan-edms-logo {
|
.mayan-edms-logo {
|
||||||
font-family: 'IM Fell English SC', serif;
|
font-family: 'IM Fell English SC', serif;
|
||||||
font-size: 150%;
|
font-size: 150%;
|
||||||
text-shadow: 5px 5px 1px rgba(0, 0, 0, 0.3);
|
text-shadow: 5px 5px 1px rgba(0, 0, 0, 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
.mayan-edms-logo {
|
.mayan-edms-logo {
|
||||||
font-size: 300%;
|
font-size: 300%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 991px) {
|
@media (min-width: 991px) {
|
||||||
.mayan-edms-logo {
|
.mayan-edms-logo {
|
||||||
font-size: 500%;
|
font-size: 500%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
{% endblock stylesheets %}
|
{% endblock stylesheets %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% project_information '__build_string__' as build_number %}
|
{% project_information '__build_string__' as build_number %}
|
||||||
{% smart_setting 'COMMON_PROJECT_TITLE' as setting_project_title %}
|
{% smart_setting 'COMMON_PROJECT_TITLE' as setting_project_title %}
|
||||||
{% project_information '__title__' as project_title %}
|
{% project_information '__title__' as project_title %}
|
||||||
|
|
||||||
{% get_icon 'mayan.apps.common.icons.icon_documentation' as icon_documentation %}
|
{% get_icon 'mayan.apps.common.icons.icon_documentation' as icon_documentation %}
|
||||||
{% get_icon 'mayan.apps.common.icons.icon_forum' as icon_forum %}
|
{% get_icon 'mayan.apps.common.icons.icon_forum' as icon_forum %}
|
||||||
{% get_icon 'mayan.apps.common.icons.icon_social_facebook' as icon_social_facebook %}
|
{% get_icon 'mayan.apps.common.icons.icon_social_facebook' as icon_social_facebook %}
|
||||||
{% get_icon 'mayan.apps.common.icons.icon_social_paypal' as icon_social_paypal %}
|
{% get_icon 'mayan.apps.common.icons.icon_social_paypal' as icon_social_paypal %}
|
||||||
{% get_icon 'mayan.apps.common.icons.icon_social_twitter' as icon_social_twitter %}
|
{% get_icon 'mayan.apps.common.icons.icon_social_twitter' as icon_social_twitter %}
|
||||||
{% get_icon 'mayan.apps.common.icons.icon_social_instagram' as icon_social_instagram %}
|
{% get_icon 'mayan.apps.common.icons.icon_social_instagram' as icon_social_instagram %}
|
||||||
{% get_icon 'mayan.apps.common.icons.icon_source_code' as icon_source_code %}
|
{% get_icon 'mayan.apps.common.icons.icon_source_code' as icon_source_code %}
|
||||||
{% get_icon 'mayan.apps.common.icons.icon_wiki' as icon_wiki %}
|
{% get_icon 'mayan.apps.common.icons.icon_wiki' as icon_wiki %}
|
||||||
|
|
||||||
<div class="well">
|
<div class="well">
|
||||||
<h3 class="text-center">{{ setting_project_title }}</h3>
|
<h3 class="text-center">{{ setting_project_title }}</h3>
|
||||||
{% if project_title != setting_project_title %}
|
{% if project_title != setting_project_title %}
|
||||||
<br>
|
<br>
|
||||||
<p class="text-center">
|
<p class="text-center">
|
||||||
{% blocktrans with setting_project_title as setting_project_title and project_title as project_title %}
|
{% blocktrans with setting_project_title as setting_project_title and project_title as project_title %}
|
||||||
{{ setting_project_title }} is based on {{ project_title }}
|
{{ setting_project_title }} is based on {{ project_title }}
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<p class="text-center">{% trans 'Version' %} {% project_information '__version__' %}</p>
|
<p class="text-center">{% trans 'Version' %} {% project_information '__version__' %}</p>
|
||||||
{% if build_number %}
|
{% if build_number %}
|
||||||
<p class='text-center'>{% blocktrans with build_number as build_number %}Build number: {{ build_number }}{% endblocktrans %}</p>
|
<p class='text-center'>{% blocktrans with build_number as build_number %}Build number: {{ build_number }}{% endblocktrans %}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<p class="text-center">
|
<p class="text-center">
|
||||||
{% project_information '__description__' as project_description %}
|
{% project_information '__description__' as project_description %}
|
||||||
{% trans project_description %}
|
{% trans project_description %}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="text-center">
|
<p class="text-center">
|
||||||
<i class="fa fa-home"></i><a href="{% project_information '__website__' %}"> {% project_information '__website__' %}</a>
|
<i class="fa fa-home"></i><a href="{% project_information '__website__' %}"> {% project_information '__website__' %}</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="text-center">
|
<p class="text-center">
|
||||||
{% project_information '__license__' as license_information %}
|
{% project_information '__license__' as license_information %}
|
||||||
{% trans 'Released under the license:' %} {% trans license_information %}
|
{% trans 'Released under the license:' %} {% trans license_information %}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="text-center mayan-edms-logo"><span class="icon-mayan-edms-logo"></span> {% project_information '__title__' %}</p>
|
<p class="text-center mayan-edms-logo"><span class="icon-mayan-edms-logo"></span> {% project_information '__title__' %}</p>
|
||||||
|
|
||||||
<p class="text-center">
|
<p class="text-center">
|
||||||
{% blocktrans with project_title as project_title %}
|
{% blocktrans with project_title as project_title %}
|
||||||
{{ project_title }} is a free and open-source software brought to you with <i class="fa fa-heart text-danger" style="transform: rotate(10deg);"></i> by Roberto Rosario and contributors.
|
{{ project_title }} is a free and open-source software brought to you with <i class="fa fa-heart text-danger" style="transform: rotate(10deg);"></i> by Roberto Rosario and contributors.
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="text-center">
|
<p class="text-center">
|
||||||
{% blocktrans with project_title as project_title %}
|
{% blocktrans with project_title as project_title %}
|
||||||
It takes great effort to make {{ project_title }} as feature-rich as it is. We need all the help we can get!
|
It takes great effort to make {{ project_title }} as feature-rich as it is. We need all the help we can get!
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="text-center">
|
<p class="text-center">
|
||||||
{% blocktrans with project_title as project_title and icon_social_paypal as icon_social_paypal%}
|
{% blocktrans with project_title as project_title and icon_social_paypal as icon_social_paypal%}
|
||||||
If you use {{ project_title }} please <a class="new_window" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3PXN336XFXQNN">consider making a donation {{ icon_social_paypal }}</a>
|
If you use {{ project_title }} please <a class="new_window" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3PXN336XFXQNN">consider making a donation {{ icon_social_paypal }}</a>
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="text-center">
|
<p class="text-center">
|
||||||
{% blocktrans with icon_social_paypal as icon_social_paypal%}
|
{% blocktrans with icon_documentation as icon_documentation and icon_wiki as icon_wiki %}
|
||||||
You can also <a class="new_window" href="https://www.paypal.com/paypalme2/RobertoRosario">donate directly to the creator and lead developer. {{ icon_social_paypal }}</a>
|
The complete list of changes is available via the <a class="new_window" href="https://docs.mayan-edms.com/releases/index.html">Release notes {{ icon_documentation }}</a> or the short version <a class="new_window" href="https://gitlab.com/mayan-edms/mayan-edms/blob/master/HISTORY.rst">Changelog {{ icon_documentation }}</a>.
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="text-center">
|
<p class="text-center">
|
||||||
{% blocktrans with icon_social_paypal as icon_social_paypal%}
|
{% blocktrans with icon_documentation as icon_documentation and icon_wiki as icon_wiki %}
|
||||||
Besides donations you can also support the project by <a class="new_window" href="https://sellfy.com/p/um2fkx/">purchasing a copy of the book "Exploring Mayan EDMS" by Roberto Rosario</a>. <br>The book is available on pre-release format at a discounted price for a limited time.
|
For questions check the <a class="new_window" href="https://docs.mayan-edms.com">Documentation {{ icon_documentation }}</a> or the <a class="new_window" href="https://wiki.mayan-edms.com">Wiki {{ icon_wiki }}</a>.
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="text-center">
|
<p class="text-center">
|
||||||
{% blocktrans with icon_documentation as icon_documentation and icon_wiki as icon_wiki %}
|
{% blocktrans with icon_forum as icon_forum and icon_source_code as icon_source_code %}
|
||||||
The complete list of changes is available via the <a class="new_window" href="https://docs.mayan-edms.com/releases/index.html">Release notes {{ icon_documentation }}</a> or the short version <a class="new_window" href="https://gitlab.com/mayan-edms/mayan-edms/blob/master/HISTORY.rst">Changelog {{ icon_documentation }}</a>.
|
If you found a bug or have a feature idea, visit the <a class="new_window" href="https://forum.mayan-edms.com">Forum {{ icon_forum }}</a> or open a ticket in the <a class="new_window" href="https://gitlab.com/mayan-edms/mayan-edms">Source code repository {{ icon_source_code }}</a>.
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</p>
|
</p>
|
||||||
|
<p class="text-center">
|
||||||
<p class="text-center">
|
{% blocktrans with project_title as project_title and icon_twitter as icon_twitter and icon_facebook as icon_facebook and icon_instagram as icon_instagram %}
|
||||||
{% blocktrans with icon_documentation as icon_documentation and icon_wiki as icon_wiki %}
|
Spread the word. Talk to your friends and colleagues about how awesome {{ project_title }} is!
|
||||||
For questions check the <a class="new_window" href="https://docs.mayan-edms.com">Documentation {{ icon_documentation }}</a> or the <a class="new_window" href="https://wiki.mayan-edms.com">Wiki {{ icon_wiki }}</a>.
|
Follow us on <a class="new_window" href="https://twitter.com/mayanedms">Twitter {{ icon_social_twitter }}</a>, <a class="new_window" href="https://www.facebook.com/MayanEDMS/">Facebook {{ icon_social_facebook }}</a>, or <a class="new_window" href="https://www.instagram.com/mayan_edms/">Instagram {{ icon_social_instagram }}</a>
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
<p class="text-center">
|
{% endblock %}
|
||||||
{% blocktrans with icon_forum as icon_forum and icon_source_code as icon_source_code %}
|
|
||||||
If you found a bug or have a feature idea, visit the <a class="new_window" href="https://forum.mayan-edms.com">Forum {{ icon_forum }}</a> or open a ticket in the <a class="new_window" href="https://gitlab.com/mayan-edms/mayan-edms">Source code repository {{ icon_source_code }}</a>.
|
{% block footer %}
|
||||||
{% endblocktrans %}
|
<div id="row">
|
||||||
</p>
|
<div class="col-xs-12">
|
||||||
<p class="text-center">
|
<div class="panel panel-default">
|
||||||
{% blocktrans with project_title as project_title and icon_twitter as icon_twitter and icon_facebook as icon_facebook and icon_instagram as icon_instagram %}
|
<div class="panel-body">
|
||||||
Spread the word. Talk to your friends and colleagues about how awesome {{ project_title }} is!
|
{% project_information '__copyright__' %}
|
||||||
Follow us on <a class="new_window" href="https://twitter.com/mayanedms">Twitter {{ icon_social_twitter }}</a>, <a class="new_window" href="https://www.facebook.com/MayanEDMS/">Facebook {{ icon_social_facebook }}</a>, or <a class="new_window" href="https://www.instagram.com/mayan_edms/">Instagram {{ icon_social_instagram }}</a>
|
</div>
|
||||||
{% endblocktrans %}
|
</div>
|
||||||
</p>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block footer %}
|
|
||||||
<div id="row">
|
|
||||||
<div class="col-xs-12">
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-body">
|
|
||||||
{% project_information '__copyright__' %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
||||||
|
|||||||
@@ -1,153 +1,147 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
{% load common_tags %}
|
{% load common_tags %}
|
||||||
{% load navigation_tags %}
|
{% load navigation_tags %}
|
||||||
{% load smart_settings_tags %}
|
{% load smart_settings_tags %}
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
if (typeof partialNavigation === 'undefined') {
|
if (typeof partialNavigation === 'undefined') {
|
||||||
/* Check if the template was not loaded via AJAX
|
/* Check if the template was not loaded via AJAX
|
||||||
* If not then reload the root path passing the
|
* If not then reload the root path passing the
|
||||||
* current location's path as the new hash
|
* current location's path as the new hash
|
||||||
*/
|
*/
|
||||||
document.write('<script type="text/undefined">')
|
document.write('<script type="text/undefined">')
|
||||||
var currentPath = window.location.pathname + window.location.search;
|
var currentPath = window.location.pathname + window.location.search;
|
||||||
window.location = '/#' + currentPath;
|
window.location = '/#' + currentPath;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{% block stylesheets %}{% endblock %}
|
{% block stylesheets %}{% endblock %}
|
||||||
|
|
||||||
{% if appearance_type == 'plain' %}
|
{% if appearance_type == 'plain' %}
|
||||||
{% block content_plain %}{% endblock %}
|
{% block content_plain %}{% endblock %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="">
|
<div class="">
|
||||||
|
<div class="row zero-margin">
|
||||||
{% navigation_resolve_menus names='facet,list facet' sort_results=True as facet_menus_link_results %}
|
<div class="col-xs-12">
|
||||||
|
{% common_check_sqlite as check_sqlite %}
|
||||||
<div class="row zero-margin">
|
{% if common_check_sqlite %}
|
||||||
<div class="col-xs-12 {% if facet_menus_link_results %}has-sidebar{% endif %}" id="viewport">
|
<div class="alert alert-dismissible alert-warning">
|
||||||
<div class="row zero-margin">
|
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||||
<div class="col-xs-12">
|
<p><strong>{% trans 'Warning' %}</strong> {{ check_sqlite }}</p>
|
||||||
{% common_check_sqlite as check_sqlite %}
|
</div>
|
||||||
{% if common_check_sqlite %}
|
{% endif %}
|
||||||
<div class="alert alert-dismissible alert-warning">
|
{% block messages %}
|
||||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
{% endblock %}
|
||||||
<p><strong>{% trans 'Warning' %}</strong> {{ check_sqlite }}</p>
|
|
||||||
</div>
|
{% smart_settings_check_changed as settings_changed %}
|
||||||
{% endif %}
|
{% if settings_changed %}
|
||||||
{% block messages %}
|
<div class="alert alert-dismissible alert-warning">
|
||||||
{% endblock %}
|
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||||
|
<p><strong>{% trans 'Warning' %}</strong> {% trans 'Settings updated, restart your installation for changes to take proper effect.' %}</p>
|
||||||
{% smart_settings_check_changed as settings_changed %}
|
</div>
|
||||||
{% if settings_changed %}
|
{% endif %}
|
||||||
<div class="alert alert-dismissible alert-warning">
|
</div>
|
||||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
</div>
|
||||||
<p><strong>{% trans 'Warning' %}</strong> {% trans 'Settings updated, restart your installation and refresh your browser for changes to take effect.' %}</p>
|
|
||||||
</div>
|
{% navigation_resolve_menus names='facet,list facet' sort_results=True as facet_menus_link_results %}
|
||||||
{% endif %}
|
|
||||||
</div>
|
<div class="row zero-margin">
|
||||||
</div>
|
<div class="col-xs-12 {% if facet_menus_link_results %}has-sidebar{% endif %}" id="viewport">
|
||||||
|
{% include 'appearance/calculate_form_title.html' %}
|
||||||
{% include 'appearance/calculate_form_title.html' %}
|
|
||||||
|
{# action menu #}
|
||||||
{# action menu #}
|
{% navigation_resolve_menus names='object,secondary' sort_results=True as action_menus_link_results %}
|
||||||
{% navigation_resolve_menus names='object,secondary' sort_results=True as action_menus_link_results %}
|
{% if action_menus_link_results %}
|
||||||
{% if action_menus_link_results %}
|
<div class="pull-right btn-group" id="menu-actions">
|
||||||
<div class="pull-right btn-group" id="menu-actions">
|
<button aria-expanded="true" class="btn btn-danger btn-sm dropdown-toggle" data-toggle="dropdown" type="button">
|
||||||
<div class="body-spacer"></div>
|
{% trans 'Actions' %}
|
||||||
<button aria-expanded="true" class="btn btn-danger btn-sm dropdown-toggle" data-toggle="dropdown" type="button">
|
<span class="caret"></span>
|
||||||
{% trans 'Actions' %}
|
<span class="sr-only">{% trans 'Toggle Dropdown' %}</span>
|
||||||
<span class="caret"></span>
|
</button>
|
||||||
<span class="sr-only">{% trans 'Toggle Dropdown' %}</span>
|
<ul class="dropdown-menu" role="menu">
|
||||||
</button>
|
{% for menus_link_result in action_menus_link_results %}
|
||||||
<ul class="dropdown-menu" role="menu">
|
{% if action_menus_link_results|length > 1 %}
|
||||||
{% for menus_link_result in action_menus_link_results %}
|
<li class="dropdown-header">{{ menus_link_result.menu.label }}</li>
|
||||||
{% if action_menus_link_results|length > 1 %}
|
{% endif %}
|
||||||
<li class="dropdown-header">{{ menus_link_result.menu.label }}</li>
|
|
||||||
{% endif %}
|
{% for link_group in menus_link_result.link_groups %}
|
||||||
|
{% if navigation_object_list %}
|
||||||
{% for link_group in menus_link_result.link_groups %}
|
|
||||||
{% if navigation_object_list %}
|
{% ifchanged link_group.object %}
|
||||||
|
{% common_get_object_verbose_name obj=link_group.object as link_group_object_verbose_name %}
|
||||||
{% ifchanged link_group.object %}
|
{% if link_group_object_verbose_name %}<li class="dropdown-header">{{ link_group_object_verbose_name }}</li>{% endif %}
|
||||||
{% common_get_object_verbose_name obj=link_group.object as link_group_object_verbose_name %}
|
{% endifchanged %}
|
||||||
{% if link_group_object_verbose_name %}<li class="dropdown-header">{{ link_group_object_verbose_name }}</li>{% endif %}
|
{% endif %}
|
||||||
{% endifchanged %}
|
|
||||||
{% endif %}
|
{% with link_group.links as object_navigation_links %}
|
||||||
|
{% with 'true' as as_li %}
|
||||||
{% with link_group.links as object_navigation_links %}
|
{% with 'true' as hide_active_anchor %}
|
||||||
{% with 'true' as as_li %}
|
{% with 'btn-sm' as link_classes %}
|
||||||
{% with 'true' as hide_active_anchor %}
|
{% include 'navigation/generic_navigation.html' %}
|
||||||
{% with 'btn-sm' as link_classes %}
|
{% endwith %}
|
||||||
{% include 'navigation/generic_navigation.html' %}
|
{% endwith %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endwith %}
|
|
||||||
{% endwith %}
|
{% if not forloop.last and link_group %}
|
||||||
|
<li class="divider"></li>
|
||||||
{% if not forloop.last and link_group %}
|
{% endif %}
|
||||||
<li class="divider"></li>
|
|
||||||
{% endif %}
|
{% endfor %}
|
||||||
|
{% if not forloop.last and menus_link_result %}
|
||||||
{% endfor %}
|
<li class="divider"></li>
|
||||||
{% if not forloop.last and menus_link_result %}
|
{% endif %}
|
||||||
<li class="divider"></li>
|
{% endfor %}
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
</ul>
|
||||||
|
</div>
|
||||||
</ul>
|
<div class="clearfix"></div>
|
||||||
</div>
|
{% endif %}
|
||||||
<div class="clearfix"></div>
|
|
||||||
{% endif %}
|
{% block content %}{% endblock %}
|
||||||
|
{% block footer %}{% endblock %}
|
||||||
{% block content %}{% endblock %}
|
</div>
|
||||||
{% block footer %}{% endblock %}
|
|
||||||
</div>
|
{% if facet_menus_link_results %}
|
||||||
|
<div id="sidebar">
|
||||||
{% if facet_menus_link_results %}
|
<div class="list-group">
|
||||||
<div id="sidebar">
|
{% for menu_link_result in facet_menus_link_results %}
|
||||||
<div class="body-spacer"></div>
|
{% for link_group in menu_link_result.link_groups %}
|
||||||
<div class="list-group">
|
{% with link_group.links as object_navigation_links %}
|
||||||
{% for menu_link_result in facet_menus_link_results %}
|
{% with 'true' as hide_active_anchor %}
|
||||||
{% for link_group in menu_link_result.link_groups %}
|
{% with 'active' as link_class_active %}
|
||||||
{% with link_group.links as object_navigation_links %}
|
{% with 'list-group-item btn-sm' as link_classes %}
|
||||||
{% with 'true' as hide_active_anchor %}
|
{% include 'navigation/generic_navigation.html' %}
|
||||||
{% with 'active' as link_class_active %}
|
{% endwith %}
|
||||||
{% with 'list-group-item btn-sm' as link_classes %}
|
{% endwith %}
|
||||||
{% include 'navigation/generic_navigation.html' %}
|
{% endwith %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endwith %}
|
{% endfor %}
|
||||||
{% endwith %}
|
{% endfor %}
|
||||||
{% endwith %}
|
</div>
|
||||||
{% endfor %}
|
</div>
|
||||||
{% endfor %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
|
||||||
</div>
|
<script>
|
||||||
{% endif %}
|
var DjangoMessages = [
|
||||||
|
{% for message in messages %}
|
||||||
<script>
|
{
|
||||||
var DjangoMessages = [
|
tags: '{{ message.tags }}',
|
||||||
{% for message in messages %}
|
message: '{{ message.message }}'
|
||||||
{
|
},
|
||||||
tags: '{{ message.tags }}',
|
{% endfor %}
|
||||||
message: '{{ message.message }}'
|
];
|
||||||
},
|
</script>
|
||||||
{% endfor %}
|
{% block javascript %}{% endblock %}
|
||||||
];
|
|
||||||
$(function () {
|
<script>
|
||||||
$('[data-toggle="tooltip"]').tooltip();
|
document.title = '{% filter escapejs %}{% spaceless %}{% block title %}{% endblock %} :: {% block project_name %}{% smart_setting "COMMON_PROJECT_TITLE" %}{% endblock %}{% endspaceless %}{% endfilter %}';
|
||||||
})
|
// Strip HTML entities from the title
|
||||||
</script>
|
document.title = document.title.replace(/&(?:[a-z\d]+|#\d+|#x[a-f\d]+);/ig, '');
|
||||||
{% block javascript %}{% endblock %}
|
afterBaseLoad();
|
||||||
|
</script>
|
||||||
<script>
|
|
||||||
document.title = '{% filter escapejs %}{% spaceless %}{% block title %}{% endblock %} :: {% block project_name %}{% smart_setting "COMMON_PROJECT_TITLE" %}{% endblock %}{% endspaceless %}{% endfilter %}';
|
|
||||||
// Strip HTML entities from the title
|
|
||||||
document.title = document.title.replace(/&(?:[a-z\d]+|#\d+|#x[a-f\d]+);/ig, '');
|
|
||||||
afterBaseLoad();
|
|
||||||
</script>
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user