Skip to content

Commit

Permalink
Added scanner groups to scan completions.
Browse files Browse the repository at this point in the history
darcs-hash:20090509002049-f1522-fade7249ebcbc6c5bd5058952e1a80581e3592e7.gz
  • Loading branch information
scudette committed May 9, 2009
1 parent 68fc3d2 commit 9d49fd7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/Flash/AdvancedCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ def help(self):

def complete(self, text,state):
if len(self.args)>2 or len(self.args)==2 and not text:
scanners = [ x for x in Registry.SCANNERS.scanners if x.startswith(text) ]
scanners = [ x for x in Registry.SCANNERS.scanners if x.startswith(text) ] + \
[ x for x in Registry.SCANNERS.get_groups() if x.startswith(text) ]

return scanners[state]
else:
dbh = DB.DBO(self.environment._CASE)
Expand Down

0 comments on commit 9d49fd7

Please sign in to comment.