Fix identions in reflistprop module.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Sat, 18 Oct 2008 21:55:38 +0000
changeset 386 33942ff6e71b
parent 385 6d410bf49a82
child 387 c55195361cb6
Fix identions in reflistprop module. Patch by: Pawel Solyga Review by: to-be-reviewed
app/reflistprop/__init__.py
--- a/app/reflistprop/__init__.py	Sat Oct 18 21:54:13 2008 +0000
+++ b/app/reflistprop/__init__.py	Sat Oct 18 21:55:38 2008 +0000
@@ -121,9 +121,9 @@
                                self.name)
       for item in value:
         if not isinstance(item, self.item_type):
-            raise db.BadValueError(
-                'Items in the %s list must all be %s instances' %
-                (self.name, self.item_type.__name__))
+          raise db.BadValueError(
+            'Items in the %s list must all be %s instances' %
+            (self.name, self.item_type.__name__))
     return value
 
   def empty(self, value):
@@ -165,9 +165,9 @@
     value = self.__get__(model_instance, model_instance.__class__)
     self.validate(value)
     if value is None:
-        return None
+      return None
     else:
-        return [v.key() for v in value]
+      return [v.key() for v in value]
  
   def make_value_from_datastore(self, value):
     """Recreates the list of Models from the list of keys.
@@ -179,6 +179,6 @@
       None or a list of Models.
     """ 
     if value is None:
-        return None
+      return None
     else:
-        return [db.get(v) for v in value]
+      return [db.get(v) for v in value]