statut imp
[auf_rh_dae.git] / project / rh / catalogues.py
index c2deb97..1f69d71 100644 (file)
@@ -29,7 +29,17 @@ class Implantation(object):
         return implantations
 
     def format_result(self, implantation):
-        return unicode(implantation)
+        statut = implantation.statut
+        if implantation.statut == 0:
+            pass
+        if implantation.statut == 1:
+            statut = u"Ouverte"
+        if implantation.statut == 2:
+            statut = u"Fermée"
+        if implantation.statut == 3:
+            pass
+
+        return u"%s (%s) [%s]" % (implantation.nom, implantation.id, statut)
 
     def format_item(self, implantation):
         return self.format_result(implantation)