- def root(self, *args, **kwargs):
- cherrypy.log.error("method: %s" % cherrypy.request.method)
- op = getattr(self, cherrypy.request.method, self.GET)
- if callable(op):
- return op(*args, **kwargs)
-
-
-class LoginPlugins(Page):
- def __init__(self, site, baseurl):
- super(LoginPlugins, self).__init__(site)
- self.url = '%s/login' % baseurl
-
- for plugin in self._site[LOGIN_FACILITY]['available']:
- cherrypy.log.error('Admin login plugin: %s' % plugin)
- obj = self._site[LOGIN_FACILITY]['available'][plugin]
- self.__dict__[plugin] = LoginPluginPage(obj, self._site, self.url)
-