[CMF-checkins] CVS: Products/CMFDecor/skins/zpt_generic - personalize_form.pt:1.5

Jens Vagelpohl jens@zope.com
Wed, 10 Oct 2001 11:02:30 -0400


Update of /cvs-repository/Products/CMFDecor/skins/zpt_generic
In directory cvs.zope.org:/tmp/cvs-serv20126/zpt_generic

Modified Files:
	personalize_form.pt 
Log Message:
Implemented some of the suggestions from matsukashi (CMF Tracker 356)

- better behavior in case of missing attributes



=== Products/CMFDecor/skins/zpt_generic/personalize_form.pt 1.4 => 1.5 ===
    <th>Email address</th>
    <td><input type="text" name="email" value=""
-              tal:attributes="value member/email">
+              tal:attributes="value member/email|nothing">
    </td>
   </tr>
   <tr>
    <th valign="top">Listed status</th>
    <td>
      <input type="radio" name="listed" 
-	        tal:attributes="checked member/listed"
+	        tal:attributes="checked member/listed|nothing"
             value="on" id="cb_listed" />
      <label for="cb_listed">Listed</label>
 
@@ -41,7 +41,7 @@
      </dl>
 
      <input type="radio" name="listed" 
-	        tal:attributes="checked python: not(member.listed)"
+	        tal:attributes="checked python: hasattr(member,'listed') and not(member.listed)"
             value="" id="cb_unlisted" />
 	<label for="cb_unlisted">Unlisted</label>
      <dl class="FieldHelp">