Skip to content

Commit

Permalink
Scanner autocompletion now includes groups in all cases.
Browse files Browse the repository at this point in the history
darcs-hash:20090513154006-f1522-6511ce25be9cdb754b5a8b1a5a12ba388ed51b3d.gz
  • Loading branch information
scudette committed May 13, 2009
1 parent 82e231e commit d6c15ee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/plugins/Core.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def schedule(self):
dbh.execute("unlock tables")

def run(self, *args):
pyflaglog.log(pyflaglog.DEBUG, "Running Housekeeping tasks on %s" % time.ctime())
pyflaglog.log(pyflaglog.VERBOSE_DEBUG, "Running Housekeeping tasks on %s" % time.ctime())
try:
FlagFramework.post_event('periodic', None)
finally:
Expand Down
9 changes: 6 additions & 3 deletions src/plugins/Flash/AdvancedCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ 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 Expand Up @@ -208,7 +209,8 @@ 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 Expand Up @@ -311,7 +313,8 @@ def help(self):
"""
def complete(self, text,state):
if len(self.args)>4 or len(self.args)==4 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]
elif len(self.args)>3 or len(self.args)==3 and not text:
fstypes = [ x for x in Registry.FILESYSTEMS.class_names if x.startswith(text) ]
Expand Down
2 changes: 1 addition & 1 deletion src/pyflag/Farm.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
PyFlag was originally designed to be a single threaded, single process
application. As the application grew in capabilities, it became more
desired to be able to spead the load between CPUs on a single machine,
desired to be able to spread the load between CPUs on a single machine,
as well as spread the load to many machines simultaneously.
The typical PyFlag analysis process consists of the following steps:
Expand Down

0 comments on commit d6c15ee

Please sign in to comment.