Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/x/s/xsbs-HEAD/src/pyscripts/xsbs/players/__init__.py   xsbs(Download)
	def sessionId(self):
		'''Session ID of client'''
		return sbserver.playerSessionId(self.cn)
	def name(self):
		'''Name of client'''

src/x/s/xsbs-HEAD/src/pyscripts/xsbs/users/__init__.py   xsbs(Download)
	try:
		nickacct = p.warn_nickacct
		if nickacct.nick != sbserver.playerName(cn) or sessid != sbserver.playerSessionId(cn):
			p.warning_for_login = False
			return
	p.warning_for_login = True
	p.warn_nickacct = nickacct
	warnNickReserved(cn, 0, sbserver.playerSessionId(cn))
 
@eventHandler('player_name_changed')