Changeset 1084 in products
- Timestamp:
- Jul 14, 2009 7:06:51 PM (15 years ago)
- Location:
- qPloneCaptchas/trunk
- Files:
-
- 15 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
qPloneCaptchas/trunk/Extensions/Install.py
r241 r1084 27 27 if not 'qPloneCaptchas' in pp.objectIds(): 28 28 pp.addPropertySheet(id='qPloneCaptchas', title= '%s Properties' % 'qPloneCaptchas') 29 out.write("Adding %s property sheet to portal_properies\n" % 'qPloneC omments' )29 out.write("Adding %s property sheet to portal_properies\n" % 'qPloneCaptchas' ) 30 30 props_sheet = pp['qPloneCaptchas'] 31 31 updateProperties(props_sheet, out, PROPERTIES) … … 48 48 elif plone_version.startswith('3.1'): 49 49 plone_version = '3.1' 50 elif plone_version.startswith('3.2'): 51 plone_version = '3.2' 50 52 else: 51 raise Exception("Error - Unsupported version. Suported versions: Plone 2.0.5-3 ")53 raise Exception("Error - Unsupported version. Suported versions: Plone 2.0.5-3.2") 52 54 53 55 DiscussionLayer = LAYER_DISCUSSION -
qPloneCaptchas/trunk/HISTORY.txt
r694 r1084 1 1.3.6 - Unrealised 2 ===================== 3 4 * Added support of Plone 3.2 version 5 6 * Cleaned up code 7 8 1 9 1.3.5 - Unrealised 2 10 ===================== -
qPloneCaptchas/trunk/i18n/qplonecaptchas-ja.po
r111 r1084 68 68 msgstr "ランダムな値を使用" 69 69 70 #. Default: "Dynamic captchas image setup options" 71 #: 72 msgid "legend_dynamic_captchas_options" 73 msgstr "Captcha 画像の自動生成オプション" -
qPloneCaptchas/trunk/i18n/qplonecaptchas-uk.po
r1 r1084 28 28 msgid "Please re-enter validation code." 29 29 msgstr "Будь ласка введіть ще раз код перевірки" 30 31 #. Default: "Dynamic captchas image setup options" 32 #: 33 msgid "legend_dynamic_captchas_options" 34 msgstr "Налаштування динамічних captcha" 35 -
qPloneCaptchas/trunk/i18n/qplonecaptchas.pot
r1 r1084 28 28 msgid "Please re-enter validation code." 29 29 msgstr "" 30 31 #. Default: "Dynamic captchas image setup options" 32 #: 33 msgid "legend_dynamic_captchas_options" 34 msgstr "" -
qPloneCaptchas/trunk/skins/captchas_join_form/3.1/join_form.cpt
r241 r1084 234 234 <input type="hidden" name="form.submitted" value="1" /> 235 235 236 <input tal:replace="structure context/@@authenticator/authenticator " />236 <input tal:replace="structure context/@@authenticator/authenticator|nothing" /> 237 237 238 238 </form> -
qPloneCaptchas/trunk/skins/plone_captchas/captcha_widget.pt
r1 r1084 11 11 <label i18n:translate="enter_word">Enter the word below</label> 12 12 <span class="fieldRequired" title="Required" 13 i18n: attributes="title title_required;"13 i18n:domain="plone" i18n:attributes="title title_required;" 14 14 i18n:translate="label_required">(Required)</span> 15 15 <div class="formHelp"></div> -
qPloneCaptchas/trunk/skins/plone_captchas/dynamic/captcha_validator.vpy
r1 r1084 1 from Products.qPloneCaptchas import ProductMessageFactory 1 from Products.qPloneCaptchas import ProductMessageFactory as _ 2 2 from Products.qPloneCaptchas.utils import decrypt, parseKey, \ 3 3 encrypt1, getWord … … 22 22 if (enc != solution) or (captcha_tool.has_key(decrypted_key)) \ 23 23 or (DateTime().timeTime() - float(date)>3600): 24 state.setError('key', ProductMessageFactory("Please re-enter validation code."), 'key_required') 25 return state.set(status="failure", portal_status_message = ProductMessageFactory("Please re-enter validation code.")) 24 message = _(u"Please re-enter validation code.") 25 context.plone_utils.addPortalMessage(message, 'error') 26 state.setError('key', message, 'key_required') 27 return state.set(status="failure") 26 28 else: 27 29 captcha_tool.addExpiredKey(decrypted_key) -
qPloneCaptchas/trunk/skins/plone_captchas/prefs_captchas_setup.cpy
r60 r1084 10 10 ## 11 11 from Products.CMFCore.utils import getToolByName 12 from Products.CMFPlone import PloneMessageFactory as _ 13 12 14 import string 13 15 … … 50 52 captcha_props.manage_changeProperties(**kw) 51 53 52 return state.set(portal_status_message = 'Changes saved.') 54 context.plone_utils.addPortalMessage(_(u'Changes saved.')) 55 return state -
qPloneCaptchas/trunk/skins/plone_captchas/prefs_captchas_setup_form.cpt
r1 r1084 1 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" 2 lang="en" 1 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" 2 xmlns:tal="http://xml.zope.org/namespaces/tal" 3 xmlns:metal="http://xml.zope.org/namespaces/metal" 4 xmlns:i18n="http://xml.zope.org/namespaces/i18n" 3 5 i18n:domain="plonecaptchas" 4 6 metal:use-macro="here/prefs_main_template/macros/master"> … … 12 14 tal:define="errors python:request.get('controller_state', None).getErrors();"> 13 15 14 <div metal:define-macro="main" i18n:domain="plonecaptchas">16 <div metal:define-macro="main"> 15 17 <div class="configlet"> 16 18 <h1 i18n:translate="heading_comments_setup">Plone Captchas Setup</h1> … … 38 40 value="static" 39 41 tal:attributes="checked python:test(ct=='static', 'checked', '')"/> 40 <label for="use_static_captchas">Use static captchas</label>42 <label i18n:translate="use_static_captchas" for="use_static_captchas">Use static captchas</label> 41 43 <br /> 42 44 <input name="static_captchas" 43 45 id="use_dynamic_captchas" 44 46 type="radio" 45 disabled=""46 47 value="dynamic" 47 tal:attributes="checked python:test(ct=='dynamic', 'checked', ''); 48 disabled python:test(context.checkPIL(), '', 'disabled');"/> 49 <label for="use_dynamic_captchas">Use dynamic captchas</label> 48 tal:attributes="checked python:test(ct=='dynamic', 'checked', '');"/> 49 <label i18n:translate="use_dynamic_captchas" for="use_dynamic_captchas">Use dynamic captchas</label> 50 50 </div> 51 51 </fieldset> 52 52 53 53 <fieldset tal:define="props_sheet here/portal_properties/qPloneCaptchas"> 54 <legend i18n:translate="legend_ setup_options">Dynamic captchas image setup options</legend>54 <legend i18n:translate="legend_dynamic_captchas_options">Dynamic captchas image setup options</legend> 55 55 56 56 <div class="field" … … 68 68 tabindex tabindex/next;"/> 69 69 70 <label i18n:translate=" string:${property_id}"70 <label i18n:translate="" 71 71 for="" 72 72 tal:attributes="for string:${property_id}"> … … 89 89 tabindex tabindex/next;"/> 90 90 91 <label i18n:translate=" string:${property_id}"91 <label i18n:translate="" 92 92 for="" 93 93 tal:attributes="for string:${property_id}"> … … 110 110 tabindex tabindex/next;"/> 111 111 112 <label i18n:translate=" string:${property_id}"112 <label i18n:translate="" 113 113 for="" 114 114 tal:attributes="for string:${property_id}"> … … 131 131 tabindex tabindex/next;"/> 132 132 133 <label i18n:translate=" string:${property_id}"133 <label i18n:translate="" 134 134 for="" 135 135 tal:attributes="for string:${property_id}"> … … 152 152 tabindex tabindex/next;"/> 153 153 154 <label i18n:translate=" string:${property_id}"154 <label i18n:translate="" 155 155 for="" 156 156 tal:attributes="for string:${property_id}"> … … 174 174 checked prop_value"/> 175 175 176 <label i18n:translate=" string:${property_id}"176 <label i18n:translate="" 177 177 for="" 178 178 tal:attributes="for string:${property_id}"> … … 190 190 name="form.button.form_submit" 191 191 value="Save" 192 i18n:domain="plone" 192 193 i18n:attributes="value" 193 194 tal:attributes="tabindex tabindex/next;"/> -
qPloneCaptchas/trunk/skins/plone_captchas/static/captcha_validator.vpy
r1 r1084 1 from Products.qPloneCaptchas import ProductMessageFactory 1 from DateTime import DateTime 2 2 3 from Products.CMFCore.utils import getToolByName 4 5 from Products.qPloneCaptchas import ProductMessageFactory as _ 3 6 from Products.qPloneCaptchas.utils import decrypt, parseKey, \ 4 7 encrypt1, getWord 5 from DateTime import DateTime6 8 7 9 if state.getStatus()=='failure': … … 23 25 if (enc != solution) or (captcha_tool.has_key(decrypted_key)) \ 24 26 or (DateTime().timeTime() - float(date)>3600): 25 state.setError('key', ProductMessageFactory("Please re-enter validation code."), 'key_required') 26 return state.set(status="failure", portal_status_message = ProductMessageFactory("Please re-enter validation code.")) 27 message = _(u"Please re-enter validation code.") 28 context.plone_utils.addPortalMessage(message, 'error') 29 state.setError('key', message, 'key_required') 30 return state.set(status="failure") 27 31 else: 28 32 captcha_tool.addExpiredKey(decrypted_key) -
qPloneCaptchas/trunk/version.txt
r694 r1084 1 1.3. 51 1.3.6
Note: See TracChangeset
for help on using the changeset viewer.