[Mpuls-commits] r3192 - in base/trunk: . mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Jul 16 18:29:56 CEST 2010


Author: bh
Date: 2010-07-16 18:29:52 +0200 (Fri, 16 Jul 2010)
New Revision: 3192

Modified:
   base/trunk/ChangeLog
   base/trunk/mpulsweb/lib/renderer.py
Log:
* mpulsweb/lib/renderer.py: Fix formatting.


Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog	2010-07-16 16:23:46 UTC (rev 3191)
+++ base/trunk/ChangeLog	2010-07-16 16:29:52 UTC (rev 3192)
@@ -1,5 +1,9 @@
 2010-07-16  Bernhard Herzog  <bh at intevation.de>
 
+	* mpulsweb/lib/renderer.py: Fix formatting.
+
+2010-07-16  Bernhard Herzog  <bh at intevation.de>
+
 	* mpulsweb/lib/renderer.py (ViewRenderer._renderChoiceBool):
 	rework this method almost completely.  It's much shorter now but
 	should work in the same way. This change also gets rid of some

Modified: base/trunk/mpulsweb/lib/renderer.py
===================================================================
--- base/trunk/mpulsweb/lib/renderer.py	2010-07-16 16:23:46 UTC (rev 3191)
+++ base/trunk/mpulsweb/lib/renderer.py	2010-07-16 16:29:52 UTC (rev 3192)
@@ -388,13 +388,13 @@
             out.append('<td class="vcontrol" width="17">')
             if not self.ro_mode:
                 out.append(tag("input",
-                                name   = "del_rg|%s" % child.getIdentifier(),
-                                type   = "submit",
-                                class_ = "pseudo_imagebutton del_rg",
-                                style  = 'background-image:url("%s")' % \
-                                             icon("delete_active_16.png"),
-                                title  = _('Delete RG')))
-                
+                               name="del_rg|%s" % child.getIdentifier(),
+                               type="submit",
+                               class_="pseudo_imagebutton del_rg",
+                               style=('background-image:url("%s")'
+                                      % icon("delete_active_16.png")),
+                               title=_('Delete RG')))
+
             out.append('</td>')
             out.append('</tr>')
         if self.ro_mode:
@@ -405,11 +405,12 @@
             out.append('<td class="hcontrol" style="text-align: right;"'
                        ' colspan="2">')
             out.append(tag("input",
-                        name   = "add_rg|%s" % node.getIdentifier(),
-                        type   = "submit",
-                        class_ = "pseudo_imagebutton add_rg",
-                        style  = 'background-image:url("%s")' % icon("new_16.png"),
-                        title  = _('Add new RG')))
+                           name="add_rg|%s" % node.getIdentifier(),
+                           type="submit",
+                           class_="pseudo_imagebutton add_rg",
+                           style=('background-image:url("%s")'
+                                  % icon("new_16.png")),
+                           title=_('Add new RG')))
             out.append("</td>")
             out.append("</tr>")
         return out
@@ -553,7 +554,7 @@
         out.append(self._renderLabel(node))
         out.append(self._renderAttributes(node))
         out.append('<br>')
-        out.append(tag("input", name=id, id=id, 
+        out.append(tag("input", name=id, id=id,
                        value=uformat_int(node.getValue()),
                        type="text", disabled=self.ro_mode))
         out.append('<br>')
@@ -976,13 +977,10 @@
         out.append('</table>')
         out.append('</div>')
         out.append('<div>%s %s</div>'
-                   % (len(self.page.getChildren()), escape(
-                            ungettext('Item found',
-                                    'Items found',
-                                    len(self.page.getChildren())))
-                        )
-                    )
-                   
+                   % (len(self.page.getChildren()),
+                      escape(ungettext('Item found', 'Items found',
+                                       len(self.page.getChildren())))))
+
         if not self.ro_mode:
             out.append('<div>')
             out.append('<br>')



More information about the Mpuls-commits mailing list