Changeset 1977 in products


Ignore:
Timestamp:
Mar 23, 2010 3:54:53 PM (14 years ago)
Author:
mylan
Message:

#172: Remove debugging code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.captcha.core/trunk/quintagroup/captcha/core/skins/captcha_core/static/captcha_validator.vpy

    r1954 r1977  
    2222enc = encrypt1(test_key) 
    2323captcha_tool = getToolByName(context, 'portal_captchas') 
     24#import pdb;pdb.set_trace() 
    2425if (enc != solution) or (captcha_tool.has_key(decrypted_key)) \ 
    2526    or (DateTime().timeTime() - float(date)>3600): 
    26     message = _(u"Please re-enter validation code.") 
     27    #message = _(u"Please re-enter validation code.") 
     28 
     29    # message = _(u"Please re-enter validation code.: %s, %s, %s, %s" % tuple(map(str, [enc, solution,captcha_tool.has_key(decrypted_key), DateTime().timeTime() - float(date)>3600] ))) 
     30    message = _(u"Please re-enter validation code.: hashkey='%s', test_key='%s', captcha_key='%s', decrypted_key='%s'; %s, %s" % tuple(map(str, [hashkey, test_key, context.captcha_key, decrypted_key, index, test_key] ))) 
     31 
    2732    context.plone_utils.addPortalMessage(message, 'error') 
    2833    state.setError('key', message, 'key_required') 
Note: See TracChangeset for help on using the changeset viewer.