diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-10-27 09:58:06 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-02-19 16:15:49 +0100 |
commit | f1bca0b041830bf85957dd95221ef2f175c1f1bb (patch) | |
tree | 1eececee6c1b725eafa110c2c7f2811a5c305c4f | |
parent | 0e61e34bb3798c902ef3e7a749451db140285128 (diff) | |
download | Ishtar-f1bca0b041830bf85957dd95221ef2f175c1f1bb.tar.bz2 Ishtar-f1bca0b041830bf85957dd95221ef2f175c1f1bb.zip |
🚀 Debian package: python-django-ishtar
-rw-r--r--[-rwxr-xr-x] | archaeological_operations/tests/document_reference.odt | bin | 9551 -> 9551 bytes | |||
-rwxr-xr-x[-rw-r--r--] | conf/rbmq_gen_summary.sh | 0 | ||||
-rw-r--r-- | debian/changelog | 1047 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 64 | ||||
-rw-r--r-- | debian/copyright | 42 | ||||
-rw-r--r-- | debian/python3-django-ishtar.install | 1 | ||||
-rw-r--r-- | debian/python3-django-ishtar.links | 7 | ||||
-rw-r--r-- | debian/python3-django-ishtar.postinst | 105 | ||||
-rwxr-xr-x | debian/rules | 41 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | example_project/local_settings.py.sample | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | example_project/media/upload/templates/document_reference.odt | bin | 10678 -> 10678 bytes | |||
-rwxr-xr-x[-rw-r--r--] | install/ishtar-cron-daily | 0 | ||||
-rw-r--r-- | install/local_settings.py.sample | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | ishtar_common/static/js/prettyPhoto/README | 0 | ||||
-rw-r--r-- | ishtar_common/static/js/prettyPhoto/js/jquery.prettyPhoto.js | 2 | ||||
-rwxr-xr-x | scripts/simple_ooo_replace.py | 2 |
18 files changed, 1314 insertions, 3 deletions
diff --git a/archaeological_operations/tests/document_reference.odt b/archaeological_operations/tests/document_reference.odt Binary files differindex c1b43053f..c1b43053f 100755..100644 --- a/archaeological_operations/tests/document_reference.odt +++ b/archaeological_operations/tests/document_reference.odt diff --git a/conf/rbmq_gen_summary.sh b/conf/rbmq_gen_summary.sh index 15cdf0f9f..15cdf0f9f 100644..100755 --- a/conf/rbmq_gen_summary.sh +++ b/conf/rbmq_gen_summary.sh diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 000000000..66eeea43e --- /dev/null +++ b/debian/changelog @@ -0,0 +1,1047 @@ +python-django-ishtar (4.0.63-1) UNRELEASED; urgency=low + + * New upstream version. + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 8 Nov 2023 15:34:00 +0200 + +python-django-ishtar (4.0.62-1) UNRELEASED; urgency=low + + * New upstream version. + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 27 Oct 2023 09:56:00 +0200 + +python-django-ishtar (4.0.61-1) UNRELEASED; urgency=low + + * New upstream version. + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 18 Oct 2023 13:04:00 +0200 + +python-django-ishtar (4.0.60-1) UNRELEASED; urgency=low + + * New upstream version. + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 10 Oct 2023 16:59:00 +0200 + +python-django-ishtar (4.0.59-1) UNRELEASED; urgency=low + + * New upstream version. + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 29 Sep 2023 22:06:00 +0200 + +python-django-ishtar (4.0.58-1) UNRELEASED; urgency=low + + * New upstream version. + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 25 Sep 2023 19:39:00 +0200 + +python-django-ishtar (4.0.57-1) UNRELEASED; urgency=low + + * New upstream version. + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 13 Sep 2023 17:29:00 +0200 + +python-django-ishtar (4.0.56-1) UNRELEASED; urgency=low + + * New upstream version. + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 6 Sep 2023 12:15:00 +0200 + +python-django-ishtar (4.0.55-1) UNRELEASED; urgency=low + + * New upstream version. + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 8 Aug 2023 15:33:00 +0200 + +python-django-ishtar (4.0.54-1) UNRELEASED; urgency=low + + * New upstream version. + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 19 Jul 2023 11:51:00 +0200 + +python-django-ishtar (4.0.53-1) UNRELEASED; urgency=low + + * New upstream version. + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 6 Jul 2023 16:57:00 +0200 + +python-django-ishtar (4.0.52-1) UNRELEASED; urgency=low + + * New upstream version. + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 6 Jul 2023 11:48:00 +0200 + +python-django-ishtar (4.0.51-3) UNRELEASED; urgency=low + + * New upstream version. + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 5 Jul 2023 17:33:00 +0200 + +python-django-ishtar (4.0.51-2) UNRELEASED; urgency=low + + * New upstream version. + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 5 Jul 2023 14:13:00 +0200 + +python-django-ishtar (4.0.51-1) UNRELEASED; urgency=low + + * New upstream version. + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 5 Jul 2023 12:02:00 +0200 + +python-django-ishtar (4.0.50-1) UNRELEASED; urgency=low + + * New upstream version. + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 3 Jul 2023 18:27:00 +0200 + +python-django-ishtar (4.0.49-1) UNRELEASED; urgency=low + + * New upstream version. + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 21 Jun 2023 21:31:00 +0200 + +python-django-ishtar (4.0.48-1) UNRELEASED; urgency=low + + * New upstream version. + + -- Étienne Loks <etienne.loks@iggdrasil.net> Thu, 8 Jun 2023 17:30:00 +0200 + +python-django-ishtar (4.0.47-1) UNRELEASED; urgency=low + + * New upstream version. + + -- Étienne Loks <etienne.loks@iggdrasil.net> Thu, 8 Jun 2023 10:46:00 +0200 + +python-django-ishtar (4.0.46-1) UNRELEASED; urgency=low + + * New upstream version. + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 26 May 2023 09:11:00 +0200 + +python-django-ishtar (4.0.45-2) UNRELEASED; urgency=low + + * New upstream version. + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 15 May 2023 13:50:00 +0200 + +python-django-ishtar (4.0.45-1) UNRELEASED; urgency=low + + * New upstream version. + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 15 May 2023 13:13:00 +0200 + +python-django-ishtar (4.0.44-2) UNRELEASED; urgency=low + + * New upstream version. Fix changelog opening when utf8 is not the default. + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 17 Apr 2023 16:43:00 +0200 + +python-django-ishtar (4.0.44-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 17 Apr 2023 16:12:00 +0200 + +python-django-ishtar (4.0.43-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 17 Mar 2023 16:09:00 +0200 + +python-django-ishtar (4.0.42-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 25 Jan 2023 16:57:00 +0200 + +python-django-ishtar (4.0.41-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 23 Jan 2023 00:35:00 +0200 + +python-django-ishtar (4.0.40-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Sun, 22 Jan 2023 20:24:00 +0200 + +python-django-ishtar (4.0.39-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 20 Jan 2023 23:20:00 +0200 + +python-django-ishtar (4.0.38-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 20 Jan 2023 17:11:00 +0200 + +python-django-ishtar (4.0.37-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 20 Jan 2023 16:43:00 +0200 + +python-django-ishtar (4.0.36-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 20 Jan 2023 12:27:00 +0200 + +python-django-ishtar (4.0.35-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 18 Jan 2023 13:10:00 +0200 + +python-django-ishtar (4.0.34-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 13 Jan 2023 13:23:00 +0200 + +python-django-ishtar (4.0.33-2) UNRELEASED; urgency=low + + * Update translations + + -- Étienne Loks <etienne.loks@iggdrasil.net> Thu, 12 Jan 2023 17:15:00 +0200 + +python-django-ishtar (4.0.33-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Thu, 12 Jan 2023 16:28:00 +0200 + +python-django-ishtar (4.0.32-4) UNRELEASED; urgency=low + + * Test queue is empty before migration + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 14 Dec 2022 12:43:00 +0200 + +python-django-ishtar (4.0.32-3) UNRELEASED; urgency=low + + * Force restart of supervisor service + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 13 Dec 2022 12:00:00 +0200 + +python-django-ishtar (4.0.32-2) UNRELEASED; urgency=low + + * Fix merge + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 13 Dec 2022 11:36:00 +0200 + +python-django-ishtar (4.0.32-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 12 Dec 2022 12:38:00 +0200 + +python-django-ishtar (4.0.31-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 6 Dec 2022 00:45:00 +0200 + +python-django-ishtar (4.0.30-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 30 Nov 2022 17:49:00 +0200 + +python-django-ishtar (4.0.29-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 29 Nov 2022 19:28:00 +0200 + +python-django-ishtar (4.0.28-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 18 Nov 2022 12:20:00 +0200 + +python-django-ishtar (4.0.27-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 8 Nov 2022 16:42:00 +0200 + +python-django-ishtar (4.0.26-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 8 Nov 2022 16:42:00 +0200 + +python-django-ishtar (4.0.25-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 7 Nov 2022 18:15:00 +0200 + +python-django-ishtar (4.0.24-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Thu, 17 Oct 2022 13:59:00 +0200 + +python-django-ishtar (4.0.23-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 16 Oct 2022 17:14:00 +0200 + +python-django-ishtar (4.0.22-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 17 Oct 2022 15:17:00 +0200 + +python-django-ishtar (4.0.21-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 14 Oct 2022 13:05:00 +0200 + +python-django-ishtar (4.0.20-2) UNRELEASED; urgency=low + + * Fix bad migration file + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 3 Oct 2022 16:26:00 +0200 + +python-django-ishtar (4.0.20-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 3 Oct 2022 16:20:00 +0200 + +python-django-ishtar (4.0.19-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Sun, 18 Sep 2022 20:07:00 +0200 + +python-django-ishtar (4.0.18-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 12 Sep 2022 23:24:00 +0200 + +python-django-ishtar (4.0.17-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Sat, 10 Sep 2022 18:20:00 +0200 + +python-django-ishtar (4.0.16-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 9 Sep 2022 16:20:00 +0200 + +python-django-ishtar (4.0.15-2) UNRELEASED; urgency=low + + * Fix bad merge + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 30 Aug 2022 18:14:00 +0200 + +python-django-ishtar (4.0.15-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 30 Aug 2022 18:03:00 +0200 + +python-django-ishtar (4.0.14-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 16 Aug 2022 17:45:00 +0200 + +python-django-ishtar (4.0.13-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 5 Aug 2022 13:58:00 +0200 + +python-django-ishtar (4.0.12-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 5 Aug 2022 12:39:00 +0200 + +python-django-ishtar (4.0.11-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 2 Aug 2022 15:41:00 +0200 + +python-django-ishtar (4.0.10-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 22 Jul 2022 17:24:00 +0200 + +python-django-ishtar (4.0.9-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Thu, 21 Jul 2022 11:56:00 +0200 + +python-django-ishtar (4.0.8-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 18 Jul 2022 23:41:00 +0200 + +python-django-ishtar (4.0.7-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 18 Jul 2022 22:57:00 +0200 + +python-django-ishtar (4.0.6-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Sun, 17 Jul 2022 17:23:00 +0200 + +python-django-ishtar (4.0.5-1) UNRELEASED; urgency=low + + * New upstream version - add argon2 dependency + + -- Étienne Loks <etienne.loks@iggdrasil.net> Sun, 17 Jul 2022 16:30:00 +0200 + +python-django-ishtar (4.0.4-1) UNRELEASED; urgency=low + + * New upstream version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Sun, 17 Jul 2022 11:33:00 +0200 + +python-django-ishtar (4.0.3-3) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 15 Jul 2022 18:17:00 +0200 + +python-django-ishtar (4.0.3-2) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 15 Jul 2022 18:10:00 +0200 + +python-django-ishtar (4.0.3-1) UNRELEASED; urgency=low + + * python3-weasyprint -> weasyprint + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 15 Jul 2022 17:53:00 +0200 + +python-django-ishtar (4.0.2-1) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 8 Jul 2022 18:24:00 +0200 + +python-django-ishtar (4.0.1-1) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 8 Jul 2022 18:24:00 +0200 + +python-django-ishtar (3.3.1beta-1) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 8 Jul 2022 18:15:00 +0200 + +python-django-ishtar (3.2.0beta-28) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Thu, 9 Jun 2022 17:26:00 +0200 + +python-django-ishtar (3.2.0beta-27) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 3 Jun 2022 16:41:00 +0200 + +python-django-ishtar (3.2.0beta-26) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 23 May 2022 23:28:00 +0200 + +python-django-ishtar (3.2.0beta-25) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 18 May 2022 15:53:00 +0200 + +python-django-ishtar (3.2.0beta-24) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 18 May 2022 14:23:00 +0200 + +python-django-ishtar (3.2.0beta-23) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 18 May 2022 14:09:00 +0200 + +python-django-ishtar (3.2.0beta-22) UNRELEASED; urgency=low + + * New version - change pdftoppm in settings + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 18 May 2022 12:41:00 +0200 + +python-django-ishtar (3.2.0beta-21) UNRELEASED; urgency=low + + * New version - add poppler dependency and path to pdftoppm in settings + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 17 May 2022 17:00:00 +0200 + +python-django-ishtar (3.2.0beta-20) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 17 May 2022 17:00:00 +0200 + +python-django-ishtar (3.2.0beta-19) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 16 May 2022 18:30:00 +0200 + +python-django-ishtar (3.2.0beta-18) UNRELEASED; urgency=low + + * Fix migration + + -- Étienne Loks <etienne.loks@iggdrasil.net> Thu, 12 May 2022 10:11:00 +0200 + +python-django-ishtar (3.2.0beta-17) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Thu, 12 May 2022 10:03:00 +0200 + +python-django-ishtar (3.2.0beta-16) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 09 Feb 2022 12:33:00 +0200 + +python-django-ishtar (3.2.0beta-15) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 08 Feb 2022 16:06:00 +0200 + +python-django-ishtar (3.2.0beta-14) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 10 Nov 2021 11:44:00 +0200 + +python-django-ishtar (3.2.0beta-13) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 10 Nov 2021 11:44:00 +0200 + +python-django-ishtar (3.2.0beta-12) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 4 Nov 2021 16:39:00 +0200 + +python-django-ishtar (3.2.0beta-11) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 3 Nov 2021 22:01:00 +0200 + +python-django-ishtar (3.2.0beta-10) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 3 Nov 2021 15:16:00 +0200 + +python-django-ishtar (3.2.0beta-9) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 3 Nov 2021 14:39:00 +0200 + +python-django-ishtar (3.2.0beta-8) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 2 Nov 2021 18:20:00 +0200 + +python-django-ishtar (3.2.0beta-7) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 2 Nov 2021 17:01:00 +0200 + +python-django-ishtar (3.2.0beta-6) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 2 Nov 2021 12:06:00 +0200 + +python-django-ishtar (3.2.0beta-5) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 1 Nov 2021 19:24:00 +0200 + +python-django-ishtar (3.2.0beta-4) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 25 Oct 2021 11:28:00 +0200 + +python-django-ishtar (3.2.0beta-3) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 13 Oct 2021 6:20:00 +0200 + +python-django-ishtar (3.2.0beta-2) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 12 Oct 2021 16:12:00 +0200 + +python-django-ishtar (3.2.0beta-1) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 5 Oct 2021 12:02:00 +0200 + +python-django-ishtar (3.1.0beta-56) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Thu, 25 Feb 2021 12:24:00 +0200 + +python-django-ishtar (3.1.0beta-55) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Thu, 25 Feb 2021 00:39:00 +0200 + +python-django-ishtar (3.1.0beta-54) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 24 Feb 2021 20:06:00 +0200 + +python-django-ishtar (3.1.0beta-53) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 24 Feb 2021 14:10:00 +0200 + +python-django-ishtar (3.1.0beta-52) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 24 Feb 2021 13:57:00 +0200 + +python-django-ishtar (3.1.0beta-51) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 24 Feb 2021 13:47:00 +0200 + +python-django-ishtar (3.1.0beta-50) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 24 Feb 2021 13:19:00 +0200 + +python-django-ishtar (3.1.0beta-49) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 23 Feb 2021 18:33:00 +0200 + +python-django-ishtar (3.1.0beta-48) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 23 Feb 2021 15:51:00 +0200 + +python-django-ishtar (3.1.0beta-47) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Thu, 18 Feb 2021 12:05:00 +0200 + +python-django-ishtar (3.1.0beta-46) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 17 Feb 2021 10:46:00 +0200 + +python-django-ishtar (3.1.0beta-45) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 16 Feb 2021 19:45:00 +0200 + +python-django-ishtar (3.1.0beta-44) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 15 Feb 2021 11:52:00 +0200 + +python-django-ishtar (3.1.0beta-43) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 12 Feb 2021 17:15:00 +0200 + +python-django-ishtar (3.1.0beta-42) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 12 Feb 2021 12:42:00 +0200 + +python-django-ishtar (3.1.0beta-41) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Thu, 11 Feb 2021 20:25:00 +0200 + +python-django-ishtar (3.1.0beta-40) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Thu, 11 Feb 2021 18:38:00 +0200 + +python-django-ishtar (3.1.0beta-39) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 10 Feb 2021 17:14:00 +0200 + +python-django-ishtar (3.1.0beta-38) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 9 Feb 2021 19:31:00 +0200 + +python-django-ishtar (3.1.0beta-37) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 9 Feb 2021 18:04:00 +0200 + +python-django-ishtar (3.1.0beta-36) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 8 Feb 2021 16:21:00 +0200 + +python-django-ishtar (3.1.0beta-35) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 8 Feb 2021 15:49:00 +0200 + +python-django-ishtar (3.1.0beta-34) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 8 Feb 2021 15:41:00 +0200 + +python-django-ishtar (3.1.0beta-33) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 3 Feb 2021 09:54:00 +0200 + +python-django-ishtar (3.1.0beta-32) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 2 Feb 2021 22:54:00 +0200 + +python-django-ishtar (3.1.0beta-31) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Thu, 28 Jan 2021 17:35:00 +0200 + +python-django-ishtar (3.1.0beta-30) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 27 Jan 2021 13:36:00 +0200 + +python-django-ishtar (3.1.0beta-29) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 27 Jan 2021 09:55:00 +0200 + +python-django-ishtar (3.1.0beta-28) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 26 Jan 2021 14:53:00 +0200 + +python-django-ishtar (3.1.0beta-27) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 25 Jan 2021 15:15:00 +0200 + +python-django-ishtar (3.1.0beta-26) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 25 Jan 2021 12:14:00 +0200 + +python-django-ishtar (3.1.0beta-25) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 25 Jan 2021 11:21:00 +0200 + +python-django-ishtar (3.1.0beta-24) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Sun, 24 Jan 2021 14:13:00 +0200 + +python-django-ishtar (3.1.0beta-23) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Sun, 24 Jan 2021 13:20:00 +0200 +python-django-ishtar (3.1.0beta-22) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 18 Jan 2021 21:37:00 +0200 +python-django-ishtar (3.1.0beta-21) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Thu, 14 Jan 2021 23:06:00 +0200 +python-django-ishtar (3.1.0beta-20) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 12 Jan 2021 10:10:00 +0200 +python-django-ishtar (3.1.0beta-19) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 11 Jan 2021 16:51:00 +0200 +python-django-ishtar (3.1.0beta-18) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 11 Jan 2021 14:06:00 +0200 +python-django-ishtar (3.1.0beta-17) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 11 Jan 2021 10:51:00 +0200 +python-django-ishtar (3.1.0beta-16) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Sun, 10 Jan 2021 19:30:00 +0200 +python-django-ishtar (3.1.0beta-15) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 05 Jan 2021 19:00:00 +0200 +python-django-ishtar (3.1.0beta-14) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 05 Jan 2021 18:53:00 +0200 +python-django-ishtar (3.1.0beta-13) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Thu, 31 Dec 2020 11:32:00 +0200 +python-django-ishtar (3.1.0beta-12) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 29 Dec 2020 08:19:00 +0200 +python-django-ishtar (3.1.0beta-11) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 23 Dec 2020 08:51:00 +0200 +python-django-ishtar (3.1.0beta-10) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 22 Dec 2020 13:42:00 +0200 +python-django-ishtar (3.1.0beta-9) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 16 Dec 2020 00:00:00 +0200 +python-django-ishtar (3.1.0beta-8) UNRELEASED; urgency=low + + * Fix merge + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 15 Dec 2020 20:56:00 +0200 +python-django-ishtar (3.1.0beta-7) UNRELEASED; urgency=low + + * Add archaeological_warehouse/management to MANIFEST.in + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 15 Dec 2020 20:41:00 +0200 +python-django-ishtar (3.1.0beta-6) UNRELEASED; urgency=low + + * Fix db migrations + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 15 Dec 2020 19:48:00 +0200 +python-django-ishtar (3.1.0beta-5) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 15 Dec 2020 19:09:00 +0200 +python-django-ishtar (3.1.0beta-4) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 16 Nov 2020 12:09:00 +0200 +python-django-ishtar (3.1.0beta-3) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Thu, 24 Sep 2020 12:15:00 +0200 +python-django-ishtar (3.1.0beta-2) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Thu, 3 Sep 2020 10:59:00 +0200 +python-django-ishtar (3.1.0beta-1) UNRELEASED; urgency=low + + * Beta version for new container management + + -- Étienne Loks <etienne.loks@iggdrasil.net> Sun, 27 Aug 2020 16:56:00 +0200 +python-django-ishtar (3.0.10-1) UNRELEASED; urgency=low + + * New upstream version cf. CHANGES.md + + -- Étienne Loks <etienne.loks@iggdrasil.net> Sun, 26 Jul 2020 15:19:00 +0200 +python-django-ishtar (3.0.9-2) UNRELEASED; urgency=low + + * Minor label update + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 10 Jul 2020 04:31:00 +0200 +python-django-ishtar (3.0.9-1) UNRELEASED; urgency=low + + * New upstream version cf. CHANGES.md + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 1 Jul 2020 18:07:00 +0200 +python-django-ishtar (3.0.8-4) UNRELEASED; urgency=low + + * Add custom_settings import + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 16 Jun 2020 15:31:00 +0200 +python-django-ishtar (3.0.8-3) UNRELEASED; urgency=low + + * Fix import error when celery dependency is missing + + -- Étienne Loks <etienne.loks@iggdrasil.net> Thu, 11 Jun 2020 15:46:00 +0200 +python-django-ishtar (3.0.8-2) UNRELEASED; urgency=low + + * Fix missing package on setup + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 27 May 2020 20:53:00 +0200 +python-django-ishtar (3.0.8-1) UNRELEASED; urgency=low + + * New upstream version cf. CHANGES.md + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 26 May 2020 15:44:00 +0200 +python-django-ishtar (3.0.7-1) UNRELEASED; urgency=low + + * New upstream version cf. CHANGES.md + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 11 May 2020 10:47:00 +0200 +python-django-ishtar (3.0.6-2) UNRELEASED; urgency=low + + * Fix bad upload + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 1 May 2020 12:16:00 +0200 +python-django-ishtar (3.0.6-1) UNRELEASED; urgency=low + + * Fix database initialization + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 1 May 2020 12:07:00 +0200 +python-django-ishtar (3.0.5-2) UNRELEASED; urgency=low + + * Fix bad link and bad init + + -- Étienne Loks <etienne.loks@iggdrasil.net> Thu, 30 Apr 2020 18:15:00 +0200 +python-django-ishtar (3.0.5-1) UNRELEASED; urgency=low + + * New upstream version cf. CHANGES.md + + -- Étienne Loks <etienne.loks@iggdrasil.net> Sat, 28 Mar 2020 15:32:00 +0200 +python-django-ishtar (3.0.4-1) UNRELEASED; urgency=low + + * New upstream version cf. CHANGES.md + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 11 Mar 2020 15:32:00 +0200 +python-django-ishtar (3.0.3-1) UNRELEASED; urgency=low + + * New upstream version cf. CHANGES.md + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 24 Feb 2020 13:00:00 +0200 +python-django-ishtar (3.0.2-6) UNRELEASED; urgency=low + + * add an extra_settings.py file - version number fix + + -- Étienne Loks <etienne.loks@iggdrasil.net> Fri, 21 Feb 2020 17:00:00 +0200 +python-django-ishtar (3.0.2-5) UNRELEASED; urgency=low + + * fix celery binary path in systemd conf + + -- Étienne Loks <etienne.loks@iggdrasil.net> Tue, 18 Feb 2020 12:30:00 +0200 +python-django-ishtar (3.0.2-4) UNRELEASED; urgency=low + + * fix bad path for conf.d + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 17 Feb 2020 20:30:00 +0200 +python-django-ishtar (3.0.2-3) UNRELEASED; urgency=low + + * start celery daemon before user creation + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 17 Feb 2020 19:45:00 +0200 +python-django-ishtar (3.0.2-2) UNRELEASED; urgency=low + + * conf.d dir in /etc/ishtar + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 17 Feb 2020 18:40:00 +0200 +python-django-ishtar (3.0.2-1) UNRELEASED; urgency=low + + * New upstream version cf. CHANGES.md + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 17 Feb 2020 15:15:00 +0200 +python-django-ishtar (3.0.1-1) UNRELEASED; urgency=low + + * New upstream version cf. CHANGES.md + + -- Étienne Loks <etienne.loks@iggdrasil.net> Thu, 13 Feb 2020 11:00:00 +0200 +python-django-ishtar (3.0.0-1) UNRELEASED; urgency=low + + * New version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 29 Jan 2020 11:00:00 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 000000000..f599e28b8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 000000000..b986b2fe6 --- /dev/null +++ b/debian/control @@ -0,0 +1,64 @@ +Source: python-django-ishtar +Section: python +Priority: optional +Maintainer: Étienne Loks <etienne.loks@iggdrasil.net> +Build-Depends: debhelper (>= 11~), + dh-python, + python3-all, + python3-setuptools +Standards-Version: 4.3.0 +Homepage: https://ishtar-archeo.net/ + +Package: python3-django-ishtar +Architecture: all +Depends: ${misc:Depends}, + ${python3:Depends}, + python3-argon2, + python3-bs4, + python3-cairosvg, + python3-distutils, + python3-gdal, + python3-lxml, + python3-markdown, + python3-memcache, + python3-psycopg2, + python3-pil, + python3-png, + python3-pyqrcode, + python3-requests, + python3-tidylib, + python3-unidecode, + python3-xmltodict, + python3-fiona, + python3-pyproj, + python3-django-simple-history, + python3-secretary, + python3-django (>= 2:2.2.24), + python3-django (<< 2:2.3.0), + python3-ajax-select, + python3-djangorestframework, + python3-django-axes, + python3-django-compressor, + python3-django-extensions, + python3-django-extra-views, + python3-django-formtools, + python3-django-registration, + apg, + gettext, + locales, + memcached, + graphviz, + poppler-utils, + pandoc, + weasyprint +Recommends: + postgresql, + postgresql-contrib, + postgresql-13-postgis-3, + postgresql-13-postgis-3-scripts, + uwsgi, + uwsgi-plugin-python3, + nginx +Description: Archaeological data management + Ishtar aims at enabling the management, improvement, analysis and sharing of + data from archaeological excavations, from fieldwork to museums. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 000000000..6dee472c6 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,42 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: ishtar +Source: https://gitlab.com/iggdrasil/ishtar.git + +Files: * +Copyright: 2013-2022 Étienne Loks <etienne.loks@iggdrasil.net> +License: AGPL-3.0+ + +Files: debian/* +Copyright: 2013-2022 Étienne Loks <etienne.loks@iggdrasil.net> +License: GPL-3.0+ + +License: GPL-3.0+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + . + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". + +License: AGPL-3.0 + This program is free software: you can use, redistribute, and/or modify + this code under the terms of the GNU Affero General Public License + version 3. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + . + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + diff --git a/debian/python3-django-ishtar.install b/debian/python3-django-ishtar.install new file mode 100644 index 000000000..becd40ad4 --- /dev/null +++ b/debian/python3-django-ishtar.install @@ -0,0 +1 @@ +example_project conf changelog database fixtures install locale pot scripts scss usr/share/python3-django-ishtar/ diff --git a/debian/python3-django-ishtar.links b/debian/python3-django-ishtar.links new file mode 100644 index 000000000..0dc44a33e --- /dev/null +++ b/debian/python3-django-ishtar.links @@ -0,0 +1,7 @@ +usr/share/python3-django-ishtar/install/ishtar-prepare-instance usr/sbin/ishtar-prepare-instance +usr/share/python3-django-ishtar/install/ishtar-delete-instance usr/sbin/ishtar-delete-instance +usr/share/python3-django-ishtar/fixtures srv/ishtar/fixtures +usr/share/python3-django-ishtar/locale srv/ishtar/locale +usr/share/python3-django-ishtar/example_project srv/ishtar/example_project +usr/share/python3-django-ishtar/install srv/ishtar/install +usr/share/python3-django-ishtar/install/extra_settings.py etc/ishtar/extra_settings.py diff --git a/debian/python3-django-ishtar.postinst b/debian/python3-django-ishtar.postinst new file mode 100644 index 000000000..65183dfb8 --- /dev/null +++ b/debian/python3-django-ishtar.postinst @@ -0,0 +1,105 @@ +#!/bin/bash + +set -e +#set -x + +cecho() { + local code="\033[" + case "$1" in + black | bk) color="${code}0;30m";; + red | r) color="${code}1;31m";; + green | g) color="${code}1;32m";; + yellow | y) color="${code}1;33m";; + blue | b) color="${code}1;34m";; + purple | p) color="${code}1;35m";; + cyan | c) color="${code}1;36m";; + gray | gr) color="${code}0;37m";; + *) local text="$1" + esac + [ -z "$text" ] && local text="$color$2${code}0m" + echo -e "$text" +} + +DATA_DIR=/srv/ishtar +CONFIG_PATH=/etc/ishtar +INSTANCES_FILE=$CONFIG_PATH/instances + +case "$1" in + configure) + mkdir -p $CONFIG_PATH 2> /dev/null + if [ ! -f $CONFIG_PATH/config ]; then + cp /usr/share/python3-django-ishtar/install/config.template $CONFIG_PATH/config ; + fi + source $CONFIG_PATH/config + export LANG=$ISHTAR_LOCALE.UTF-8 + if [ "$(locale 2>&1 >/dev/null|wc -l)" != 0 ]; then + cecho r "Unable to set LANG=$LANG properly" + cecho y "Try: 'dpkg-reconfigure locales' or install the 'locales-all' package." + cecho y "If you want to use another locale, modify /etc/ishtar/config properly." + exit 1 + fi + instances="$( (cat $INSTANCES_FILE 2>/dev/null || true) | xargs )" + if [ -n "$instances" ]; then + if [ -f /usr/sbin/rabbitmqctl ]; then # assume queues are configured + cecho c "Verify rabbitmq queues are empty" + for instance in $instances; do + for res in `/usr/sbin/rabbitmqctl list_queues -p /ishtar$instance -q messages`; do + if [ $res != 0 ] && [ $res != 'messages' ]; then + cecho r "The queue for $instance is not empty ($res messages)." + cecho y "Wait a few minutes (hours?) for update." + exit 1 + fi; + done + done + fi + messages_compiled=""; + for instance in $instances; do + if [ ! $messages_compiled ]; then + cecho c "Compile i18n messages" + (cd $DATA_DIR; python3 $DATA_DIR/$instance/manage.py compilemessages); + messages_compiled="ok"; + cecho c "Updating instances found in $INSTANCES_FILE: $instances" + fi + # The upgrade procedure below was built from the "update" + # target and its dependencies in the upstream Makefile: + cecho c "* Updating $instance" + cd $DATA_DIR/$instance + # migrate + python3 manage.py migrate + # "collectstatic" + python3 manage.py collectstatic --noinput + cecho g "Updating $instance: OK" + done + cecho g "Updating all instances: OK" + + # the assumption is that nginx and uwsgi were configured + # through ishtar-prepare-instance, so let's restart them + # unconditionally: + cecho c "Restarting uwsgi and nginx" + invoke-rc.d uwsgi restart + invoke-rc.d nginx restart + cecho g "Restarting uwsgi and nginx: OK" + SUPERVISOR=/usr/bin/supervisorctl + if [ -f "$SUPERVISOR" ]; then + cecho c "Restarting supervisor service" + $SUPERVISOR restart all + cecho g "Restarting supervisor service: OK" + fi + else + cecho g "Found no instances to update in $INSTANCES_FILE" + cecho y "To create a new instance:" + cecho y " ishtar-prepare-instance" + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER#
\ No newline at end of file diff --git a/debian/rules b/debian/rules new file mode 100755 index 000000000..9956da312 --- /dev/null +++ b/debian/rules @@ -0,0 +1,41 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +## Prevent setuptools/distribute from accessing the internet. +#export http_proxy = http://127.0.9.1:9 + +export PYBUILD_NAME = ishtar + +%: + @dh $@ --with python3 --buildsystem=pybuild + +override_dh_auto_install: + dh_auto_install + mkdir -p debian/tmp/usr/sbin + mkdir -p debian/tmp/etc/ishtar/conf.d + touch debian/tmp/etc/ishtar/instances + mkdir -p debian/tmp/srv/ishtar + touch debian/tmp/srv/ishtar/__init__.py + +override_dh_auto_test: + # create test databases and default database to allow setup + #sudo -u postgres psql -c 'DROP DATABASE IF EXISTS "ishtar-setup-test";' + #sudo -u postgres psql -c 'DROP DATABASE IF EXISTS "test_ishtar-setup-test";' + #sudo -u postgres psql -c 'DROP ROLE IF EXISTS "ishtar-setup-test";' + # superuser needed to create postgis extension... + #sudo -u postgres createuser --superuser ishtar-setup-test + #sudo -u postgres psql -c "ALTER USER \"ishtar-setup-test\" WITH PASSWORD 'ishtar-setup-test';" + #sudo -u postgres createdb -O ishtar-setup-test ishtar-setup-test + #cp -ra example_project/media/ example_project/media_bak + #dh_auto_test + # clean files generated by tests + #rm -rf example_project/media/ + #rm -rf example_project/static/ + #mv example_project/media_bak/ example_project/media + #sudo -u postgres psql -c 'DROP DATABASE IF EXISTS "ishtar-setup-test";' + #sudo -u postgres psql -c 'DROP DATABASE IF EXISTS "test_ishtar-setup-test";' + #sudo -u postgres psql -c 'DROP ROLE IF EXISTS "ishtar-setup-test";' + echo "Auto test disabled..." + diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 000000000..163aaf8d8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/example_project/local_settings.py.sample b/example_project/local_settings.py.sample index 21e7cb791..5e5c9a5e6 100644 --- a/example_project/local_settings.py.sample +++ b/example_project/local_settings.py.sample @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python3 # -*- coding: utf-8 -*- # rename this file to local_settings.py and overload settings in this file diff --git a/example_project/media/upload/templates/document_reference.odt b/example_project/media/upload/templates/document_reference.odt Binary files differindex acda588fb..acda588fb 100755..100644 --- a/example_project/media/upload/templates/document_reference.odt +++ b/example_project/media/upload/templates/document_reference.odt diff --git a/install/ishtar-cron-daily b/install/ishtar-cron-daily index c586b81a3..c586b81a3 100644..100755 --- a/install/ishtar-cron-daily +++ b/install/ishtar-cron-daily diff --git a/install/local_settings.py.sample b/install/local_settings.py.sample index 0f373ebcf..b19c6e6f6 100644 --- a/install/local_settings.py.sample +++ b/install/local_settings.py.sample @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python3 # -*- coding: utf-8 -*- DEBUG = False diff --git a/ishtar_common/static/js/prettyPhoto/README b/ishtar_common/static/js/prettyPhoto/README index 1e5684253..1e5684253 100755..100644 --- a/ishtar_common/static/js/prettyPhoto/README +++ b/ishtar_common/static/js/prettyPhoto/README diff --git a/ishtar_common/static/js/prettyPhoto/js/jquery.prettyPhoto.js b/ishtar_common/static/js/prettyPhoto/js/jquery.prettyPhoto.js index d958202a4..a5559e7a7 100644 --- a/ishtar_common/static/js/prettyPhoto/js/jquery.prettyPhoto.js +++ b/ishtar_common/static/js/prettyPhoto/js/jquery.prettyPhoto.js @@ -4,4 +4,4 @@ Author: Stephane Caron (http://www.no-margin-for-errors.com) Version: 3.1.5 ------------------------------------------------------------------------- */ -(function(e){function t(){var e=location.href;hashtag=e.indexOf("#prettyPhoto")!==-1?decodeURI(e.substring(e.indexOf("#prettyPhoto")+1,e.length)):false;return hashtag}function n(){if(typeof theRel=="undefined")return;location.hash=theRel+"/"+rel_index+"/"}function r(){if(location.href.indexOf("#prettyPhoto")!==-1)location.hash="prettyPhoto"}function i(e,t){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n="[\\?&]"+e+"=([^&#]*)";var r=new RegExp(n);var i=r.exec(t);return i==null?"":i[1]}e.prettyPhoto={version:"3.1.5"};e.fn.prettyPhoto=function(s){function g(){e(".pp_loaderIcon").hide();projectedTop=scroll_pos["scrollTop"]+(d/2-a["containerHeight"]/2);if(projectedTop<0)projectedTop=0;$ppt.fadeTo(settings.animation_speed,1);$pp_pic_holder.find(".pp_content").animate({height:a["contentHeight"],width:a["contentWidth"]},settings.animation_speed);$pp_pic_holder.animate({top:projectedTop,left:v/2-a["containerWidth"]/2<0?0:v/2-a["containerWidth"]/2,width:a["containerWidth"]},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(a["height"]).width(a["width"]);$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed);if(isSet&&S(pp_images[set_position])=="image"){$pp_pic_holder.find(".pp_hoverContainer").show()}else{$pp_pic_holder.find(".pp_hoverContainer").hide()}if(settings.allow_expand){if(a["resized"]){e("a.pp_expand,a.pp_contract").show()}else{e("a.pp_expand").hide()}}if(settings.autoplay_slideshow&&!m&&!f)e.prettyPhoto.startSlideshow();settings.changepicturecallback();f=true});C();s.ajaxcallback()}function y(t){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden");$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,function(){e(".pp_loaderIcon").show();t()})}function b(t){t>1?e(".pp_nav").show():e(".pp_nav").hide()}function w(e,t){resized=false;E(e,t);imageWidth=e,imageHeight=t;if((p>v||h>d)&&doresize&&settings.allow_resize&&!u){resized=true,fitting=false;while(!fitting){if(p>v){imageWidth=v-200;imageHeight=t/e*imageWidth}else if(h>d){imageHeight=d-200;imageWidth=e/t*imageHeight}else{fitting=true}h=imageHeight,p=imageWidth}if(p>v||h>d){w(p,h)}E(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(h),containerWidth:Math.floor(p)+settings.horizontal_padding*2,contentHeight:Math.floor(l),contentWidth:Math.floor(c),resized:resized}}function E(t,n){t=parseFloat(t);n=parseFloat(n);$pp_details=$pp_pic_holder.find(".pp_details");$pp_details.width(t);detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom"));$pp_details=$pp_details.clone().addClass(settings.theme).width(t).appendTo(e("body")).css({position:"absolute",top:-1e4});detailsHeight+=$pp_details.height();detailsHeight=detailsHeight<=34?36:detailsHeight;$pp_details.remove();$pp_title=$pp_pic_holder.find(".ppt");$pp_title.width(t);titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom"));$pp_title=$pp_title.clone().appendTo(e("body")).css({position:"absolute",top:-1e4});titleHeight+=$pp_title.height();$pp_title.remove();l=n+detailsHeight;c=t;h=l+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height();p=t}function S(e){if(e.match(/youtube\.com\/watch/i)||e.match(/youtu\.be/i)){return"youtube"}else if(e.match(/vimeo\.com/i)){return"vimeo"}else if(e.match(/\b.mov\b/i)){return"quicktime"}else if(e.match(/\b.swf\b/i)){return"flash"}else if(e.match(/\biframe=true\b/i)){return"iframe"}else if(e.match(/\bajax=true\b/i)){return"ajax"}else if(e.match(/\bcustom=true\b/i)){return"custom"}else if(e.substr(0,1)=="#"){return"inline"}else{return"image"}}function x(){if(doresize&&typeof $pp_pic_holder!="undefined"){scroll_pos=T();contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width();projectedTop=d/2+scroll_pos["scrollTop"]-contentHeight/2;if(projectedTop<0)projectedTop=0;if(contentHeight>d)return;$pp_pic_holder.css({top:projectedTop,left:v/2+scroll_pos["scrollLeft"]-contentwidth/2})}}function T(){if(self.pageYOffset){return{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}}else if(document.documentElement&&document.documentElement.scrollTop){return{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}}else if(document.body){return{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}}}function N(){d=e(window).height(),v=e(window).width();if(typeof $pp_overlay!="undefined")$pp_overlay.height(e(document).height()).width(v)}function C(){if(isSet&&settings.overlay_gallery&&S(pp_images[set_position])=="image"){itemWidth=52+5;navWidth=settings.theme=="facebook"||settings.theme=="pp_default"?50:30;itemsPerPage=Math.floor((a["containerWidth"]-100-navWidth)/itemWidth);itemsPerPage=itemsPerPage<pp_images.length?itemsPerPage:pp_images.length;totalPage=Math.ceil(pp_images.length/itemsPerPage)-1;if(totalPage==0){navWidth=0;$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").hide()}else{$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").show()}galleryWidth=itemsPerPage*itemWidth;fullGalleryWidth=pp_images.length*itemWidth;$pp_gallery.css("margin-left",-(galleryWidth/2+navWidth/2)).find("div:first").width(galleryWidth+5).find("ul").width(fullGalleryWidth).find("li.selected").removeClass("selected");goToPage=Math.floor(set_position/itemsPerPage)<totalPage?Math.floor(set_position/itemsPerPage):totalPage;e.prettyPhoto.changeGalleryPage(goToPage);$pp_gallery_li.filter(":eq("+set_position+")").addClass("selected")}else{$pp_pic_holder.find(".pp_content").unbind("mouseenter mouseleave")}}function k(t){if(settings.social_tools)facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href));settings.markup=settings.markup.replace("{pp_social}","");e("body").append(settings.markup);$pp_pic_holder=e(".pp_pic_holder"),$ppt=e(".ppt"),$pp_overlay=e("div.pp_overlay");if(isSet&&settings.overlay_gallery){currentGalleryPage=0;toInject="";for(var n=0;n<pp_images.length;n++){if(!pp_images[n].match(/\b(jpg|jpeg|png|gif)\b/gi)){classname="default";img_src=""}else{classname="";img_src=pp_images[n]}toInject+="<li class='"+classname+"'><a href='#'><img src='"+img_src+"' width='50' alt='' /></a></li>"}toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find("#pp_full_res").after(toInject);$pp_gallery=e(".pp_pic_holder .pp_gallery"),$pp_gallery_li=$pp_gallery.find("li");$pp_gallery.find(".pp_arrow_next").click(function(){e.prettyPhoto.changeGalleryPage("next");e.prettyPhoto.stopSlideshow();return false});$pp_gallery.find(".pp_arrow_previous").click(function(){e.prettyPhoto.changeGalleryPage("previous");e.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()});itemWidth=52+5;$pp_gallery_li.each(function(t){e(this).find("a").click(function(){e.prettyPhoto.changePage(t);e.prettyPhoto.stopSlideshow();return false})})}if(settings.slideshow){$pp_pic_holder.find(".pp_nav").prepend('<a href="#" class="pp_play">Play</a>');$pp_pic_holder.find(".pp_nav .pp_play").click(function(){e.prettyPhoto.startSlideshow();return false})}$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme);$pp_overlay.css({opacity:0,height:e(document).height(),width:e(window).width()}).bind("click",function(){if(!settings.modal)e.prettyPhoto.close()});e("a.pp_close").bind("click",function(){e.prettyPhoto.close();return false});if(settings.allow_expand){e("a.pp_expand").bind("click",function(t){if(e(this).hasClass("pp_expand")){e(this).removeClass("pp_expand").addClass("pp_contract");doresize=false}else{e(this).removeClass("pp_contract").addClass("pp_expand");doresize=true}y(function(){e.prettyPhoto.open()});return false})}$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){e.prettyPhoto.changePage("previous");e.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){e.prettyPhoto.changePage("next");e.prettyPhoto.stopSlideshow();return false});x()}s=jQuery.extend({hook:"rel",animation_speed:"fast",ajaxcallback:function(){},slideshow:5e3,autoplay_slideshow:false,opacity:.8,show_title:true,allow_resize:true,allow_expand:true,default_width:500,default_height:344,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:false,wmode:"opaque",autoplay:true,modal:false,deeplinking:true,overlay_gallery:true,overlay_gallery_max:30,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},ie6_fallback:true,markup:'<div class="pp_pic_holder"> <div class="ppt"> </div> <div class="pp_top"> <div class="pp_left"></div> <div class="pp_middle"></div> <div class="pp_right"></div> </div> <div class="pp_content_container"> <div class="pp_left"> <div class="pp_right"> <div class="pp_content"> <div class="pp_loaderIcon"></div> <div class="pp_fade"> <a href="#" class="pp_expand" title="Expand the image">Expand</a> <div class="pp_hoverContainer"> <a class="pp_next" href="#">next</a> <a class="pp_previous" href="#">previous</a> </div> <div id="pp_full_res"></div> <div class="pp_details"> <div class="pp_nav"> <a href="#" class="pp_arrow_previous">Previous</a> <p class="currentTextHolder">0/0</p> <a href="#" class="pp_arrow_next">Next</a> </div> <p class="pp_description"></p> <div class="pp_social">{pp_social}</div> <a class="pp_close" href="#">Close</a> </div> </div> </div> </div> </div> </div> <div class="pp_bottom"> <div class="pp_left"></div> <div class="pp_middle"></div> <div class="pp_right"></div> </div> </div> <div class="pp_overlay"></div>',gallery_markup:'<div class="pp_gallery"> <a href="#" class="pp_arrow_previous">Previous</a> <div> <ul> {gallery} </ul> </div> <a href="#" class="pp_arrow_next">Next</a> </div>',image_markup:'<img id="fullResImage" src="{path}" />',flash_markup:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',quicktime_markup:'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',iframe_markup:'<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',inline_markup:'<div class="pp_inline">{content}</div>',custom_markup:"",social_tools:'<div class="twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook"><iframe src="//www.facebook.com/plugins/like.php?locale=en_US&href={location_href}&layout=button_count&show_faces=true&width=500&action=like&font&colorscheme=light&height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div>'},s);var o=this,u=false,a,f,l,c,h,p,d=e(window).height(),v=e(window).width(),m;doresize=true,scroll_pos=T();e(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){x();N()});if(s.keyboard_shortcuts){e(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(t){if(typeof $pp_pic_holder!="undefined"){if($pp_pic_holder.is(":visible")){switch(t.keyCode){case 37:e.prettyPhoto.changePage("previous");t.preventDefault();break;case 39:e.prettyPhoto.changePage("next");t.preventDefault();break;case 27:if(!settings.modal)e.prettyPhoto.close();t.preventDefault();break}}}})}e.prettyPhoto.initialize=function(){settings=s;if(settings.theme=="pp_default")settings.horizontal_padding=16;theRel=e(this).attr(settings.hook);galleryRegExp=/\[(?:.*)\]/;isSet=galleryRegExp.exec(theRel)?true:false;pp_images=isSet?jQuery.map(o,function(t,n){if(e(t).attr(settings.hook).indexOf(theRel)!=-1)return e(t).attr("href")}):e.makeArray(e(this).attr("href"));pp_titles=isSet?jQuery.map(o,function(t,n){if(e(t).attr(settings.hook).indexOf(theRel)!=-1)return e(t).find("img").attr("alt")?e(t).find("img").attr("alt"):""}):e.makeArray(e(this).find("img").attr("alt"));pp_descriptions=isSet?jQuery.map(o,function(t,n){if(e(t).attr(settings.hook).indexOf(theRel)!=-1)return e(t).attr("title")?e(t).attr("title"):""}):e.makeArray(e(this).attr("title"));if(pp_images.length>settings.overlay_gallery_max)settings.overlay_gallery=false;set_position=jQuery.inArray(e(this).attr("href"),pp_images);rel_index=isSet?set_position:e("a["+settings.hook+"^='"+theRel+"']").index(e(this));k(this);if(settings.allow_resize)e(window).bind("scroll.prettyphoto",function(){x()});e.prettyPhoto.open();return false};e.prettyPhoto.open=function(t){if(typeof settings=="undefined"){settings=s;pp_images=e.makeArray(arguments[0]);pp_titles=arguments[1]?e.makeArray(arguments[1]):e.makeArray("");pp_descriptions=arguments[2]?e.makeArray(arguments[2]):e.makeArray("");isSet=pp_images.length>1?true:false;set_position=arguments[3]?arguments[3]:0;k(t.target)}if(settings.hideflash)e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","hidden");b(e(pp_images).size());e(".pp_loaderIcon").show();if(settings.deeplinking)n();if(settings.social_tools){facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href));$pp_pic_holder.find(".pp_social").html(facebook_like_link)}if($ppt.is(":hidden"))$ppt.css("opacity",0).show();$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity);$pp_pic_holder.find(".currentTextHolder").text(set_position+1+settings.counter_separator_label+e(pp_images).size());if(typeof pp_descriptions[set_position]!="undefined"&&pp_descriptions[set_position]!=""){$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position]))}else{$pp_pic_holder.find(".pp_description").hide()}movie_width=parseFloat(i("width",pp_images[set_position]))?i("width",pp_images[set_position]):settings.default_width.toString();movie_height=parseFloat(i("height",pp_images[set_position]))?i("height",pp_images[set_position]):settings.default_height.toString();u=false;if(movie_height.indexOf("%")!=-1){movie_height=parseFloat(e(window).height()*parseFloat(movie_height)/100-150);u=true}if(movie_width.indexOf("%")!=-1){movie_width=parseFloat(e(window).width()*parseFloat(movie_width)/100-150);u=true}$pp_pic_holder.fadeIn(function(){settings.show_title&&pp_titles[set_position]!=""&&typeof pp_titles[set_position]!="undefined"?$ppt.html(unescape(pp_titles[set_position])):$ppt.html(" ");imgPreloader="";skipInjection=false;switch(S(pp_images[set_position])){case"image":imgPreloader=new Image;nextImage=new Image;if(isSet&&set_position<e(pp_images).size()-1)nextImage.src=pp_images[set_position+1];prevImage=new Image;if(isSet&&pp_images[set_position-1])prevImage.src=pp_images[set_position-1];$pp_pic_holder.find("#pp_full_res")[0].innerHTML=settings.image_markup.replace(/{path}/g,pp_images[set_position]);imgPreloader.onload=function(){a=w(imgPreloader.width,imgPreloader.height);g()};imgPreloader.onerror=function(){alert("Image cannot be loaded. Make sure the path is correct and image exist.");e.prettyPhoto.close()};imgPreloader.src=pp_images[set_position];break;case"youtube":a=w(movie_width,movie_height);movie_id=i("v",pp_images[set_position]);if(movie_id==""){movie_id=pp_images[set_position].split("youtu.be/");movie_id=movie_id[1];if(movie_id.indexOf("?")>0)movie_id=movie_id.substr(0,movie_id.indexOf("?"));if(movie_id.indexOf("&")>0)movie_id=movie_id.substr(0,movie_id.indexOf("&"))}movie="http://www.youtube.com/embed/"+movie_id;i("rel",pp_images[set_position])?movie+="?rel="+i("rel",pp_images[set_position]):movie+="?rel=1";if(settings.autoplay)movie+="&autoplay=1";toInject=settings.iframe_markup.replace(/{width}/g,a["width"]).replace(/{height}/g,a["height"]).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":a=w(movie_width,movie_height);movie_id=pp_images[set_position];var t=/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/;var n=movie_id.match(t);movie="http://player.vimeo.com/video/"+n[3]+"?title=0&byline=0&portrait=0";if(settings.autoplay)movie+="&autoplay=1;";vimeo_width=a["width"]+"/embed/?moog_width="+a["width"];toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,a["height"]).replace(/{path}/g,movie);break;case"quicktime":a=w(movie_width,movie_height);a["height"]+=15;a["contentHeight"]+=15;a["containerHeight"]+=15;toInject=settings.quicktime_markup.replace(/{width}/g,a["width"]).replace(/{height}/g,a["height"]).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":a=w(movie_width,movie_height);flash_vars=pp_images[set_position];flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length);filename=pp_images[set_position];filename=filename.substring(0,filename.indexOf("?"));toInject=settings.flash_markup.replace(/{width}/g,a["width"]).replace(/{height}/g,a["height"]).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":a=w(movie_width,movie_height);frame_url=pp_images[set_position];frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1);toInject=settings.iframe_markup.replace(/{width}/g,a["width"]).replace(/{height}/g,a["height"]).replace(/{path}/g,frame_url);break;case"ajax":doresize=false;a=w(movie_width,movie_height);doresize=true;skipInjection=true;e.get(pp_images[set_position],function(e){toInject=settings.inline_markup.replace(/{content}/g,e);$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject;g()});break;case"custom":a=w(movie_width,movie_height);toInject=settings.custom_markup;break;case"inline":myClone=e(pp_images[set_position]).clone().append('<br clear="all" />').css({width:settings.default_width}).wrapInner('<div id="pp_full_res"><div class="pp_inline"></div></div>').appendTo(e("body")).show();doresize=false;a=w(e(myClone).width(),e(myClone).height());doresize=true;e(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,e(pp_images[set_position]).html());break}if(!imgPreloader&&!skipInjection){$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject;g()}});return false};e.prettyPhoto.changePage=function(t){currentGalleryPage=0;if(t=="previous"){set_position--;if(set_position<0)set_position=e(pp_images).size()-1}else if(t=="next"){set_position++;if(set_position>e(pp_images).size()-1)set_position=0}else{set_position=t}rel_index=set_position;if(!doresize)doresize=true;if(settings.allow_expand){e(".pp_contract").removeClass("pp_contract").addClass("pp_expand")}y(function(){e.prettyPhoto.open()})};e.prettyPhoto.changeGalleryPage=function(e){if(e=="next"){currentGalleryPage++;if(currentGalleryPage>totalPage)currentGalleryPage=0}else if(e=="previous"){currentGalleryPage--;if(currentGalleryPage<0)currentGalleryPage=totalPage}else{currentGalleryPage=e}slide_speed=e=="next"||e=="previous"?settings.animation_speed:0;slide_to=currentGalleryPage*itemsPerPage*itemWidth;$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)};e.prettyPhoto.startSlideshow=function(){if(typeof m=="undefined"){$pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){e.prettyPhoto.stopSlideshow();return false});m=setInterval(e.prettyPhoto.startSlideshow,settings.slideshow)}else{e.prettyPhoto.changePage("next")}};e.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){e.prettyPhoto.startSlideshow();return false});clearInterval(m);m=undefined};e.prettyPhoto.close=function(){if($pp_overlay.is(":animated"))return;e.prettyPhoto.stopSlideshow();$pp_pic_holder.stop().find("object,embed").css("visibility","hidden");e("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){e(this).remove()});$pp_overlay.fadeOut(settings.animation_speed,function(){if(settings.hideflash)e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","visible");e(this).remove();e(window).unbind("scroll.prettyphoto");r();settings.callback();doresize=true;f=false;delete settings})};if(!pp_alreadyInitialized&&t()){pp_alreadyInitialized=true;hashIndex=t();hashRel=hashIndex;hashIndex=hashIndex.substring(hashIndex.indexOf("/")+1,hashIndex.length-1);hashRel=hashRel.substring(0,hashRel.indexOf("/"));setTimeout(function(){e("a["+s.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger("click")},50)}return this.unbind("click.prettyphoto").bind("click.prettyphoto",e.prettyPhoto.initialize)};})(jQuery);var pp_alreadyInitialized=false
\ No newline at end of file +(function(e){function t(){var e=location.href;hashtag=e.indexOf("#prettyPhoto")!==-1?decodeURI(e.substring(e.indexOf("#prettyPhoto")+1,e.length)):false;return hashtag}function n(){if(typeof theRel=="undefined")return;location.hash=theRel+"/"+rel_index+"/"}function r(){if(location.href.indexOf("#prettyPhoto")!==-1)location.hash="prettyPhoto"}function i(e,t){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n="[\\?&]"+e+"=([^&#]*)";var r=new RegExp(n);var i=r.exec(t);return i==null?"":i[1]}e.prettyPhoto={version:"3.1.5"};e.fn.prettyPhoto=function(s){function g(){e(".pp_loaderIcon").hide();projectedTop=scroll_pos["scrollTop"]+(d/2-a["containerHeight"]/2);if(projectedTop<0)projectedTop=0;$ppt.fadeTo(settings.animation_speed,1);$pp_pic_holder.find(".pp_content").animate({height:a["contentHeight"],width:a["contentWidth"]},settings.animation_speed);$pp_pic_holder.animate({top:projectedTop,left:v/2-a["containerWidth"]/2<0?0:v/2-a["containerWidth"]/2,width:a["containerWidth"]},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(a["height"]).width(a["width"]);$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed);if(isSet&&S(pp_images[set_position])=="image"){$pp_pic_holder.find(".pp_hoverContainer").show()}else{$pp_pic_holder.find(".pp_hoverContainer").hide()}if(settings.allow_expand){if(a["resized"]){e("a.pp_expand,a.pp_contract").show()}else{e("a.pp_expand").hide()}}if(settings.autoplay_slideshow&&!m&&!f)e.prettyPhoto.startSlideshow();settings.changepicturecallback();f=true});C();s.ajaxcallback()}function y(t){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden");$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,function(){e(".pp_loaderIcon").show();t()})}function b(t){t>1?e(".pp_nav").show():e(".pp_nav").hide()}function w(e,t){resized=false;E(e,t);imageWidth=e,imageHeight=t;if((p>v||h>d)&&doresize&&settings.allow_resize&&!u){resized=true,fitting=false;while(!fitting){if(p>v){imageWidth=v-200;imageHeight=t/e*imageWidth}else if(h>d){imageHeight=d-200;imageWidth=e/t*imageHeight}else{fitting=true}h=imageHeight,p=imageWidth}if(p>v||h>d){w(p,h)}E(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(h),containerWidth:Math.floor(p)+settings.horizontal_padding*2,contentHeight:Math.floor(l),contentWidth:Math.floor(c),resized:resized}}function E(t,n){t=parseFloat(t);n=parseFloat(n);$pp_details=$pp_pic_holder.find(".pp_details");$pp_details.width(t);detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom"));$pp_details=$pp_details.clone().addClass(settings.theme).width(t).appendTo(e("body")).css({position:"absolute",top:-1e4});detailsHeight+=$pp_details.height();detailsHeight=detailsHeight<=34?36:detailsHeight;$pp_details.remove();$pp_title=$pp_pic_holder.find(".ppt");$pp_title.width(t);titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom"));$pp_title=$pp_title.clone().appendTo(e("body")).css({position:"absolute",top:-1e4});titleHeight+=$pp_title.height();$pp_title.remove();l=n+detailsHeight;c=t;h=l+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height();p=t}function S(e){if(e.match(/youtube\.com\/watch/i)||e.match(/youtu\.be/i)){return"youtube"}else if(e.match(/vimeo\.com/i)){return"vimeo"}else if(e.match(/\b.mov\b/i)){return"quicktime"}else if(e.match(/\b.swf\b/i)){return"flash"}else if(e.match(/\biframe=true\b/i)){return"iframe"}else if(e.match(/\bajax=true\b/i)){return"ajax"}else if(e.match(/\bcustom=true\b/i)){return"custom"}else if(e.substr(0,1)=="#"){return"inline"}else{return"image"}}function x(){if(doresize&&typeof $pp_pic_holder!="undefined"){scroll_pos=T();contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width();projectedTop=d/2+scroll_pos["scrollTop"]-contentHeight/2;if(projectedTop<0)projectedTop=0;if(contentHeight>d)return;$pp_pic_holder.css({top:projectedTop,left:v/2+scroll_pos["scrollLeft"]-contentwidth/2})}}function T(){if(self.pageYOffset){return{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}}else if(document.documentElement&&document.documentElement.scrollTop){return{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}}else if(document.body){return{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}}}function N(){d=e(window).height(),v=e(window).width();if(typeof $pp_overlay!="undefined")$pp_overlay.height(e(document).height()).width(v)}function C(){if(isSet&&settings.overlay_gallery&&S(pp_images[set_position])=="image"){itemWidth=52+5;navWidth=settings.theme=="facebook"||settings.theme=="pp_default"?50:30;itemsPerPage=Math.floor((a["containerWidth"]-100-navWidth)/itemWidth);itemsPerPage=itemsPerPage<pp_images.length?itemsPerPage:pp_images.length;totalPage=Math.ceil(pp_images.length/itemsPerPage)-1;if(totalPage==0){navWidth=0;$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").hide()}else{$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").show()}galleryWidth=itemsPerPage*itemWidth;fullGalleryWidth=pp_images.length*itemWidth;$pp_gallery.css("margin-left",-(galleryWidth/2+navWidth/2)).find("div:first").width(galleryWidth+5).find("ul").width(fullGalleryWidth).find("li.selected").removeClass("selected");goToPage=Math.floor(set_position/itemsPerPage)<totalPage?Math.floor(set_position/itemsPerPage):totalPage;e.prettyPhoto.changeGalleryPage(goToPage);$pp_gallery_li.filter(":eq("+set_position+")").addClass("selected")}else{$pp_pic_holder.find(".pp_content").unbind("mouseenter mouseleave")}}function k(t){if(settings.social_tools)facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href));settings.markup=settings.markup.replace("{pp_social}","");e("body").append(settings.markup);$pp_pic_holder=e(".pp_pic_holder"),$ppt=e(".ppt"),$pp_overlay=e("div.pp_overlay");if(isSet&&settings.overlay_gallery){currentGalleryPage=0;toInject="";for(var n=0;n<pp_images.length;n++){if(!pp_images[n].match(/\b(jpg|jpeg|png|gif)\b/gi)){classname="default";img_src=""}else{classname="";img_src=pp_images[n]}toInject+="<li class='"+classname+"'><a href='#'><img src='"+img_src+"' width='50' alt='' /></a></li>"}toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find("#pp_full_res").after(toInject);$pp_gallery=e(".pp_pic_holder .pp_gallery"),$pp_gallery_li=$pp_gallery.find("li");$pp_gallery.find(".pp_arrow_next").click(function(){e.prettyPhoto.changeGalleryPage("next");e.prettyPhoto.stopSlideshow();return false});$pp_gallery.find(".pp_arrow_previous").click(function(){e.prettyPhoto.changeGalleryPage("previous");e.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()});itemWidth=52+5;$pp_gallery_li.each(function(t){e(this).find("a").click(function(){e.prettyPhoto.changePage(t);e.prettyPhoto.stopSlideshow();return false})})}if(settings.slideshow){$pp_pic_holder.find(".pp_nav").prepend('<a href="#" class="pp_play">Play</a>');$pp_pic_holder.find(".pp_nav .pp_play").click(function(){e.prettyPhoto.startSlideshow();return false})}$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme);$pp_overlay.css({opacity:0,height:e(document).height(),width:e(window).width()}).bind("click",function(){if(!settings.modal)e.prettyPhoto.close()});e("a.pp_close").bind("click",function(){e.prettyPhoto.close();return false});if(settings.allow_expand){e("a.pp_expand").bind("click",function(t){if(e(this).hasClass("pp_expand")){e(this).removeClass("pp_expand").addClass("pp_contract");doresize=false}else{e(this).removeClass("pp_contract").addClass("pp_expand");doresize=true}y(function(){e.prettyPhoto.open()});return false})}$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){e.prettyPhoto.changePage("previous");e.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){e.prettyPhoto.changePage("next");e.prettyPhoto.stopSlideshow();return false});x()}s=jQuery.extend({hook:"rel",animation_speed:"fast",ajaxcallback:function(){},slideshow:5e3,autoplay_slideshow:false,opacity:.8,show_title:true,allow_resize:true,allow_expand:true,default_width:500,default_height:344,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:false,wmode:"opaque",autoplay:true,modal:false,deeplinking:true,overlay_gallery:true,overlay_gallery_max:30,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},ie6_fallback:true,markup:'<div class="pp_pic_holder"> <div class="ppt"> </div> <div class="pp_top"> <div class="pp_left"></div> <div class="pp_middle"></div> <div class="pp_right"></div> </div> <div class="pp_content_container"> <div class="pp_left"> <div class="pp_right"> <div class="pp_content"> <div class="pp_loaderIcon"></div> <div class="pp_fade"> <a href="#" class="pp_expand" title="Expand the image">Expand</a> <div class="pp_hoverContainer"> <a class="pp_next" href="#">next</a> <a class="pp_previous" href="#">previous</a> </div> <div id="pp_full_res"></div> <div class="pp_details"> <div class="pp_nav"> <a href="#" class="pp_arrow_previous">Previous</a> <p class="currentTextHolder">0/0</p> <a href="#" class="pp_arrow_next">Next</a> </div> <p class="pp_description"></p> <div class="pp_social">{pp_social}</div> <a class="pp_close" href="#">Close</a> </div> </div> </div> </div> </div> </div> <div class="pp_bottom"> <div class="pp_left"></div> <div class="pp_middle"></div> <div class="pp_right"></div> </div> </div> <div class="pp_overlay"></div>',gallery_markup:'<div class="pp_gallery"> <a href="#" class="pp_arrow_previous">Previous</a> <div> <ul> {gallery} </ul> </div> <a href="#" class="pp_arrow_next">Next</a> </div>',image_markup:'<img id="fullResImage" src="{path}" />',flash_markup:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',quicktime_markup:'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',iframe_markup:'<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',inline_markup:'<div class="pp_inline">{content}</div>',custom_markup:"",social_tools:''},s);var o=this,u=false,a,f,l,c,h,p,d=e(window).height(),v=e(window).width(),m;doresize=true,scroll_pos=T();e(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){x();N()});if(s.keyboard_shortcuts){e(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(t){if(typeof $pp_pic_holder!="undefined"){if($pp_pic_holder.is(":visible")){switch(t.keyCode){case 37:e.prettyPhoto.changePage("previous");t.preventDefault();break;case 39:e.prettyPhoto.changePage("next");t.preventDefault();break;case 27:if(!settings.modal)e.prettyPhoto.close();t.preventDefault();break}}}})}e.prettyPhoto.initialize=function(){settings=s;if(settings.theme=="pp_default")settings.horizontal_padding=16;theRel=e(this).attr(settings.hook);galleryRegExp=/\[(?:.*)\]/;isSet=galleryRegExp.exec(theRel)?true:false;pp_images=isSet?jQuery.map(o,function(t,n){if(e(t).attr(settings.hook).indexOf(theRel)!=-1)return e(t).attr("href")}):e.makeArray(e(this).attr("href"));pp_titles=isSet?jQuery.map(o,function(t,n){if(e(t).attr(settings.hook).indexOf(theRel)!=-1)return e(t).find("img").attr("alt")?e(t).find("img").attr("alt"):""}):e.makeArray(e(this).find("img").attr("alt"));pp_descriptions=isSet?jQuery.map(o,function(t,n){if(e(t).attr(settings.hook).indexOf(theRel)!=-1)return e(t).attr("title")?e(t).attr("title"):""}):e.makeArray(e(this).attr("title"));if(pp_images.length>settings.overlay_gallery_max)settings.overlay_gallery=false;set_position=jQuery.inArray(e(this).attr("href"),pp_images);rel_index=isSet?set_position:e("a["+settings.hook+"^='"+theRel+"']").index(e(this));k(this);if(settings.allow_resize)e(window).bind("scroll.prettyphoto",function(){x()});e.prettyPhoto.open();return false};e.prettyPhoto.open=function(t){if(typeof settings=="undefined"){settings=s;pp_images=e.makeArray(arguments[0]);pp_titles=arguments[1]?e.makeArray(arguments[1]):e.makeArray("");pp_descriptions=arguments[2]?e.makeArray(arguments[2]):e.makeArray("");isSet=pp_images.length>1?true:false;set_position=arguments[3]?arguments[3]:0;k(t.target)}if(settings.hideflash)e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","hidden");b(e(pp_images).size());e(".pp_loaderIcon").show();if(settings.deeplinking)n();if(settings.social_tools){facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href));$pp_pic_holder.find(".pp_social").html(facebook_like_link)}if($ppt.is(":hidden"))$ppt.css("opacity",0).show();$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity);$pp_pic_holder.find(".currentTextHolder").text(set_position+1+settings.counter_separator_label+e(pp_images).size());if(typeof pp_descriptions[set_position]!="undefined"&&pp_descriptions[set_position]!=""){$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position]))}else{$pp_pic_holder.find(".pp_description").hide()}movie_width=parseFloat(i("width",pp_images[set_position]))?i("width",pp_images[set_position]):settings.default_width.toString();movie_height=parseFloat(i("height",pp_images[set_position]))?i("height",pp_images[set_position]):settings.default_height.toString();u=false;if(movie_height.indexOf("%")!=-1){movie_height=parseFloat(e(window).height()*parseFloat(movie_height)/100-150);u=true}if(movie_width.indexOf("%")!=-1){movie_width=parseFloat(e(window).width()*parseFloat(movie_width)/100-150);u=true}$pp_pic_holder.fadeIn(function(){settings.show_title&&pp_titles[set_position]!=""&&typeof pp_titles[set_position]!="undefined"?$ppt.html(unescape(pp_titles[set_position])):$ppt.html(" ");imgPreloader="";skipInjection=false;switch(S(pp_images[set_position])){case"image":imgPreloader=new Image;nextImage=new Image;if(isSet&&set_position<e(pp_images).size()-1)nextImage.src=pp_images[set_position+1];prevImage=new Image;if(isSet&&pp_images[set_position-1])prevImage.src=pp_images[set_position-1];$pp_pic_holder.find("#pp_full_res")[0].innerHTML=settings.image_markup.replace(/{path}/g,pp_images[set_position]);imgPreloader.onload=function(){a=w(imgPreloader.width,imgPreloader.height);g()};imgPreloader.onerror=function(){alert("Image cannot be loaded. Make sure the path is correct and image exist.");e.prettyPhoto.close()};imgPreloader.src=pp_images[set_position];break;case"youtube":a=w(movie_width,movie_height);movie_id=i("v",pp_images[set_position]);if(movie_id==""){movie_id=pp_images[set_position].split("youtu.be/");movie_id=movie_id[1];if(movie_id.indexOf("?")>0)movie_id=movie_id.substr(0,movie_id.indexOf("?"));if(movie_id.indexOf("&")>0)movie_id=movie_id.substr(0,movie_id.indexOf("&"))}movie="http://www.youtube.com/embed/"+movie_id;i("rel",pp_images[set_position])?movie+="?rel="+i("rel",pp_images[set_position]):movie+="?rel=1";if(settings.autoplay)movie+="&autoplay=1";toInject=settings.iframe_markup.replace(/{width}/g,a["width"]).replace(/{height}/g,a["height"]).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":a=w(movie_width,movie_height);movie_id=pp_images[set_position];var t=/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/;var n=movie_id.match(t);movie="http://player.vimeo.com/video/"+n[3]+"?title=0&byline=0&portrait=0";if(settings.autoplay)movie+="&autoplay=1;";vimeo_width=a["width"]+"/embed/?moog_width="+a["width"];toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,a["height"]).replace(/{path}/g,movie);break;case"quicktime":a=w(movie_width,movie_height);a["height"]+=15;a["contentHeight"]+=15;a["containerHeight"]+=15;toInject=settings.quicktime_markup.replace(/{width}/g,a["width"]).replace(/{height}/g,a["height"]).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":a=w(movie_width,movie_height);flash_vars=pp_images[set_position];flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length);filename=pp_images[set_position];filename=filename.substring(0,filename.indexOf("?"));toInject=settings.flash_markup.replace(/{width}/g,a["width"]).replace(/{height}/g,a["height"]).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":a=w(movie_width,movie_height);frame_url=pp_images[set_position];frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1);toInject=settings.iframe_markup.replace(/{width}/g,a["width"]).replace(/{height}/g,a["height"]).replace(/{path}/g,frame_url);break;case"ajax":doresize=false;a=w(movie_width,movie_height);doresize=true;skipInjection=true;e.get(pp_images[set_position],function(e){toInject=settings.inline_markup.replace(/{content}/g,e);$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject;g()});break;case"custom":a=w(movie_width,movie_height);toInject=settings.custom_markup;break;case"inline":myClone=e(pp_images[set_position]).clone().append('<br clear="all" />').css({width:settings.default_width}).wrapInner('<div id="pp_full_res"><div class="pp_inline"></div></div>').appendTo(e("body")).show();doresize=false;a=w(e(myClone).width(),e(myClone).height());doresize=true;e(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,e(pp_images[set_position]).html());break}if(!imgPreloader&&!skipInjection){$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject;g()}});return false};e.prettyPhoto.changePage=function(t){currentGalleryPage=0;if(t=="previous"){set_position--;if(set_position<0)set_position=e(pp_images).size()-1}else if(t=="next"){set_position++;if(set_position>e(pp_images).size()-1)set_position=0}else{set_position=t}rel_index=set_position;if(!doresize)doresize=true;if(settings.allow_expand){e(".pp_contract").removeClass("pp_contract").addClass("pp_expand")}y(function(){e.prettyPhoto.open()})};e.prettyPhoto.changeGalleryPage=function(e){if(e=="next"){currentGalleryPage++;if(currentGalleryPage>totalPage)currentGalleryPage=0}else if(e=="previous"){currentGalleryPage--;if(currentGalleryPage<0)currentGalleryPage=totalPage}else{currentGalleryPage=e}slide_speed=e=="next"||e=="previous"?settings.animation_speed:0;slide_to=currentGalleryPage*itemsPerPage*itemWidth;$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)};e.prettyPhoto.startSlideshow=function(){if(typeof m=="undefined"){$pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){e.prettyPhoto.stopSlideshow();return false});m=setInterval(e.prettyPhoto.startSlideshow,settings.slideshow)}else{e.prettyPhoto.changePage("next")}};e.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){e.prettyPhoto.startSlideshow();return false});clearInterval(m);m=undefined};e.prettyPhoto.close=function(){if($pp_overlay.is(":animated"))return;e.prettyPhoto.stopSlideshow();$pp_pic_holder.stop().find("object,embed").css("visibility","hidden");e("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){e(this).remove()});$pp_overlay.fadeOut(settings.animation_speed,function(){if(settings.hideflash)e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","visible");e(this).remove();e(window).unbind("scroll.prettyphoto");r();settings.callback();doresize=true;f=false;delete settings})};if(!pp_alreadyInitialized&&t()){pp_alreadyInitialized=true;hashIndex=t();hashRel=hashIndex;hashIndex=hashIndex.substring(hashIndex.indexOf("/")+1,hashIndex.length-1);hashRel=hashRel.substring(0,hashRel.indexOf("/"));setTimeout(function(){e("a["+s.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger("click")},50)}return this.unbind("click.prettyphoto").bind("click.prettyphoto",e.prettyPhoto.initialize)};})(jQuery);var pp_alreadyInitialized=false
\ No newline at end of file diff --git a/scripts/simple_ooo_replace.py b/scripts/simple_ooo_replace.py index 62cbab7a5..6fbaafdd2 100755 --- a/scripts/simple_ooo_replace.py +++ b/scripts/simple_ooo_replace.py @@ -1,3 +1,5 @@ +#!/usr/bin/python3 + import os import shutil import sys |