def get_xsrf_token():
 entity = _AhAdminXsrfToken_.get_by_key_name(_AhAdminXsrfToken_.XSRF_KEY_NAME)
 if (not entity):
  randints = [('%08x' % (random.randrange((- (2 ** 31)), ((2 ** 31) - 1)) & ((2 ** 32) - 1))) for i in range(6)]
  xsrf_token = '_'.join(randints)
  entity = _AhAdminXsrfToken_(key_name=_AhAdminXsrfToken_.XSRF_KEY_NAME, xsrf_token=xsrf_token)
  entity.put()
 return entity.xsrf_token

def get_xsrf_token ( ) : entity = _AhAdminXsrfToken_ . get_by_key_name ( _AhAdminXsrfToken_ . XSRF_KEY_NAME ) if ( not entity ) : randints = [ ( '%08x' % ( random . randrange ( ( - ( 2 ** 31 ) ) , ( ( 2 ** 31 ) - 1 ) ) & ( ( 2 ** 32 ) - 1 ) ) ) for i in range ( 6 ) ] xsrf_token = '_' . join ( randints ) entity = _AhAdminXsrfToken_ ( key_name = _AhAdminXsrfToken_ . XSRF_KEY_NAME , xsrf_token = xsrf_token ) entity . put ( ) return entity . xsrf_token
return the xsrf token .