Signed-off-by: Simo Sorce <simo@redhat.com>
self.get_keytab(opts)
# Forcibly use krb then pam modules
- if not 'lm_order' in opts:
+ if 'lm_order' not in opts:
opts['lm_order'] = []
opts['krb'] = 'yes'
if 'krb' not in opts['lm_order']:
# If we have no negotiate header return whatever mod_auth_kerb
# generated and wait for the next request
- if not 'WWW-Authenticate' in cherrypy.request.headers:
+ if 'WWW-Authenticate' not in cherrypy.request.headers:
cherrypy.response.status = 401
if self.lm.next_login:
class Root(Page):
def __init__(self, site, template_env):
- if not site in sites:
+ if site not in sites:
sites[site] = dict()
if template_env:
sites[site]['template_env'] = template_env
class Page(object):
def __init__(self, site, form=False):
- if not 'template_env' in site:
+ if 'template_env' not in site:
raise ValueError('Missing template environment')
self._site = site
self.basepath = cherrypy.config.get('base.mount', "")