-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 11 Aug 2010, at 14:16, Bzouchir wrote:
from turbomail.adapters import tm_pylons
tm_pylons.start_extension()
I'll hazard a(n educated) guess...
The Pylons adaptor for TM uses old-style (i.e. 0.9.7) config-handling:
from pylons import config
The Pylons 1.0 app_globals shows the modern format in which config is
explicitly passed in...
http://bitbucket.org/bbangert/pylons/src/9312abee3bc0/pylons/templates/default_project/+package+/lib/app_globals.py_tmpl#cl-12
You could try passing (the passed-in) config as an arg to
tm_pylons.start_extension:
tm_pylons.start_extension(config)
on casual inspection the TM Pylons adapter code looks like it'll cope...
http://bitbucket.org/gothalice/turbomail/src/tip/turbomail/adapters/tm_pylons.py#cl-53
HTH
- --
Cheers,
Graham
http://www.linkedin.com/in/ghiggins
-----BEGIN PGP SIGNATURE-----
iEYEARECAAYFAkxsV8MACgkQOsmLt1NhivxgKQCg/ka3jFhZ3jdDX8e8GCDUsgB0
4FMAmgI68dVQZBf0ion68c7MxTlvX79hiQCVAgUBTGxXw1nrWVZ7aXD1AQJC7wQA
gp7Biq+Ld9z3WOPgQoywj8RZ1lxSnBiRYE5AS22zq+BbFNAfU5m4kDmk3pddKgt4
PdHBAcWfK7IUIOs18AGuMr6fwMtOrXWBbgUaot/m/+8GUucf24v0nyV6L6ab8pFD
0Lqm/KCrNVotnBQSSSTByao1Y4f6MfuTUXsHw1B1Ouc=
=kUCN
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en.