Skip to content

Commit 966413f

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent 0009da8 commit 966413f

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Fixed:
66
- handle capitalisation of class names in text hyperlinking (sf bug
77
1101043)
88
- quote full-text search text in URL generation
9+
- fixed problem migrating mysql databases
10+
- fix search_checkboxes macro (sf patch 1113828)
911

1012

1113
2005-01-06 0.7.11

roundup/backends/back_mysql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,6 @@ def add_new_columns_v2(self):
329329
self.cursor.fetchall():
330330
nodeid = int(nodeid)
331331
journaldate = date.Date(journaldate)
332-
params = eval(params)
333332
olddata.append((nodeid, journaldate, journaltag, action,
334333
params))
335334

@@ -342,8 +341,9 @@ def add_new_columns_v2(self):
342341

343342
# re-create journal table
344343
self.create_journal_table(klass)
344+
dc = self.hyperdb_to_sql_value[hyperdb.Date]
345345
for nodeid, journaldate, journaltag, action, params in olddata:
346-
self.save_journal(cn, cols, nodeid, journaldate,
346+
self.save_journal(cn, cols, nodeid, dc(journaldate),
347347
journaltag, action, params)
348348

349349
# make sure the normal schema update code doesn't try to

templates/classic/html/page.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,11 @@ <h2><span metal:define-slot="body_title">body title</span></h2>
154154

155155
<td metal:define-macro="search_checkboxes">
156156
<ul class="search-checkboxes"
157-
tal:define="value python:request.form.getvalue(name)">
157+
tal:define="value python:request.form.getvalue(name);
158+
values python:value and value.split(',') or []">
158159
<li tal:repeat="s python:db[db_klass].list()">
159160
<input type="checkbox" tal:attributes="name name; id string:$name-${s/id};
160-
value s/id; checked python:value == s.id" />
161+
value s/id; checked python:s.id in values" />
161162
<label tal:attributes="for string:$name-${s/id}"
162163
tal:content="python:s[db_content]" />
163164
</li>

0 commit comments

Comments
 (0)