def succeedLogin(caller,user): UserSessionManager[caller]=(user["username"],user["privileges"]) systemCS.executestring('notice "%s"' % escape("%s has logged in from %s as %s" % (formatCaller(caller), caller[0], user["username"])))
def __str__(self): return "\n".join(sorted(['cfg "%s" "%s"' % (escape(key), escape(value)) for key, value in self.items()],key=self.order))