whitespace formatting

This commit is contained in:
Tomas Kopecek 2017-03-07 14:42:57 +01:00 committed by Mike McLean
parent ed86da02dc
commit 22bedc900d
10 changed files with 99 additions and 99 deletions

View file

@ -76,7 +76,7 @@ def _clearUserCookie(environ):
def _getUserCookie(environ):
options = environ['koji.options']
cookies = Cookie.SimpleCookie(environ.get('HTTP_COOKIE',''))
cookies = Cookie.SimpleCookie(environ.get('HTTP_COOKIE', ''))
if 'user' not in cookies:
return None
value = cookies['user'].value
@ -2205,14 +2205,14 @@ _VALID_SEARCH_SYMS = r""" @.,_/\()%+-*?|[]^$"""
_VALID_SEARCH_RE = re.compile('^[' + _VALID_SEARCH_CHARS + re.escape(_VALID_SEARCH_SYMS) + ']+$')
_DEFAULT_SEARCH_ORDER = {
# For searches against large tables, use '-id' to show most recent first
'build' : '-id',
'rpm' : '-id',
'maven' : '-id',
'win' : '-id',
'build': '-id',
'rpm': '-id',
'maven': '-id',
'win': '-id',
# for other tables, ordering by name makes much more sense
'tag' : 'name',
'target' : 'name',
'package' : 'name',
'tag': 'name',
'target': 'name',
'package': 'name',
# any type not listed will default to 'name'
}

View file

@ -411,7 +411,7 @@ class Dispatcher(object):
start_response(status, headers)
return result
headers = {
'allow' : ('Allow', 'GET, POST, HEAD'),
'allow': ('Allow', 'GET, POST, HEAD'),
}
extra = []
for name, value in environ.get('koji.headers', []):