Mercurial > p > roundup > code
changeset 2268:f9200f897369 maint-0.7
fix user creation page
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 06 May 2004 23:23:20 +0000 |
| parents | 443fce9e92ae |
| children | bb152a04bee7 |
| files | CHANGES.txt roundup/cgi/templating.py templates/classic/html/user.item.html |
| diffstat | 3 files changed, 6 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGES.txt Thu May 06 23:06:01 2004 +0000 +++ b/CHANGES.txt Thu May 06 23:23:20 2004 +0000 @@ -6,6 +6,7 @@ - several temp files made it into the source distribution (sf bug 949243) - typo in roundup/instance.py - missing CRLF var in rfc822.py (sf patch 949471) +- fix user creation page 2004-05-06 0.7.0
--- a/roundup/cgi/templating.py Thu May 06 23:06:01 2004 +0000 +++ b/roundup/cgi/templating.py Thu May 06 23:23:20 2004 +0000 @@ -1205,7 +1205,7 @@ return str(self._value) - def field(self, size = 30): + def field(self, size=30): ''' Render a form edit field for the property. If not editable, just display the value via plain().
--- a/templates/classic/html/user.item.html Thu May 06 23:06:01 2004 +0000 +++ b/templates/classic/html/user.item.html Thu May 06 23:23:20 2004 +0000 @@ -54,14 +54,10 @@ </tr> <tr> <th>Timezone</th> - <td tal:define="timezone request/form/timezone/value | python:''; - timezone python:timezone - or db._db.user.get(context.id, 'timezone') - or config.DEFAULT_TIMEZONE"> - <input tal:condition="context/is_edit_ok" name="timezone" - tal:attributes="value timezone"> - <span tal:condition="context/is_only_view_ok" tal:content="timezone" /> - (this is a numeric hour offset) + <td> + <input tal:replace="structure context/timezone/field"> + (this is a numeric hour offset, the default is + <span tal:replace="db/config/DEFAULT_TIMEZONE" />) </td> </tr> <tr>
