thanks, r2532. note that you can also the connect_args dictionary to
create_engine, although i know this is not as easy with property-file
based configuration frameworks...
On Apr 22, 2007, at 10:28 AM, [EMAIL PROTECTED] wrote:
> Index: lib/sqlalchemy/databases/mysql.py
> ===================================================================
> --- lib/sqlalchemy/databases/mysql.py (revisjon 2530)
> +++ lib/sqlalchemy/databases/mysql.py (arbeidskopi)
> @@ -293,8 +293,21 @@
> # note: these two could break SA Unicode type
> util.coerce_kw_type(opts, 'use_unicode', bool)
> util.coerce_kw_type(opts, 'charset', str)
> - # TODO: what about options like "ssl", "cursorclass" and
> "conv" ?
> + # ssl
> + ssl_opts = ['key', 'cert', 'ca', 'capath', 'cipher']
> + for opt in ssl_opts:
> + util.coerce_kw_type(opts, 'ssl_' + opt, str)
> + # ssl_ca option is required to use ssl
> + if 'ssl_ca' in opts.keys():
> + # ssl arg must be a dict
> + ssl = {}
> + for opt in ssl_opts:
> + if 'ssl_' + opt in opts.keys():
> + ssl[opt] = opts['ssl_' + opt]
> + del opts['ssl_' + opt]
> + opts['ssl'] = ssl
>
> + # TODO: what about options like "cursorclass" and "conv" ?
> client_flag = opts.get('client_flag', 0)
> if self.dbapi is not None:
> try:
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---