X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_new.py;h=496e5689babf47ba026018b6437a1bb765ccb4a5;hb=af486e867c2809515c09ae4f854a95355112010e;hp=8a43f127370a2d0e584585111d27416d8d11a126;hpb=bd78bbf9170cc8ee2dda06a7f060fd3370fea2bd;p=dak.git diff --git a/dak/process_new.py b/dak/process_new.py index 8a43f127..496e5689 100755 --- a/dak/process_new.py +++ b/dak/process_new.py @@ -230,6 +230,7 @@ def sort_changes(changes_files): class Section_Completer: def __init__ (self): self.sections = [] + self.matches = [] q = projectB.query("SELECT section FROM section") for i in q.getresult(): self.sections.append(i[0]) @@ -251,6 +252,7 @@ class Section_Completer: class Priority_Completer: def __init__ (self): self.priorities = [] + self.matches = [] q = projectB.query("SELECT priority FROM priority") for i in q.getresult(): self.priorities.append(i[0]) @@ -456,7 +458,7 @@ def edit_overrides (new): def edit_note(note): # Write the current data to a temporary file (fd, temp_filename) = utils.temp_filename() - temp_file = os.fdopen(temp_filename, 'w') + temp_file = os.fdopen(fd, 'w') temp_file.write(note) temp_file.close() editor = os.environ.get("EDITOR","vi")