Am 16.12.2011 09:24, schrieb jo:
I tried to replace 'SID' with 'SERVICE_NAME' in this string returned by
makedsn like this:

dsn =
cx_Oracle.makedsn(parms['host'],parms['port'],parms['dbname']).replace('SID','SERVICE_NAME')

and IT WORKS, but I don't know how to apply this to tg+sqlalchemy

I think their idea was that you replace (monkey-patch) the cx_Oracle.makedsn function, e.g. in model.__init__.py like this:

makedsn = cx_Oracle.makedsn
cx_Oracle.makedsn = lambda *args, **kw: return makedsn(*args, **kw).replace('SID','SERVICE_NAME')

And then everything should be fixed.

-- Christoph

--
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en.

Reply via email to