Hi,
today I wanted to use TurboMail (TurboMail-2.1-py2.5) with my TG 1.0
head branch.
TM has worked for me flawlessly before, so I didn't expect any troubles.
But not this time - when giving some configuration values in app.cfg
mail.on = True
mail.server = 'smtp.server'
mail.username = 'user'
mail.password = 'password'
I get this in my logs:
127.0.0.1 - - "GET /admin/send_test_email HTTP/1.1" 200 3591 ""
"Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.11)
Gecko/20071127 Firefox/2.0.0.11"
2008-01-06 14:29:36,917 cherrypy.msg INFO ENGINE: SystemExit raised:
shutting down autoreloader
2008-01-06 14:29:36,919 cherrypy.msg INFO HTTP: HTTP Server shut down
2008-01-06 14:29:36,924 turbomail.startup INFO Outbound mail queue
manager shutting down.
2008-01-06 14:29:36,926 cherrypy.msg INFO ENGINE: CherryPy shut down
(TG10_trunk)meskal-2:~/projects/GH28/d3mail/d3server deets$
Any idea what happens there?
Additionally, I tried to create a configuration-interface. I need my app
to be easily adaptable because it is a one-time installation for some
interactive design stuff at a furniture fair.
So I created a SO-config-object + admin-interface. Works nice. But
unfortunately, I don't seem to get the config changes to get active-
the code I use is this:
def update_config(self):
new_conf = {"mail.on" : True}
if self.smtp_server:
new_conf['mail.server'] = "%s:%i" % (self.smtp_server,
self.smtp_port)
if self.smtp_user is not None:
new_conf['mail.username'] = self.smtp_user
if self.smtp_password:
new_conf['mail.password'] = self.smtp_password
config.update(new_conf)
assert config.get("mail.on")
The assert works, but afterwards (if not configured by app.cfg or any
other means) TurboMail pukes on me with the "mail.on not
set"-message-thingy.
Any suggestions are highly welcome, as time is slippin' into the future
unusually fast these days...
Diez
Diez
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---