def putSSHkeyFunc(self, request): try: fm = FirewallManager(request) return fm.addSSHKey(self.admin.pk, self.data) except BaseException, msg: return self.ajaxPre(0, str(msg))
def addSSHKey(self): try: fm = FirewallManager() return fm.addSSHKey(self.admin.pk, self.data) except BaseException, msg: return self.ajaxPre(0, str(msg))