Changeset 7323 for main/waeup.sirp/trunk


Ignore:
Timestamp:
10 Dec 2011, 09:33:46 (13 years ago)
Author:
uli
Message:
  • Add testing captcha as option in config.
  • Make phone number a textline instead of int.

Phone numbers often begin with a leading zero and it makes a
difference whether there are one or more leading zeros. If we store
phone numbers as numbers (no address manager application does it this
way) we strip off this digits and get insufficient information for
instance for any future SMS support. Phone numbers therefore should be
stored as text lines and not as ints.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/interfaces.py

    r7321 r7323  
    128128    """
    129129    def getValues(self):
    130         captchas = ['No captcha', 'ReCaptcha']
     130        captchas = ['No captcha', 'Testing captcha', 'ReCaptcha']
    131131        try:
    132132            # we have to 'try' because IConfiguration can only handle
     
    269269        required=False,)
    270270
    271     phone = schema.Int(
     271    phone = schema.TextLine(
    272272        title = u'Phone',
    273273        description = u'',
     
    298298        )
    299299
    300     phone = schema.Int(
     300    phone = schema.TextLine(
    301301        title = u'Phone',
    302302        default = None,
Note: See TracChangeset for help on using the changeset viewer.