[Checkins] SVN: zc.authorizedotnet/trunk/src/zc/authorizedotnet/
make these strings rather than message ids for easier
marshalling in protocols such as XML-RPC.
Gary Poster
gary at zope.com
Thu May 24 22:47:45 EDT 2007
Log message for revision 75951:
make these strings rather than message ids for easier marshalling in protocols such as XML-RPC.
Changed:
D zc.authorizedotnet/trunk/src/zc/authorizedotnet/i18n.py
U zc.authorizedotnet/trunk/src/zc/authorizedotnet/processing.py
-=-
Deleted: zc.authorizedotnet/trunk/src/zc/authorizedotnet/i18n.py
===================================================================
--- zc.authorizedotnet/trunk/src/zc/authorizedotnet/i18n.py 2007-05-24 23:15:01 UTC (rev 75950)
+++ zc.authorizedotnet/trunk/src/zc/authorizedotnet/i18n.py 2007-05-25 02:47:44 UTC (rev 75951)
@@ -1,18 +0,0 @@
-"""I18N support.
-
-This defines a `MessageFactory` for the I18N domain for the
-application. This is normally used with the import::
-
- from i18n import MessageFactory as _
-
-The factory is then used normally. Two examples::
-
- text = _('some internationalized text')
- text = _('helpful-descriptive-message-id', 'default text')
-"""
-__docformat__ = "reStructuredText"
-
-
-from zope import i18nmessageid
-
-MessageFactory = _ = i18nmessageid.MessageFactory("zc.authorizedotnet")
Modified: zc.authorizedotnet/trunk/src/zc/authorizedotnet/processing.py
===================================================================
--- zc.authorizedotnet/trunk/src/zc/authorizedotnet/processing.py 2007-05-24 23:15:01 UTC (rev 75950)
+++ zc.authorizedotnet/trunk/src/zc/authorizedotnet/processing.py 2007-05-25 02:47:44 UTC (rev 75951)
@@ -16,15 +16,13 @@
import urllib
import md5
-from zc.authorizedotnet.i18n import _
-
# CONSTANTS for the supported Card Types
-AMEX = _('AMEX')
-DISCOVER = _('Discover')
-MASTERCARD = _('MasterCard')
-VISA = _('Visa')
-UNKNOWN_CARD_TYPE = _('Unknown')
+AMEX = 'AMEX'
+DISCOVER = 'Discover'
+MASTERCARD = 'MasterCard'
+VISA = 'Visa'
+UNKNOWN_CARD_TYPE = 'Unknown'
def identifyCreditCardType(card_num, card_len):
More information about the Checkins
mailing list