Ignore:
Timestamp:
13 Nov 2014, 14:40:27 (10 years ago)
Author:
Henrik Bettermann
Message:

Change of name.

Location:
main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/utils/utils.py

    r11947 r11949  
    1616## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    1717##
    18 """General helper utilities for Kofa.
     18"""General helper utilities for Ikoba.
    1919"""
    2020import grok
     
    2525from random import SystemRandom as r
    2626from zope.i18n import translate
    27 from waeup.kofa.interfaces import IKofaUtils
    28 from waeup.kofa.interfaces import MessageFactory as _
    29 from waeup.kofa.smtp import send_mail as send_mail_internally
    30 from waeup.kofa.utils.helpers import get_sorted_preferred
     27from waeup.ikoba.interfaces import IIkobaUtils
     28from waeup.ikoba.interfaces import MessageFactory as _
     29from waeup.ikoba.smtp import send_mail as send_mail_internally
     30from waeup.ikoba.utils.helpers import get_sorted_preferred
    3131
    3232
     
    3434              rcpt_name, rcpt_addr,
    3535              subject, body, config):
    36     """Wrapper for the real SMTP functionality in :mod:`waeup.kofa.smtp`.
     36    """Wrapper for the real SMTP functionality in :mod:`waeup.ikoba.smtp`.
    3737
    3838    Merely here to stay compatible with lots of calls to this place.
     
    7878
    7979
    80 class KofaUtils(grok.GlobalUtility):
     80class IkobaUtils(grok.GlobalUtility):
    8181    """A collection of parameters and methods subject to customization.
    8282
    8383    """
    84     grok.implements(IKofaUtils)
     84    grok.implements(IIkobaUtils)
    8585    # This the only place where we define the portal language
    8686    # which is used for the translation of system messages
     
    225225            'd': portal,
    226226            'e': body})
    227         body = translate(text, 'waeup.kofa',
     227        body = translate(text, 'waeup.ikoba',
    228228            target_language=self.PORTAL_LANGUAGE)
    229229        if not (from_addr and rcpt_addr):
     
    263263        Returns True or False to indicate successful operation.
    264264        """
    265         subject = 'Your Kofa credentials'
     265        subject = 'Your Ikoba credentials'
    266266        text = _(u"""Dear ${a},
    267267
     
    294294            'f': url_info})
    295295
    296         body = translate(text, 'waeup.kofa',
     296        body = translate(text, 'waeup.ikoba',
    297297            target_language=self.PORTAL_LANGUAGE)
    298298        return send_mail(
Note: See TracChangeset for help on using the changeset viewer.