def api_offre_emploi_liste(self):
return api_return(STATUS_OK, simplejson.dumps(
[{"id": "%s" % offre.id,
+ "est_affiche": "%s" % offre.est_affiche,
+ "statut": "%s" % offre.statut,
"nom": "%s" % offre.nom,
"resume": "%s" % offre.resume,
"description": "%s" % offre.description,
except emploi.OffreEmploi.DoesNotExist:
return api_return(STATUS_ERROR, "ID d'offre d'emploi invalide")
return api_return(STATUS_OK, simplejson.dumps(
- {"id": "%s" % offre.id,
+ {"id": "%s" % offre.id,
+ "est_affiche": "%s" % offre.est_affiche,
+ "statut": "%s" % offre.statut,
"nom": "%s" % offre.nom,
"resume": "%s" % offre.resume,
"description": "%s" % offre.description,