From: Martin Mares Date: Mon, 4 Jun 2007 15:50:01 +0000 (+0200) Subject: Minor enhancements of STATUS command. X-Git-Tag: python-dummy-working~402 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=a4e0b98c301697cf3a4664b31bee1dafd11511a9;p=moe.git Minor enhancements of STATUS command. --- diff --git a/submit/PROTOCOL b/submit/PROTOCOL index 37953b8..30ae7a7 100644 --- a/submit/PROTOCOL +++ b/submit/PROTOCOL @@ -43,6 +43,17 @@ Submit reply after data: (only status) +Status request: + + !STATUS + +Status reply: + + task status objects defined below with the following added: + (T + Aallowed_extension + ) + Task status objects ~~~~~~~~~~~~~~~~~~~ diff --git a/submit/commands.c b/submit/commands.c index 93f5b83..595db77 100644 --- a/submit/commands.c +++ b/submit/commands.c @@ -108,6 +108,8 @@ cmd_status(struct conn *c) struct odes *to = task_status_find_task(c, t, 1); struct odes *tr = obj_add_son(c->reply, 'T' + OBJ_ATTR_SON); copy_attrs(tr, to); + CLIST_FOR_EACH(simp_node *, x, *t->extensions) + obj_add_attr(tr, 'A', x->s); CLIST_FOR_EACH(simp_node *, p, t->parts) { struct odes *po = task_status_find_part(to, p->s, 1);