Commit 6dc311ef by Guba Sándor

Added dictionary based list parameters

parent 3cbf153f
...@@ -10,7 +10,7 @@ from pwd import getpwnam ...@@ -10,7 +10,7 @@ from pwd import getpwnam
ROOT_WWW_FOLDER='/var/www' ROOT_WWW_FOLDER='/var/www'
ROOT_BIN_FOLDER='/opt/store-server' ROOT_BIN_FOLDER='/opt/store-server'
SITE_URL='https://store.cloud.ik.bme.hu' SITE_URL='http://store.cloud.ik.bme.hu:8080'
USER_MANAGER='UserManager.sh' USER_MANAGER='UserManager.sh'
@route('/') @route('/')
...@@ -270,7 +270,8 @@ def list_directory(home,path): ...@@ -270,7 +270,8 @@ def list_directory(home,path):
is_dir = 'D' is_dir = 'D'
else: else:
is_dir = 'F' is_dir = 'F'
tuplelist.append((item, is_dir, os.path.getsize(static_route)/1024 , os.path.getmtime(static_route) )) element = { 'NAME' : item, 'TYPE' : is_dir, 'SIZE' : os.path.getsize(static_route)/1024, 'MTIME' : os.path.getmtime(static_route) }
tuplelist.append(element)
return json.dumps(tuplelist) return json.dumps(tuplelist)
def getQuotaStatus(neptun): def getQuotaStatus(neptun):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment