if time() - self.lasttime > 5:
self.lasttime = time()
database.clear_cache()
- self.machines = dict((machine.name, machine) for machine in database.session.query(database.Machine).all())
+ self.machines = dict((machine.name, machine) for machine in database.Machine.query.all())
def getMachines(self, **kw):
self.recache()
(princ, realm) = user.split('@')
else:
princ = user
- realm = config.authn[0].realm
+ realm = config.kerberos.realm
return princ.replace('.', '/') + '@' + realm