Changeset 628
- Timestamp:
- 11/16/06 09:06:10
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
qPloneComments/trunk/skins/qplonecomments/2.5/discussion_reply_form.cpt
r627 r628 69 69 <fieldset> 70 70 <input type="hidden" name="require_email" value="" 71 tal:attributes="value require_email"/>71 tal:attributes="value python:bool(require_email and isAnon)"/> 72 72 73 73 <legend i18n:translate="legend_add_comment">Add comment</legend> … … 112 112 value python:test(isAnon, '', member.getUserName()); 113 113 disabled python:test(isAnon, None, 'true')" /> 114 115 114 </div> 116 115 </div> qPloneComments/trunk/skins/qplonecomments/2.5/validate_talkback.vpy
r627 r628 25 25 state.setError('body_text', 'Please submit a body.', 'body_required') 26 26 27 if require_email :27 if require_email != 'False': 28 28 if not (email and context.portal_registration.isValidEmail(email)): 29 29 state.setError('email', 'Please submit email.', 'email_required')
