[Zope3-checkins] CVS: Zope3/src/zope/app/browser/content - i18n_edit.pt:1.5 i18nimageedit.pt:1.6 sqltestresults.pt:1.3

Philipp von Weitershausen philikon@philikon.de
Wed, 25 Jun 2003 18:14:55 -0400


Update of /cvs-repository/Zope3/src/zope/app/browser/content
In directory cvs.zope.org:/tmp/cvs-serv6568/content

Modified Files:
	i18n_edit.pt i18nimageedit.pt sqltestresults.pt 
Log Message:
More "xhtml gheddon" :).


=== Zope3/src/zope/app/browser/content/i18n_edit.pt 1.4 => 1.5 ===
--- Zope3/src/zope/app/browser/content/i18n_edit.pt:1.4	Wed Jun 25 14:43:03 2003
+++ Zope3/src/zope/app/browser/content/i18n_edit.pt	Wed Jun 25 18:14:24 2003
@@ -43,13 +43,8 @@
                 <select name="defaultLanguage">
                   <span tal:repeat="lang context/getAvailableLanguages"
                         tal:omit-tag="">
-                  <option selected
-                          tal:attributes="value lang"
-                          tal:condition="python:context.getDefaultLanguage() == lang"
-                          tal:content="lang" />
-                  <option
-                          tal:attributes="value lang"
-                          tal:condition="python:context.getDefaultLanguage() != lang"
+                  <option tal:attributes="value lang;
+                                          selected python:context.getDefaultLanguage() == lang"
                           tal:content="lang" />
                  </span>
                 </select>
@@ -66,15 +61,9 @@
                 <select name="language">
                   <span tal:repeat="lang context/getAvailableLanguages"
                         tal:omit-tag="">
-                  <option selected
-                          tal:attributes="value lang"
-                          tal:condition="python:request.get('language',
-                                context.getDefaultLanguage()) == lang"
-                          tal:content="lang" />
-                  <option
-                          tal:attributes="value lang"
-                          tal:condition="python:request.get('language',
-                                context.getDefaultLanguage()) != lang"
+                  <option tal:attributes="value    lang;
+                                          selected python:request.get('language',
+                                                   context.getDefaultLanguage()) == lang"
                           tal:content="lang" />
                  </span>
                 </select>


=== Zope3/src/zope/app/browser/content/i18nimageedit.pt 1.5 => 1.6 ===
--- Zope3/src/zope/app/browser/content/i18nimageedit.pt:1.5	Wed Jun 25 17:18:51 2003
+++ Zope3/src/zope/app/browser/content/i18nimageedit.pt	Wed Jun 25 18:14:24 2003
@@ -45,13 +45,8 @@
                 <select name="defaultLanguage">
                   <span tal:repeat="lang context/getAvailableLanguages"
                         tal:omit-tag="">
-                  <option selected
-                          tal:attributes="value lang"
-                          tal:condition="python:context.getDefaultLanguage() == lang"
-                          tal:content="lang" />
-                  <option
-                          tal:attributes="value lang"
-                          tal:condition="python:context.getDefaultLanguage() != lang"
+                  <option tal:attributes="value    lang;
+                                          selected python:context.getDefaultLanguage() == lang"
                           tal:content="lang" />
                  </span>
                 </select>


=== Zope3/src/zope/app/browser/content/sqltestresults.pt 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/content/sqltestresults.pt:1.2	Wed Dec 25 09:12:30 2002
+++ Zope3/src/zope/app/browser/content/sqltestresults.pt	Wed Jun 25 18:14:24 2003
@@ -27,10 +27,10 @@
       </tbody>
     </table>
 
-    <span tal:condition="view/error">
+    <tal:block tal:condition="view/error">
       <h3>An Error occurred</h3>
       <pre tal:content="view/getFormattedError" />
-    </span>
+    </tal:block>
 
   </div>