1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-23 17:34:17 +03:00

minor ticket fixes

This commit is contained in:
Adolfo Gómez García 2014-11-04 04:37:41 +01:00
parent f23c68d7bf
commit 7137f151fb
2 changed files with 2 additions and 1 deletions

View File

@ -142,7 +142,7 @@ class Dispatcher(View):
response[k] = val
return response
except RequestError as e:
return http.HttpResponseServerError(unicode(e))
return http.HttpResponseBadRequest(unicode(e))
except ResponseError as e:
return http.HttpResponseServerError(unicode(e))
except AccessDenied as e:

View File

@ -129,6 +129,7 @@ class Tickets(Handler):
groups = grps
time = int(self._params.get('time', 60))
time = 60 if time < 1 else time
realname = self._params.get('realname', self._params['username'])
servicePool = self._params.get('servicePool', None)
transport = None