open file

This commit is contained in:
j 2016-01-19 10:51:43 +05:30
commit a2b55bc24e
3 changed files with 21 additions and 1 deletions

View file

@ -388,6 +388,16 @@ def cancelImport(data):
return {}
actions.register(cancelImport, cache=False)
def openFile(data):
response = {}
item = models.Item.get(data['id'])
if item:
path = item.get_path()
if path:
utils.open_file(path)
return response
actions.register(openFile, cache=False)
def openFolder(data):
response = {}
item = models.Item.get(data['id'])