From 7506647c33bcd5302a95c4505ad3eb290b3168e3 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Mon, 26 Oct 2009 19:16:43 +0000 Subject: [PATCH] Print a warning if a trainee tries to do something he's not allowed to do Signed-off-by: Frank Lichtenheld --- dak/process_new.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dak/process_new.py b/dak/process_new.py index f15a5600..3a8dbc7b 100755 --- a/dak/process_new.py +++ b/dak/process_new.py @@ -691,6 +691,10 @@ def do_new(): answer = m.group(1) answer = answer[:1].upper() + if answer in ( 'A', 'E', 'M', 'O', 'R' ) and Options["Trainee"]: + utils.warn("Trainees can't do that") + continue + if answer == 'A' and not Options["Trainee"]: try: check_daily_lock() -- 2.39.5