示例#1
0
 def onLoginButtonClicked(self):
     company = unicode(self.tCompany.text())
     user = unicode(self.tAuthor.text())
     password = unicode(self.tPassword.text())
     
     if PillarsAssetClient.login(company, user, password):
         self.author = PillarsAssetClient.getAuthor(user)
         if self.author:
             PillarsUtils.writeCurrentAuthor(self.author)
         self.accept()
         self.close()
         return True
     else:
         return False