changeset 520:6332dda59cb6

some pep8 fixes
author Akash Sinha <akash2607@gmail.com>
date Fri, 19 Aug 2011 03:42:44 +0530
parents 373b67e26138
children 0f51f999ffe5
files MoinMoin/apps/frontend/views.py MoinMoin/items/__init__.py
diffstat 2 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/frontend/views.py	Fri Aug 19 02:44:39 2011 +0530
+++ b/MoinMoin/apps/frontend/views.py	Fri Aug 19 03:42:44 2011 +0530
@@ -439,11 +439,11 @@
             response["itemnames"].append(itemname)
             itemname = subitem_prefix + itemname
             try:
-               item = Item.create(itemname)
-               item.delete(comment)
-               response["status"].append(True)
+                item = Item.create(itemname)
+                item.delete(comment)
+                response["status"].append(True)
             except AccessDeniedError:
-               response["status"].append(False)
+                response["status"].append(False)
 
     return jsonify(response)
 
@@ -464,11 +464,11 @@
             response["itemnames"].append(itemname)
             itemname = subitem_prefix + itemname
             try:
-               item = Item.create(itemname)
-               item.destroy(comment=comment, destroy_item=True)
-               response["status"].append(True)
+                item = Item.create(itemname)
+                item.destroy(comment=comment, destroy_item=True)
+                response["status"].append(True)
             except AccessDeniedError:
-               response["status"].append(False)
+                response["status"].append(False)
 
     return jsonify(response)
 
--- a/MoinMoin/items/__init__.py	Fri Aug 19 02:44:39 2011 +0530
+++ b/MoinMoin/items/__init__.py	Fri Aug 19 03:42:44 2011 +0530
@@ -605,7 +605,7 @@
         unknown_item_group = "unknown items"
         if startswith:
             startswith = (u'%s' % startswith, u'%s' % startswith.swapcase())
-            if not selected_groups or  unknown_item_group in selected_groups:
+            if not selected_groups or unknown_item_group in selected_groups:
                 index = [(fullname, relname, contenttype)
                          for fullname, relname, contenttype in index
                          if u'/' not in relname