Add the encoding property into the ZMI add form (debian bug #475123).

This commit is contained in:
Fabio Tranchitella 2008-04-09 09:47:45 +00:00 committed by James Henstridge
parent 3b1c2b24de
commit 5930078ec7
2 changed files with 12 additions and 2 deletions

View File

@ -57,10 +57,10 @@ manage_addZPsycopgConnectionForm = HTMLFile('dtml/add',globals())
def manage_addZPsycopgConnection(self, id, title, connection_string,
zdatetime=None, tilevel=2,
check=None, REQUEST=None):
encoding='', check=None, REQUEST=None):
"""Add a DB connection to a folder."""
self._setObject(id, Connection(id, title, connection_string,
zdatetime, check, tilevel))
zdatetime, check, tilevel, encoding))
if REQUEST is not None: return self.manage_main(self, REQUEST)

View File

@ -83,6 +83,16 @@ or DSN for short) is a string... (TODO: finish docs)
</select>
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
Encoding
</div>
</td>
<td align="left" valign="top">
<input type="text" name="encoding" size="40" value="" />
</td>
</tr>
<tr>
<td align="left" valign="top" colspan="2">
<div class="form-element">