changeset 1690:2601f623bdeb

Fix wrong indentation.
author Pavel Sviderski <pavel@psviderski.name>
date Wed, 15 Aug 2012 17:19:55 +0200
parents f77870dd132f
children 28cb88fcc4dd
files MoinMoin/items/__init__.py
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/items/__init__.py	Wed Aug 15 16:41:51 2012 +0200
+++ b/MoinMoin/items/__init__.py	Wed Aug 15 17:19:55 2012 +0200
@@ -740,13 +740,13 @@
         meta_form = BlogEntryMetaForm
         meta_template = 'modify_blog_entry_meta.html'
 
-    @classmethod
-    def from_item(cls, item):
-        form = super(BlogEntry._ModifyForm, cls).from_item(item)
-        # preload PTIME with the current datetime
-        if not form['meta_form']['ptime']:
-            form['meta_form']['ptime'].set(datetime.utcnow())
-        return form
+        @classmethod
+        def from_item(cls, item):
+            form = super(BlogEntry._ModifyForm, cls).from_item(item)
+            # preload PTIME with the current datetime
+            if not form['meta_form']['ptime']:
+                form['meta_form']['ptime'].set(datetime.utcnow())
+            return form
 
     def do_show(self, revid):
         blog_item_name = self.name.rsplit('/', 1)[0]