示例#1
0
 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))
示例#2
0
 def addSSHKey(self):
     try:
         fm = FirewallManager()
         return fm.addSSHKey(self.admin.pk, self.data)
     except BaseException, msg:
         return self.ajaxPre(0, str(msg))