plugins = self._site[FACILITY]
available = plugins['available'].keys()
- self._log('Available login managers: %s' % str(available))
+ self._debug('Available login managers: %s' % str(available))
prev_obj = None
for item in plugins['whitelist']:
- self._log('Login plugin in whitelist: %s' % item)
+ self._debug('Login plugin in whitelist: %s' % item)
if item not in plugins['available']:
continue
- self._log('Login plugin enabled: %s' % item)
+ self._debug('Login plugin enabled: %s' % item)
plugins['enabled'].append(item)
obj = plugins['available'][item]
if prev_obj:
obj.set_config(plugins['config'][item])
self.__dict__[item] = obj.get_tree(self._site)
- def _log(self, fact):
- if cherrypy.config.get('debug', False):
- cherrypy.log(fact)
-
def root(self, *args, **kwargs):
if self.first_login:
raise cherrypy.HTTPRedirect('%s/login/%s' %
m.update(kwargs)
return t.render(**m)
+ def _debug(self, fact):
+ if cherrypy.config.get('debug', False):
+ cherrypy.log(fact)
+
def default(self, *args, **kwargs):
raise cherrypy.HTTPError(404)