- Timestamp:
- 13 Nov 2014, 14:40:27 (10 years ago)
- 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 16 16 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 17 ## 18 """General helper utilities for Kofa.18 """General helper utilities for Ikoba. 19 19 """ 20 20 import grok … … 25 25 from random import SystemRandom as r 26 26 from zope.i18n import translate 27 from waeup. kofa.interfaces import IKofaUtils28 from waeup. kofa.interfaces import MessageFactory as _29 from waeup. kofa.smtp import send_mail as send_mail_internally30 from waeup. kofa.utils.helpers import get_sorted_preferred27 from waeup.ikoba.interfaces import IIkobaUtils 28 from waeup.ikoba.interfaces import MessageFactory as _ 29 from waeup.ikoba.smtp import send_mail as send_mail_internally 30 from waeup.ikoba.utils.helpers import get_sorted_preferred 31 31 32 32 … … 34 34 rcpt_name, rcpt_addr, 35 35 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`. 37 37 38 38 Merely here to stay compatible with lots of calls to this place. … … 78 78 79 79 80 class KofaUtils(grok.GlobalUtility):80 class IkobaUtils(grok.GlobalUtility): 81 81 """A collection of parameters and methods subject to customization. 82 82 83 83 """ 84 grok.implements(I KofaUtils)84 grok.implements(IIkobaUtils) 85 85 # This the only place where we define the portal language 86 86 # which is used for the translation of system messages … … 225 225 'd': portal, 226 226 'e': body}) 227 body = translate(text, 'waeup. kofa',227 body = translate(text, 'waeup.ikoba', 228 228 target_language=self.PORTAL_LANGUAGE) 229 229 if not (from_addr and rcpt_addr): … … 263 263 Returns True or False to indicate successful operation. 264 264 """ 265 subject = 'Your Kofa credentials'265 subject = 'Your Ikoba credentials' 266 266 text = _(u"""Dear ${a}, 267 267 … … 294 294 'f': url_info}) 295 295 296 body = translate(text, 'waeup. kofa',296 body = translate(text, 'waeup.ikoba', 297 297 target_language=self.PORTAL_LANGUAGE) 298 298 return send_mail(
Note: See TracChangeset for help on using the changeset viewer.