From a78b58dd5cf665f7a7aaa18e9e7f6cae3fc7f749 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 4 Dec 2011 19:26:02 -0500 Subject: add_translation_dirs is now an action method --- TODO.txt | 2 -- pyramid/config/i18n.py | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/TODO.txt b/TODO.txt index baed9e03f..b7ea305c6 100644 --- a/TODO.txt +++ b/TODO.txt @@ -6,8 +6,6 @@ Must-Have - Introspection: - * Why do translation directories report weird actioninfo? - * Review narrative docs. * ``default root factory`` category? diff --git a/pyramid/config/i18n.py b/pyramid/config/i18n.py index 60c7a71c1..67a7e2018 100644 --- a/pyramid/config/i18n.py +++ b/pyramid/config/i18n.py @@ -50,6 +50,7 @@ class I18NConfiguratorMixin(object): locale_negotiator = self.maybe_dotted(negotiator) self.registry.registerUtility(locale_negotiator, ILocaleNegotiator) + @action_method def add_translation_dirs(self, *specs): """ Add one or more :term:`translation directory` paths to the current configuration state. The ``specs`` argument is a -- cgit v1.2.3