Skip to content

Commit 66f1d2e

Browse files
author
Richard Jones
committed
fix user creation page
1 parent 38e95af commit 66f1d2e

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Fixed:
66
- several temp files made it into the source distribution (sf bug 949243)
77
- typo in roundup/instance.py
88
- missing CRLF var in rfc822.py (sf patch 949471)
9+
- fix user creation page
910

1011

1112
2004-05-06 0.7.0

roundup/cgi/templating.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ def plain(self):
12051205

12061206
return str(self._value)
12071207

1208-
def field(self, size = 30):
1208+
def field(self, size=30):
12091209
''' Render a form edit field for the property.
12101210
12111211
If not editable, just display the value via plain().

templates/classic/html/user.item.html

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,10 @@
5454
</tr>
5555
<tr>
5656
<th>Timezone</th>
57-
<td tal:define="timezone request/form/timezone/value | python:'';
58-
timezone python:timezone
59-
or db._db.user.get(context.id, 'timezone')
60-
or config.DEFAULT_TIMEZONE">
61-
<input tal:condition="context/is_edit_ok" name="timezone"
62-
tal:attributes="value timezone">
63-
<span tal:condition="context/is_only_view_ok" tal:content="timezone" />
64-
(this is a numeric hour offset)
57+
<td>
58+
<input tal:replace="structure context/timezone/field">
59+
(this is a numeric hour offset, the default is
60+
<span tal:replace="db/config/DEFAULT_TIMEZONE" />)
6561
</td>
6662
</tr>
6763
<tr>

0 commit comments

Comments
 (0)