def onReuqestLogin(loginName, password, clientType, datas):
 INFO_MSG(('onReuqestLogin() loginName=%s, clientType=%s' % (loginName, clientType)))
 errorno = KBEngine.SERVER_SUCCESS
 if (len(loginName) > 64):
  errorno = KBEngine.SERVER_ERR_NAME
 if (len(password) > 64):
  errorno = KBEngine.SERVER_ERR_PASSWORD
 return (errorno, loginName, password, clientType, datas)

def onReuqestLogin ( loginName , password , clientType , datas ) : INFO_MSG ( ( 'onReuqestLogin() loginName=%s, clientType=%s' % ( loginName , clientType ) ) ) errorno = KBEngine . SERVER_SUCCESS if ( len ( loginName ) > 64 ) : errorno = KBEngine . SERVER_ERR_NAME if ( len ( password ) > 64 ) : errorno = KBEngine . SERVER_ERR_PASSWORD return ( errorno , loginName , password , clientType , datas )
kbengine method .