So.. I continued to search, then I finally found :
Adding extra parameters to the plug operation is the way to do:
plug(base_config, 'resetpassword', None, mail_subject="My own email
subject")
Damien
Le mercredi 22 octobre 2014 17:36:21 UTC+2, lebouquetin a écrit :
>
> Hi all,
>
> I added the resetpassword tgapp into my own application; I'd like to
> customize email content (body, subject).
>
> In the code, I see that these data are taken from
>
> tg.config.get('_pluggable_resetpassword_config')
>
>
>
> I tried to add some parameters in my .ini file :
>
> resetpassword.mail_subject = "Some subject"
>
> -> not taken into account
>
>
>
> I tried to add some parameters in my app_cfg.py base_config
>
> plug(base_config, 'resetpassword')
> base_config['resetpassword']['mail_subject'] = "AGAGA"
>
> I get a key error about "resetpassword".
> (i also tried using base_config.resetpassword which gives AttributeError)
>
>
> Where can I configure this ?
>
>
> Damien
>
>
--
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears.
For more options, visit https://groups.google.com/d/optout.