Christopher Allan Webber wrote:
> Hello,
> 
> We needed to make a change that allowed us to modify the prefix of
> emails sent out when an error was raised.  The attached patch seems to
> do the trick.
> 
> ...however, I'm not sure if it is the best way to do it?  At this
> point we end up adding
> 
> error_subject_prefix = [site] [application_name]
> 
> to the config, whereas [application_name] is already added without
> this variable set.  Maybe there is a better place to set this
> variable, so that we don't have to have this redundancy?

I'm not quite sure what you are trying to do here.  It looks like the 
global ([DEFAULT]) error_subject_prefix is being preferred over the 
local value?  That seems peculiar.

Can you just do:

error_subject_prefix = %(site)s %(application_name)s

?  I guess I'm not clear.  Or maybe you want it to be calculated always 
from these values; I'm afraid there's no good way to do that.


-- 
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
             | Write code, do good | http://topp.openplans.org/careers

_______________________________________________
Paste-users mailing list
[email protected]
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users

Reply via email to