Procházet zdrojové kódy

PEP8 on Reference class

Roland Haroutiounian před 9 roky
rodič
revize
2bb71f824f
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2
    1
      lodel/leapi/datahandlers/reference.py

+ 2
- 1
lodel/leapi/datahandlers/reference.py Zobrazit soubor

@@ -2,6 +2,7 @@
2 2
 from lodel.leapi.datahandlers.field_data_handler import FieldDataHandler
3 3
 from lodel.editorial_model.components import EmClass
4 4
 
5
+
5 6
 class Reference(FieldDataHandler):
6 7
 
7 8
     ## @brief Instanciation
@@ -29,7 +30,7 @@ class Reference(FieldDataHandler):
29 30
 
30 31
         if isinstance(value, dict):
31 32
             ref_values = value.values()
32
-            
33
+
33 34
         for related in value:
34 35
             if not isinstance(related, EmClass):
35 36
                 return (value, "The reference %s should be an instance of EmClass, %s gotten" % (related.display_name, related.__class__))

Loading…
Zrušit
Uložit