-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have a method
def notify(text):
settings = pyramid.threadlocal.get_current_registry().settings
host = settings.get(....)
which works fine when called from a view.
However when I call this method during the startup phase
from the main() method of my app then 'settings' evaluates to None.
I have seen that my code is working also during the startup phase
with Kotti but not within a bare Pyramid application...any trick
I am missing?
Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQGUBAEBAgAGBQJRB4dUAAoJEADcfz7u4AZj0dgLv0Kv6GEVLhzklUfDhbVs1tXD
YJPirBbB08lG0l/bk24mh8HfHjahR4FUNavKNGggFXWYAiqM6LuTpn6GSlud/IQB
hodjjGFSF4EoMTVPt8NiuCIZaGOJnPvYXmlkPOchPydQn3Tvf9oL9aANje1G0Pvl
vWU9lol8nJ3xNvm/TbaUVXB3mNlKOaJGMOLLHa36WAiE8xrRV2JwlgD6e1V4hZqS
TXRyzSYXAsUdImW/kJDXubA03/+mv+fC1nWIJmd0sc1A7cI43U6DkMXuMVVnfk5l
5/pjUU1TeHDoRBYQBTrtSDIQ/ETUxC983rNdxW70gIwPjhRJjGC2QIE5PessDuqO
gE81ezuHnFW60BUFzdr9oZZz6JwmHEW3m9GbcEgVT7jjxYovp/6CUMdh5WaKe/UR
En7J7StoRCzk/FOKQs+pVVpI9Og+G9gGXIf67pQvy7CEVSGDLzGykBm7oIz0oH+d
AjPsBI+G37prR+Jv3dmE8HJjQSHs0As=
=kKfJ
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
<<attachment: lists.vcf>>
