X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_new.py;h=9eea0ec56bb121544b9c7b1a0a08ef1dfa7011c7;hb=cdffcfe2a0e6804ed35df56c4c2aa084c2b63677;hp=462a2e63ae3675bcfccf227378fdd389863a4f29;hpb=ba77095c326cc03fc5ab18423b874ff06e6fcdba;p=dak.git diff --git a/dak/process_new.py b/dak/process_new.py index 462a2e63..9eea0ec5 100755 --- a/dak/process_new.py +++ b/dak/process_new.py @@ -231,6 +231,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]) @@ -252,6 +253,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]) @@ -457,7 +459,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")