Skip to content

Commit

Permalink
Merge pull request #4 from audricschiltknecht/release-1.8
Browse files Browse the repository at this point in the history
Release 1.8
  • Loading branch information
ptudor committed Oct 20, 2017
2 parents f213d37 + 6c418f2 commit 38fe9ef
Show file tree
Hide file tree
Showing 44 changed files with 585 additions and 389 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,11 @@ THE POSSIBILITY OF SUCH DAMAGE.
* [django-widget-tweaks](https://github.com/kmike/django-widget-tweaks) [MIT License]
* [Celery](http://www.celeryproject.org/) [BSD License]
* [lxml](http://lxml.de/) [BSD License]
* lgr-core [TBD]
* [lgr-core](https://github.com/icann/lgr-core) [BSD License]
* [picu](https://pypi.python.org/pypi/picu) [MIT/X License]
* munidata [TBD]
* [munidata](https://github.com/icann/munidata) [BSD License]
* [natsort](https://pypi.python.org/pypi/natsort) [MIT License]
* A [redis](https://redis.io/) server for asynchronous computations

For documentation generation:

Expand Down Expand Up @@ -160,8 +161,8 @@ Both the session engine and result files may need a periodical cleaning. Conside

#### Celery

Celery is used to handle asynchronous processing for long operations in background. A broker is used to transport messages. See Celery documentation on [broker configuration](http://docs.celeryproject.org/en/latest/getting-started/brokers/).
The default broker used is the (experimental) [Django Database broker](http://docs.celeryproject.org/en/latest/getting-started/brokers/django.html).
Celery is used to handle asynchronous processing for long operations in background. A broker is used to transport messages. See Celery documentation on [broker configuration](http://docs.celeryproject.org/en/3.1/getting-started/brokers/).
The default broker used is the [redis broker](http://docs.celeryproject.org/en/3.1/getting-started/brokers/redis.html).

To launch celery, in a venv-enabled console:

Expand All @@ -180,6 +181,7 @@ Some notes for developers
* `src/lgr_editor/templates` contains editor-specific templates
* `src/lgr_validator/templates` contains validator-specific templates
* `src/lgr_tools/templates` contains tool-specific templates
* `src/lgr_renderer/templates` contains renderers (HTML output) templates


#### Static Assets (CSS, Javascript, Images)
Expand Down Expand Up @@ -227,7 +229,7 @@ relevant container.
The -h option should contain an allowed host specified in the hosts argument
when building the container.

# docker run -h lgr.example -d -p 80:80 lgr-toolset
# docker run -h lgr.example -d -p 80:80 lgr-toolset

### Debug the Docker image

Expand Down
18 changes: 18 additions & 0 deletions Release_Notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# LGR-Toolset Release notes

## 1.8 (2017-10-18)
Fixes:
- Merge LGR containing the same code point.
- Improve HTML formatting for description in HTML output.
- Improve merge for metadata's description element: if all descriptions are using HTML, then output will be in HTML.
- Include references in WLE table in HTML output.
- Better display of regex for WLE in HTML output.
- Order metadata section per language then per script.
- Fix size of variant set in HTML output.
- Download result links are now ordered with newest on top.
- Emphasize that the "Allocated set labels" file is optional.
- Fix typo on homepage.
- Update links to published RFC.
- Allow import of an LGR part of a set as a standalone LGR.
- Improve cross-script variants tool: generate the variants using the merged LGR,
and list element LGRs used by the variants' code points.
- Use redis as default Celery's broker for better stability.

## 1.7 (2017-06-26)
New features:
- Handling of LGR sets: import multiple LGR documents to create a set (merged LGR).
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ MAINTAINER ICANN
RUN yum makecache \
&& yum install -y epel-release \
&& yum makecache \
&& yum install -y nginx python-pip python-devel make gcc libxml2-devel libxslt-devel \
&& yum install -y nginx python-pip python-devel make gcc libxml2-devel libxslt-devel redis \
&& yum clean all

ENV HOME=/var/www/lgr
Expand Down
5 changes: 3 additions & 2 deletions docker/start.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

exec /usr/bin/gunicorn --error-log /var/log/lgr/gunicorn-lgr.log -w 3 -t 300 --max-requests 100 -b unix:/run/lgr/lgr-django.sock --chdir ${HOME}/lgr-django/src lgr_web.wsgi:application &
exec celery --app=lgr_tools --workdir=WORKDIR_TO_REPLACE/src -D --concurrency=1 --logfile=/var/log/lgr/celery-lgr.log worker &
redis-server --daemonize yes
/usr/bin/gunicorn --error-log /var/log/lgr/gunicorn-lgr.log -w 3 -t 300 --max-requests 100 -b unix:/run/lgr/lgr-django.sock --chdir ${HOME}/lgr-django/src lgr_web.wsgi:application &
celery --app=lgr_tools --workdir=WORKDIR_TO_REPLACE/src -D --concurrency=1 --logfile=/var/log/lgr/celery-lgr.log worker &
exec nginx -g 'daemon off;'
4 changes: 2 additions & 2 deletions etc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
Django==1.8.4
django-widget-tweaks==1.4.1
django-multiupload==0.5.2
celery==3.1.23
celery[redis]==3.1.23

# LGR/Unicode modules
picu==0.8
munidata==1.2
lgr-core==1.7
lgr-core==1.8

# Natural sorting implementation
natsort==5.0.3
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name='lgr-django',
version='1.7',
version='1.8',
author='Viagenie and Wil Tan',
author_email='[email protected]',
packages=find_packages('src'),
Expand Down
2 changes: 1 addition & 1 deletion src/lgr_editor/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def session_list_storage(request):
except OSError:
return []

return sorted(files[1])
return sorted(files[1], reverse=True)


def session_get_file(request, filename):
Expand Down
7 changes: 4 additions & 3 deletions src/lgr_editor/forms/codepoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,10 @@ class ValidateLabelForm(forms.Form):
label = forms.CharField(label=_("Label"))
set_labels = forms.FileField(label=_("Allocated Set labels"),
required=False,
help_text=_('Labels already allocated in the LGR set, '
'that will be used to check for collisions '
'when evaluating labels on the LGR set'))
help_text=_('Optional list of labels already allocated '
'in the LGR set, that will be used to check '
'for collisions when evaluating labels using '
'the merged LGR set'))
script = forms.ChoiceField(label=_("Script"),
required=False,
help_text=_('The script used to validate the label'))
Expand Down
Binary file modified src/lgr_editor/locale/ar/LC_MESSAGES/django.mo
Binary file not shown.
95 changes: 44 additions & 51 deletions src/lgr_editor/locale/ar/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-29 15:36+0000\n"
"POT-Creation-Date: 2017-10-11 17:06+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -92,19 +92,19 @@ msgstr ""

#: forms/codepoints.py:94
msgid ""
"Labels already allocated in the LGR set, that will be used to check for "
"collisions when evaluating labels on the LGR set"
"Optional list of labels already allocated in the LGR set, that will be used "
"to check for collisions when evaluating labels using the merged LGR set"
msgstr ""

#: forms/codepoints.py:97
#: forms/codepoints.py:98
msgid "Script"
msgstr ""

#: forms/codepoints.py:99
#: forms/codepoints.py:100
msgid "The script used to validate the label"
msgstr ""

#: forms/codepoints.py:108
#: forms/codepoints.py:109
#, python-format
msgid "Maximum length: %d code points"
msgstr ""
Expand Down Expand Up @@ -374,9 +374,8 @@ msgstr ""
msgid ""
"This application provides a convenient interface for browsing and editing "
"<abbr title=\"Label Generation Ruleset\">LGR</abbr>’s conforming to the <a "
"href=\"https://tools.ietf.org/html/draft-davies-idntables-09\" target="
"\"_blank\">Representing Label Generation Rulesets using XML</a> "
"specification."
"href=\"https://www.rfc-editor.org/rfc/rfc7940.txt\" target=\"_blank"
"\">Representing Label Generation Rulesets using XML</a> specification."
msgstr ""

#: templates/lgr_editor/about.html:10
Expand Down Expand Up @@ -656,169 +655,163 @@ msgid ""
msgstr ""

#: views.py:137
msgid "The LGR set name already exists. Please use another name."
msgstr ""

#: views.py:142
msgid ""
"The LGR you have tried to import already exists in your set. Please rename "
"it before importing it."
msgstr ""

#: views.py:164
msgid ""
"The LGR set you have tried to import already exists in your working session. "
"Please rename some LGR in set before importing it."
#: views.py:160
msgid "The LGR set name already exists. Please use another name."
msgstr ""

#: views.py:258
#: views.py:253
msgid "summary"
msgstr ""

#: views.py:285
#: views.py:280
#, python-format
msgid "New code point %s added"
msgstr ""

#: views.py:373
#: views.py:368
msgid "New variant added"
msgstr ""

#: views.py:446
#: views.py:441
msgid "Code point edited"
msgstr ""

#: views.py:626 views.py:662
#: views.py:621 views.py:657
msgid "References updated successfully"
msgstr ""

#: views.py:665
#: views.py:660
#, python-format
msgid ""
"Variant %(var_codepoint)s for code point %(codepoint)s with when=%(when)s "
"and not-when=%(not_when)s could not be found"
msgstr ""

#: views.py:701
#: views.py:696
#, python-format
msgid "Code point %s has been deleted"
msgstr ""

#: views.py:723
#: views.py:718
#, python-format
msgid "Variant %(var_cp)s with when='%(when)s' and not-when='%(not_when)s'"
msgstr ""

#: views.py:729
#: views.py:724
#, python-format
msgid "%(var_msg_prefix)s has been deleted"
msgstr ""

#: views.py:732
#: views.py:727
#, python-format
msgid "%(var_msg_prefix)s could not be deleted because it was not found"
msgstr ""

#: views.py:761
#: views.py:756
msgid "New reference created"
msgstr ""

#: views.py:948 views.py:1111 views.py:1195
#: views.py:943 views.py:1106 views.py:1190
msgid "No body specified"
msgstr ""

#: views.py:957
#: views.py:952
#, python-format
msgid "Class \"%s\" does not exist"
msgstr ""

#: views.py:961
#: views.py:956
#, python-format
msgid "Class \"%s\" deleted."
msgstr ""

#: views.py:966
#: views.py:961
msgid "No class element found"
msgstr ""

#: views.py:968 views.py:1131
#: views.py:963 views.py:1126
msgid "Name attribute must be present"
msgstr ""

#: views.py:972 views.py:989 views.py:1135 views.py:1152 views.py:1219
#: views.py:1232
#: views.py:967 views.py:984 views.py:1130 views.py:1147 views.py:1214
#: views.py:1227
#, python-format
msgid ""
"Encountered XML syntax error: %s (line number may be wrong, try subtracting "
"one from the reported line number)"
msgstr ""

#: views.py:975 views.py:992 views.py:1138 views.py:1155 views.py:1222
#: views.py:1235
#: views.py:970 views.py:987 views.py:1133 views.py:1150 views.py:1217
#: views.py:1230
msgid "Your XML is not valid"
msgstr ""

#: views.py:980
#: views.py:975
#, python-format
msgid "Class \"%s\" already exists"
msgstr ""

#: views.py:982
#: views.py:977
#, python-format
msgid "Class \"%s\" saved."
msgstr ""

#: views.py:1120
#: views.py:1115
#, python-format
msgid "Rule \"%s\" does not exist"
msgstr ""

#: views.py:1124
#: views.py:1119
#, python-format
msgid "Rule \"%s\" deleted."
msgstr ""

#: views.py:1129
#: views.py:1124
msgid "No rule element found"
msgstr ""

#: views.py:1143
#: views.py:1138
#, python-format
msgid "Rule \"%s\" already exists"
msgstr ""

#: views.py:1145
#: views.py:1140
#, python-format
msgid "Rule \"%s\" saved."
msgstr ""

#: views.py:1206
#: views.py:1201
#, python-format
msgid "Action \"%s\" does not exist"
msgstr ""

#: views.py:1210
#: views.py:1205
#, python-format
msgid "Action \"%s\" deleted."
msgstr ""

#: views.py:1215
#: views.py:1210
msgid "No action element found"
msgstr ""

#: views.py:1225
#: views.py:1220
msgid "Action saved."
msgstr ""

#: views.py:1294 views.py:1440
#: views.py:1289 views.py:1435
#, python-format
msgid "%d code points added"
msgstr ""

#: views.py:1409
#: views.py:1404
msgid "No code point in input file"
msgstr ""

#: views.py:1601
#: views.py:1596
msgid "Meta data saved"
msgstr ""
Binary file modified src/lgr_editor/locale/en/LC_MESSAGES/django.mo
Binary file not shown.
Loading

0 comments on commit 38fe9ef

Please sign in to comment.