I see, I'm accessing it now with

mailer = config.registry.getUtility(IMailer)

which definitely gives it more of an utility kind of feel. Thanks!


On Monday, December 22, 2014 9:44:22 PM UTC+1, Jonathan Vanasco wrote:
>
>
>
> On Monday, December 22, 2014 3:40:11 PM UTC-5, Tres Seaver wrote:
>>
>>
>> The mailer is a "utility" (a singleton), registered in 
>> 'request.registry'. 
>>
>
> Just to expand on this answer a bit...
>
> The mailer is designed to be configured-for and associated-with the scope 
> of an application -- not each individual request. 
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to