changeset 1214:8d547ec39a76

Cosmetic changes
author Shitiz Garg <mail@dragooon.net>
date Fri, 06 Jan 2012 22:37:01 +0530
parents 0edcdc5e7e91
children d068e342c04e
files MoinMoin/items/__init__.py MoinMoin/templates/atom.html
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/items/__init__.py	Fri Jan 06 22:17:05 2012 +0530
+++ b/MoinMoin/items/__init__.py	Fri Jan 06 22:37:01 2012 +0530
@@ -928,8 +928,7 @@
 
 class Image(Binary):
     """ Base class for image/* """
-    def _render_data_diff(self, oldrev, newrev):
-        print self._internal_representation()
+
 item_registry.register(Image._factory, Type('image/*'))
 
 
--- a/MoinMoin/templates/atom.html	Fri Jan 06 22:17:05 2012 +0530
+++ b/MoinMoin/templates/atom.html	Fri Jan 06 22:37:01 2012 +0530
@@ -14,7 +14,8 @@
     </div>
 {% endmacro %}
 
-{% macro safe_style() %}
+{# A few style rules to ensure the content doesn't overflow #}
+{% macro atom_style() %}
     <style type="text/css">
         img {
             max-width: 100%;
@@ -42,7 +43,7 @@
             </td>
         </tr>
     </table>
-    {{ safe_style() }}
+    {{ atom_style() }}
 {%- elif get == 'binary' -%}
     {{ content }}
     <br />
@@ -56,6 +57,6 @@
             </td>
         </tr>
     </table>
-    {{ safe_style() }}
+    {{ atom_style() }}
 {%- endif -%}