Did I find the right examples for you? yes no

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

src/k/s/KSP-HEAD/src/handlers/get_items.py   KSP(Download)
			was_updated = True
		elif action == 'UPLOAD_SNAP':
			_add_item(x_items, 'UPLOAD', 'SNAP', key = 'KSP.upload.snap', priority = 1000, url = config.server_url(request) + 'FionaCDEServiceEngine/UploadSnapshot')
			was_updated = True
		# elif action == 'GET_NAMS':
		# 	_add_item(x_items, 'GET', 'NAMS', key = 'NameChange' if device.is_kindle() else 'AliasChange')
		# 	was_updated = True
		elif action == 'UPLOAD_SCFG':
			_add_item(x_items, 'UPLOAD', 'SCFG', key = 'KSP.upload.scfg', priority = 50, url = config.server_url(request) + 'ksp/scfg')

src/k/s/KSP-HEAD/src/handlers/ksp.py   KSP(Download)
def _servers_config(request, device):
	is_kindle = device.is_kindle()
	server_url = config.server_url(request)
	def _url(x):
		# always drop the last / from the url
	if not features.allow_logs_upload:
		if is_kindle:
			ignore = config.server_url(request) + 'ksp/ignore'
			urls.extend((
				'url.messaging.post=' + ignore,

src/k/s/KSP-HEAD/src/server/__init__.py   KSP(Download)
if config.server_certificate and not __disable_procotol_matching:
	config.server_url = lambda request: ('https://' if request.is_secure() else 'http://') + __server_url_without_protocol
	config.rewrite_rules = lambda request: { __amazon_hosts_re : config.server_url(request) }
else:
	config.server_url = lambda request: __server_url