Skip to content

Commit 3bef521

Browse files
committed
Merge branch 'develop'
2 parents 4652d80 + bac1c1a commit 3bef521

File tree

16 files changed

+134
-65
lines changed

16 files changed

+134
-65
lines changed

CHANGES

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
June 10th, 2017
2+
v1.16.1 -- Use pgbouncer in "web" docker image.
3+
-- The "tasks" image responds to SIGTERM.
4+
-- Improved visual style on hand-held devices.
5+
16
June 5th, 2017
27
v1.16.0 -- Support for different password hashing methods.
38
-- Increased the default minimum password length to 10.

INSTALL

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ source code in your */usr/local/share/* directory::
3434

3535
# cd /usr/local/share/
3636
# wget http://sourceforge.net/projects/cmb/files/tarballs/\
37-
cmbarter-1.16.0.tar.gz/download -O cmbarter-1.14.tar.gz
37+
cmbarter-1.16.1.tar.gz/download -O cmbarter-1.14.tar.gz
3838
...
3939

40-
# tar -xzf cmbarter-1.16.0.tar.gz
41-
# mv cmbarter-1.16.0 cmbarter
40+
# tar -xzf cmbarter-1.16.1.tar.gz
41+
# mv cmbarter-1.16.1 cmbarter
4242

4343
Also, make sure a *Python 2.7* interpreter is installed on your
4444
server.
@@ -300,11 +300,11 @@ Here are the installation steps that you should perform:
300300

301301
$ cd ~
302302
$ wget http://sourceforge.net/projects/cmb/files/tarballs/\
303-
cmbarter-1.16.0.tar.gz/download -O cmbarter-1.14.tar.gz
303+
cmbarter-1.16.1.tar.gz/download -O cmbarter-1.14.tar.gz
304304
...
305305

306-
$ tar -xzf cmbarter-1.16.0.tar.gz
307-
$ mv cmbarter-1.16.0 cmbarter
306+
$ tar -xzf cmbarter-1.16.1.tar.gz
307+
$ mv cmbarter-1.16.1 cmbarter
308308

309309
3. Restrict access to those source files that may contain sensitive
310310
information::
0 Bytes
Binary file not shown.

cmbarter/locale/bg/LC_MESSAGES/django.po

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
#
77
msgid ""
88
msgstr ""
9-
"Project-Id-Version: cmbarter-1.16.0\n"
9+
"Project-Id-Version: cmbarter-1.16.1\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2017-06-03 11:39+0300\n"
11+
"POT-Creation-Date: 2017-06-09 23:38+0300\n"
1212
"PO-Revision-Date: 2013-09-28 01:32+0300\n"
1313
"Last-Translator: Evgeni Pandurski <[email protected]>\n"
1414
"Language-Team: Bulgarian <[email protected]>\n"
@@ -773,8 +773,8 @@ msgstr "Език"
773773
#: templates/base_trader.html:6 templates/customer_deals.html:37
774774
#: templates/my_deals.html:36 templates/my_order.html:20
775775
#: templates/my_order.html.py:22 templates/my_order.html:25
776-
#: templates/my_orders.html:56 templates/my_orders.html.py:58
777-
#: templates/my_orders.html:63 templates/partners.html:39
776+
#: templates/my_orders.html:59 templates/my_orders.html.py:61
777+
#: templates/my_orders.html:66 templates/partners.html:39
778778
#: templates/pending_payments.html:103 templates/product.html:77
779779
#: templates/search.html:23 templates/shopping_list.html:54
780780
#: templates/suggested_partners.html:32 templates/transaction_commit.html:54
@@ -1197,7 +1197,7 @@ msgid "PENDING"
11971197
msgstr "ЧАКА ИЗПЪЛНЕНИЕ"
11981198

11991199
#: templates/customer_order.html:40 templates/my_order.html:40
1200-
#: templates/my_orders.html:51 templates/xhtml-mp/my_order.html:22
1200+
#: templates/my_orders.html:52 templates/xhtml-mp/my_order.html:22
12011201
msgid "FAILED"
12021202
msgstr "ПЛАЩАНЕТО Е НЕУСПЕШНО"
12031203

@@ -1221,12 +1221,12 @@ msgstr "№"
12211221
msgid "The person or organization entitled to receive the goods"
12221222
msgstr "Това е лицето или фирмата, на които трябва да се достави стоката."
12231223

1224-
#: templates/customer_orders.html:42
1224+
#: templates/customer_orders.html:35
12251225
#, python-format
12261226
msgid "%(amount)s of \"%(product)s\""
12271227
msgstr "%(amount)s от \"%(product)s\""
12281228

1229-
#: templates/customer_orders.html:50
1229+
#: templates/customer_orders.html:51
12301230
msgid ""
12311231
"\n"
12321232
" Each order in this table authorizes a particular person or\n"
@@ -1239,7 +1239,7 @@ msgstr ""
12391239
"фирма, да получи определено количество стока от сметката на\n"
12401240
"търговеца."
12411241

1242-
#: templates/customer_orders.html:58 templates/my_orders.html:76
1242+
#: templates/customer_orders.html:59 templates/my_orders.html:79
12431243
#: templates/xhtml-mp/my_orders.html:19
12441244
msgid "No orders"
12451245
msgstr "Няма нареждания"
@@ -1592,11 +1592,11 @@ msgstr "Това е количеството продукт, което тряб
15921592
msgid "ADD NEW ORDER"
15931593
msgstr "НОВО НАРЕЖДАНЕ"
15941594

1595-
#: templates/my_orders.html:45
1595+
#: templates/my_orders.html:44
15961596
msgid "COMPLETED"
15971597
msgstr "ПЛАЩАНЕТО Е ИЗВЪРШЕНО"
15981598

1599-
#: templates/my_orders.html:69
1599+
#: templates/my_orders.html:72
16001600
msgid ""
16011601
"\n"
16021602
" Click on the number of the payment order to see details, or to\n"
@@ -1607,7 +1607,7 @@ msgstr ""
16071607
"Кликнете върху номера на платежното нареждане за да видите подробности\n"
16081608
"за него, или за да го изтриете."
16091609

1610-
#: templates/my_orders.html:78
1610+
#: templates/my_orders.html:81
16111611
msgid "ADD PAYMENT ORDER"
16121612
msgstr "ПЛАТЕЖНО НАРЕЖДАНЕ"
16131613

cmbarter/templates/customer_orders.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,15 @@ <h3>{% trans "Payment orders from this trader" %}</h3>
3232
{% for row in orders %}
3333
<tr>
3434
<td scope="row">
35+
<a href='/{{user.trader_id}}/traders/{{trader.trader_id}}/orders/{{row.order_id}}/' title='{% blocktrans with row|order_truncate_amount as amount and row|product|escape as product %}{{amount}} of "{{product}}"{% endblocktrans %}'>
3536
{% if row.execution_ts %}
3637
<img src="/static/green_accept.gif" alt="(V)">
3738
{% else %}{% if row.issuer_message == None %}
3839
<img src="/static/blue_exclamation.gif" alt="(!)">
3940
{% else %}
4041
<img src="/static/red_reject.gif" alt="(X)">
4142
{% endif %}{% endif %}
42-
<div><a href='/{{user.trader_id}}/traders/{{trader.trader_id}}/orders/{{row.order_id}}/' title='{% blocktrans with row|order_truncate_amount as amount and row|product|escape as product %}{{amount}} of "{{product}}"{% endblocktrans %}'><strong>{{row.order_id}}</strong></a></div>
43+
<div><strong>{{row.order_id}}</strong></div></a>
4344
</td>
4445
<td><span{% if row.instructions %} title="{{row.instructions|truncatechars:130|escape}}"{% endif %}>{{row.carrier|escape}}</span></td>
4546
</tr>

cmbarter/templates/my_orders.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,17 @@ <h2>{% trans "My payment orders" %}</h2>
4141
<tr>
4242
<td scope="row">
4343
{% if row.execution_ts %}
44+
<a href="/{{user.trader_id}}/orders/{{row.order_id}}/" title="{% if row.issuer_message %}{{row.issuer_message}}{% else %}{% trans "COMPLETED" %}{% endif %}">
4445
<img src="/static/green_accept.gif" alt="(V)">
45-
<div><a href="/{{user.trader_id}}/orders/{{row.order_id}}/" title="{% if row.issuer_message %}{{row.issuer_message}}{% else %}{% trans "COMPLETED" %}{% endif %}"><strong>{{row.order_id}}</strong></a></div>
46+
<div><strong>{{row.order_id}}</strong></div></a>
4647
{% else %}{% if row.issuer_message == None %}
48+
<a href="/{{user.trader_id}}/orders/{{row.order_id}}/" title="{% trans "PENDING" %}">
4749
<img src="/static/blue_exclamation.gif" alt="(!)">
48-
<div><a href="/{{user.trader_id}}/orders/{{row.order_id}}/" title="{% trans "PENDING" %}"><strong>{{row.order_id}}</strong></a></div>
50+
<div><strong>{{row.order_id}}</strong></div></a>
4951
{% else %}
52+
<a href="/{{user.trader_id}}/orders/{{row.order_id}}/" title="{% if row.issuer_message %}{{row.issuer_message}}{% else %}{% trans "FAILED" %}{% endif %}">
5053
<img src="/static/red_reject.gif" alt="(X)">
51-
<div><a href="/{{user.trader_id}}/orders/{{row.order_id}}/" title="{% if row.issuer_message %}{{row.issuer_message}}{% else %}{% trans "FAILED" %}{% endif %}"><strong>{{row.order_id}}</strong></a></div>
54+
<div><strong>{{row.order_id}}</strong></div></a>
5255
{% endif %}{% endif %}
5356
</td>
5457
<td>

doc/cmb-install.pdf

-12 Bytes
Binary file not shown.

docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3.1'
22

33
services:
44
web:
5-
image: epandurski/cmbarter:1.16.0-web
5+
image: epandurski/cmbarter:1.16.1-web
66
build:
77
context: .
88
dockerfile: docker/Dockerfile-web
@@ -17,7 +17,7 @@ services:
1717
env_file: .env
1818

1919
db:
20-
image: epandurski/cmbarter:1.16.0-db
20+
image: epandurski/cmbarter:1.16.1-db
2121
build:
2222
context: .
2323
dockerfile: docker/Dockerfile-db
@@ -27,7 +27,7 @@ services:
2727
mode: global
2828

2929
tasks:
30-
image: epandurski/cmbarter:1.16.0-tasks
30+
image: epandurski/cmbarter:1.16.1-tasks
3131
build:
3232
context: .
3333
dockerfile: docker/Dockerfile-tasks
@@ -42,7 +42,7 @@ services:
4242
# /run/secrets/cert.pem and /run/secrets/key.pem. If they are not
4343
# found there, it falls back to a self-signed certificate.
4444

45-
image: epandurski/cmbarter:1.16.0-proxy
45+
image: epandurski/cmbarter:1.16.1-proxy
4646
build:
4747
context: .
4848
dockerfile: docker/Dockerfile-proxy

docker/Dockerfile-mail

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM debian:latest
33
# Install and configure exim:
44
RUN apt-get update && apt-get install -y \
55
exim4-daemon-light \
6-
&& rm -rf /var/lib/apt/lists/*
6+
&& apt-get clean && rm -rf /var/lib/apt/lists/*
77
RUN sed -ri "s/^(dc_eximconfig_configtype)=.*/\1='internet'/" /etc/exim4/update-exim4.conf.conf
88
RUN sed -ri "s/^(dc_local_interfaces)=.*/\1=''/" /etc/exim4/update-exim4.conf.conf
99
RUN sed -ri "s/^(dc_relay_nets)=.*/\1='*'/" /etc/exim4/update-exim4.conf.conf

docker/Dockerfile-tasks

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y \
66
python-psycopg2 \
77
python-tz \
88
postgresql-client \
9-
&& rm -rf /var/lib/apt/lists/*
9+
&& apt-get clean && rm -rf /var/lib/apt/lists/*
1010

1111
# Copy the files we need:
1212
COPY cmbarter /usr/local/share/cmbarter/cmbarter/
@@ -17,12 +17,10 @@ COPY execute_turn.py \
1717
show_emails.py \
1818
show_whitelist.py \
1919
set_language.py \
20-
docker/repeat_esential_tasks.py \
20+
docker/repeat_tasks.sh \
2121
/usr/local/bin/
2222

23-
STOPSIGNAL SIGINT
24-
25-
CMD ["repeat_esential_tasks.py"]
23+
CMD ["repeat_tasks.sh"]
2624

2725
ENV PYTHONPATH /usr/local/share/cmbarter
2826
ENV PGHOST db

0 commit comments

Comments
 (0)