Added /flushmem switch to the server command to incur the idmapper flushing.

This commit is contained in:
Griatch 2014-05-15 23:08:21 +02:00
parent e7e50039d7
commit 4b8ed234fd
3 changed files with 20 additions and 5 deletions

View file

@ -81,6 +81,13 @@ class ScriptHandler(object):
num += script.start()
return num
def get(self, scriptid):
"""
Return one or all scripts on this object matching scriptid. Will return
a list.
"""
return ScriptDB.objects.get_all_scripts_on_obj(self.obj, key=scriptid)
def delete(self, scriptid=None):
"""
Forcibly delete a script from this object.