Skip to content

Commit 76f70e9

Browse files
committed
Merge branch 'develop'
2 parents 0806015 + 4e1e727 commit 76f70e9

File tree

8 files changed

+36
-28
lines changed

8 files changed

+36
-28
lines changed

CHANGES

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
June 14th, 2017
2+
v1.16.3 -- Fixed XHTML-MP (WAP 2.0) validation problem.
3+
-- Fixed minor problem in the installation guide.
4+
15
June 13th, 2017
26
v1.16.2 -- Minor UI fixes.
37
-- Minor fixes in docker images.

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.2.tar.gz/download -O cmbarter-1.14.tar.gz
37+
cmbarter-1.16.3.tar.gz/download -O cmbarter-1.16.3.tar.gz
3838
...
3939

40-
# tar -xzf cmbarter-1.16.2.tar.gz
41-
# mv cmbarter-1.16.2 cmbarter
40+
# tar -xzf cmbarter-1.16.3.tar.gz
41+
# mv cmbarter-1.16.3 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.2.tar.gz/download -O cmbarter-1.14.tar.gz
303+
cmbarter-1.16.3.tar.gz/download -O cmbarter-1.16.3.tar.gz
304304
...
305305

306-
$ tar -xzf cmbarter-1.16.2.tar.gz
307-
$ mv cmbarter-1.16.2 cmbarter
306+
$ tar -xzf cmbarter-1.16.3.tar.gz
307+
$ mv cmbarter-1.16.3 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: 7 additions & 7 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.2\n"
9+
"Project-Id-Version: cmbarter-1.16.3\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2017-06-09 23:38+0300\n"
11+
"POT-Creation-Date: 2017-06-14 01:44+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"
@@ -67,11 +67,11 @@ msgstr " "
6767
msgid "Amount to withdraw"
6868
msgstr "Количество за изтегляне"
6969

70-
#: deposits/views.py:167 mobile/views.py:774
70+
#: deposits/views.py:167 mobile/views.py:780
7171
msgid "Choose a product..."
7272
msgstr "Изберете продукт..."
7373

74-
#: deposits/views.py:226 mobile/views.py:835
74+
#: deposits/views.py:226 mobile/views.py:841
7575
#, python-format
7676
msgid "may not exceed %(amount)s"
7777
msgstr "не повече от %(amount)s"
@@ -620,7 +620,7 @@ msgstr "ГРЕШКА: Това име вече се използва."
620620
#: templates/xhtml-mp/edit_contact_information.html:17
621621
#: templates/xhtml-mp/find_customer.html:16
622622
#: templates/xhtml-mp/find_partner.html:17
623-
#: templates/xhtml-mp/make_deposit.html:22
623+
#: templates/xhtml-mp/make_deposit.html:24
624624
#: templates/xhtml-mp/make_withdrawal.html:20
625625
#: templates/xhtml-mp/unconfirmed_transactions.html:32
626626
msgid "Submit"
@@ -2525,7 +2525,7 @@ msgid "Notices"
25252525
msgstr "Известия"
25262526

25272527
#: templates/xhtml-mp/create_order.html:20
2528-
#: templates/xhtml-mp/make_deposit.html:19
2528+
#: templates/xhtml-mp/make_deposit.html:21
25292529
#: templates/xhtml-mp/make_withdrawal.html:18
25302530
#: templates/xhtml-mp/my_order.html:13
25312531
msgid "Amount:"
@@ -2562,7 +2562,7 @@ msgstr "Парола:"
25622562
msgid "switch to encrypted connection"
25632563
msgstr "премини към кодирана връзка"
25642564

2565-
#: templates/xhtml-mp/make_deposit.html:20
2565+
#: templates/xhtml-mp/make_deposit.html:22
25662566
msgid "Deduct from my items:"
25672567
msgstr "Извади от стоката за продан:"
25682568

cmbarter/mobile/views.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ class CreateOrderForm(cmbarter.orders.forms.CreateOrderForm):
9898
label=_('Comment'),
9999
required=False)
100100

101+
class EditProfileForm(cmbarter.profiles.forms.EditProfileForm):
102+
advertise_trusted_partners = forms.BooleanField(
103+
widget=forms.HiddenInput(),
104+
required=False)
105+
time_zone = None
106+
101107

102108
def render(request, tmpl, c={}):
103109
http_accept = request.META.get('HTTP_ACCEPT', '')
@@ -763,10 +769,10 @@ def make_deposit(request, secret, user, customer_id_str, tmpl='xhtml-mp/make_dep
763769
for p in products:
764770
name = '%s [%s]'% (p['title'], p['unit'])
765771
if name in choices_name_index:
766-
choices[choices_name_index[name]] = (p['promise_id'], name)
772+
choices[choices_name_index[name]] = (str(p['promise_id']), name)
767773
else:
768774
choices_name_index[name] = len(choices)
769-
choices.append( (p['promise_id'], name) )
775+
choices.append( (str(p['promise_id']), name) )
770776

771777
if len(choices) == 1:
772778
form.fields['promise_id'].widget.choices = choices
@@ -937,7 +943,7 @@ def edit_profile(request, secret, user, tmpl='xhtml-mp/edit_contact_information.
937943
method=None):
938944
method = method or request.GET.get('method') or request.method
939945
if method == 'POST':
940-
form = cmbarter.profiles.forms.EditProfileForm(request.POST)
946+
form = EditProfileForm(request.POST)
941947
if form.is_valid():
942948
request._cmbarter_trx_cost += 5.0
943949
db.update_profile(user['trader_id'],
@@ -950,20 +956,16 @@ def edit_profile(request, secret, user, tmpl='xhtml-mp/edit_contact_information.
950956
form.cleaned_data['phone'],
951957
form.cleaned_data['fax'],
952958
form.cleaned_data['www'],
953-
form.cleaned_data['time_zone'],
959+
user['time_zone'],
954960
form.cleaned_data['advertise_trusted_partners'])
955961

956962
return HttpResponseRedirect(reverse(
957963
show_profile,
958964
args=[secret, user['trader_id']]))
959965
else:
960-
form = cmbarter.profiles.forms.EditProfileForm(
966+
form = EditProfileForm(
961967
initial=db.get_profile(user['trader_id']))
962968

963-
# Fetches all known time zones in the form's time-zone-select-box.
964-
form.fields['time_zone'].widget.choices = [
965-
(user['time_zone'], user['time_zone'])]
966-
967969
# Render everything.
968970
c = {'settings': settings, 'secret': secret, 'user': user, 'form': form }
969971
return render(request, tmpl, c)

cmbarter/templates/xhtml-mp/make_deposit.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ <h3>{% trans "Make a deposit" %}</h3>
1515
<form method="post" action="/mobile/{{secret}}/traders/{{trader.trader_id}}/deposits/new/?backref=/mobile/{{secret}}/traders/{{trader.trader_id}}/deposits/">
1616
{% if form.insufficient_amount %}<ul class="errorlist"><li>{% trans "ERROR: The amount you requested is not available." %}</li></ul>{% endif %}
1717
{% for error in form.non_field_errors %}<ul class="errorlist"><li>{{error}}</li></ul>{% endfor %}
18-
{{form.promise_id.errors}}<p><label for="id_promise_id" style="-wap-accesskey:0">{{form.promise_id.label}}:</label> {{form.promise_id}}</p>
18+
{{form.promise_id.errors}}<p><label for="id_promise_id" style="-wap-accesskey:0">{{form.promise_id.label}}:</label> <select id="id_promise_id" name="promise_id">{% for opt in form.promise_id.field.widget.choices %}
19+
<option value="{{opt.0}}"{% if opt.0 == form.promise_id.value %} selected="selected"{% endif %}>{{opt.1}}</option>{% endfor %}
20+
</select></p>
1921
{{form.amount.errors}}<p><label for="id_amount">{% trans "Amount:" %}</label> {{form.amount}}</p>
20-
{% if user.trader_id != trader.trader_id %}{{form.subtract.errors}}<p><label for="id_subtract">{% trans "Deduct from my items:" %}</label> {{form.subtract}}</p>{% endif %}
22+
{% if user.trader_id != trader.trader_id %}{{form.subtract.errors}}<p><label for="id_subtract">{% trans "Deduct from my items:" %}</label> <input{% if form.subtract.value %} checked="checked"{% endif %} id="id_subtract" name="subtract" type="checkbox" /></p>{% endif %}
2123
{{form.reason.errors}}<p><label for="id_reason">{{form.reason.label}}:</label> {{form.reason}}</p>
2224
<p class="submit"><input type="submit" value="{% trans "Submit" %}" /></p>
2325
</form>

doc/cmb-install.pdf

-14 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.2-web
5+
image: epandurski/cmbarter:1.16.3-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.2-db
20+
image: epandurski/cmbarter:1.16.3-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.2-tasks
30+
image: epandurski/cmbarter:1.16.3-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.2-proxy
45+
image: epandurski/cmbarter:1.16.3-proxy
4646
build:
4747
context: .
4848
dockerfile: docker/Dockerfile-proxy

0 commit comments

Comments
 (0)