From: Frank Lichtenheld Date: Mon, 26 Oct 2009 19:16:43 +0000 (+0000) Subject: Print a warning if a trainee tries to do something he's not allowed to do X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=7506647c33bcd5302a95c4505ad3eb290b3168e3;p=dak.git Print a warning if a trainee tries to do something he's not allowed to do Signed-off-by: Frank Lichtenheld --- 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()