diff --git a/ZPsycopgDA/DA.py b/ZPsycopgDA/DA.py index a80f9fde..05bb6f08 100644 --- a/ZPsycopgDA/DA.py +++ b/ZPsycopgDA/DA.py @@ -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) diff --git a/ZPsycopgDA/dtml/add.dtml b/ZPsycopgDA/dtml/add.dtml index c718ded6..54650665 100644 --- a/ZPsycopgDA/dtml/add.dtml +++ b/ZPsycopgDA/dtml/add.dtml @@ -83,6 +83,16 @@ or DSN for short) is a string... (TODO: finish docs) + + +
+ Encoding +
+ + + + +