1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-02-09 09:57:36 +03:00

Some minor fixes

This commit is contained in:
Adolfo Gómez García 2018-11-23 10:55:00 +01:00
parent a2a43fd041
commit 694d60cb88
4 changed files with 9 additions and 9 deletions

View File

@ -115,7 +115,7 @@ class Permissions(Handler):
def put(self):
"""
Processes post requests
Processes put requests
"""
logger.debug('Put args: {}'.format(self._args))

View File

@ -54,7 +54,7 @@ import logging
logger = logging.getLogger(__name__)
__updated__ = '2018-11-20'
__updated__ = '2018-11-22'
# a few constants
OVERVIEW = 'overview'

View File

@ -33,7 +33,7 @@
from __future__ import unicode_literals
__updated__ = '2015-03-05'
__updated__ = '2018-11-21'
from django.utils.encoding import python_2_unicode_compatible
from django.utils.translation import ugettext as _
@ -78,7 +78,7 @@ class Permissions(UUIDModel):
return {
Permissions.PERMISSION_NONE: _('None'),
Permissions.PERMISSION_READ: _('Read'),
Permissions.PERMISSION_MANAGEMENT: _('Management'),
Permissions.PERMISSION_MANAGEMENT: _('Manage'),
Permissions.PERMISSION_ALL: _('All')
}.get(perm, _('None'))

View File

@ -35,11 +35,12 @@ Created on Jul 29, 2011
"""
from __future__ import unicode_literals
from uds.core.util import OsDetector
import urllib.parse
import six
import shlex
from uds.core.util import OsDetector
__updated__ = '2018-11-08'
__updated__ = '2018-11-22'
class RDPFile(object):
@ -238,9 +239,9 @@ class RDPFile(object):
url = 'rdp://'
if self.username != '':
url += urllib.quote(self.username)
url += urllib.parse.quote(self.username)
if self.password != '':
url += ':' + urllib.quote(self.password)
url += ':' + urllib.parse.quote(self.password)
url += '@'
url += self.address + '/'
@ -264,7 +265,6 @@ class RDPFile(object):
return url
def getGeneric(self):
password = "{password}"
screenMode = self.fullScreen and "2" or "1"