예제 #1
0
파일: fields.py 프로젝트: serkanh/nodeshot
 def render(self, name, value, attrs):
     aquestion = question()
     label = '%s %s ?' % (settings.QUESTION, aquestion)
     value = super(MathWidget, self).render(name, value, attrs)
     hidden = '<input type="hidden" value="%s" name="math_captcha_question"/>' % encode(
         aquestion)
     return value.replace('<input', '%s %s = <input' % (hidden, label))
예제 #2
0
 def render(self, name, value, attrs):
     aquestion = question()
     value = super(MathWidget, self).render(name, value, attrs)
     hidden = '<input type="hidden" value="%s" name="math_captcha_question"/>' % encode(
         aquestion)
     return mark_safe(
         value.replace('<input', '%s %s = <input' % (hidden, aquestion)))
예제 #3
0
파일: fields.py 프로젝트: chemt/vsad
 def render(self, name, value, attrs):
     aquestion = question()
     value = super(MathWidget, self).render(name, value, attrs)
     hidden = '<input type="hidden" value="%s" name="math_captcha_question"/>' %  encode(aquestion)
     return value.replace('<input', '%s %s = <input' % (hidden, aquestion))