When uploading a file a cherrypy error is generated on this line in FileController.py
if key.split(":")[0] == cherrypy.session.get('user').id: # This will actually get uploads by the user and uploads using a ticket they generated
It might be because of the single quotes around user. However two lines earlier you already get the current session user and assign it to userId, so I've changed mine to if key.split(":")[0] == userId
I was not able to reproduce the error. But I have to agree that using the local variable is more efficient and probably a better practice in this case.