parameters: (self, request)
return_statement: return {
  			"vpsplugin_time": vpsplugin_time,
  			"vpsplugin_overwrite": vpsplugin_overwrite,
  			"vpsplugin_enabled": vpsplugin_enabled
  		}
docstring: VPS related helper function(?)
  
  		Args:
  			request (twisted.web.server.Request): HTTP request object
  		Returns:
  			HTTP response with headers
docstring_summary: VPS related helper function(?)
docstring_tokens: VPS related helper function ( ? )
function: def vpsparams(self, request):
  		"""
  		VPS related helper function(?)
  
  		Args:
  			request (twisted.web.server.Request): HTTP request object
  		Returns:
  			HTTP response with headers
  		"""
  		vpsplugin_enabled = getUrlArg(request, "vpsplugin_enabled") == "1"
  		vpsplugin_overwrite = getUrlArg(request, "vpsplugin_overwrite") == "1"
  		vpsplugin_time = None
  		if b"vpsplugin_time" in request.args:
  			vpsplugin_time = int(float(request.args[b"vpsplugin_time"][0]))
  			if vpsplugin_time == -1:
  				vpsplugin_time = None
  		# partnerbox:
  		vps_pbox = getUrlArg(request, "vps_pbox")
  		if vps_pbox != None:
  			vpsplugin_enabled = None
  			vpsplugin_overwrite = None
  			if "yes_safe" in vps_pbox:
  				vpsplugin_enabled = True
  			elif "yes" in vps_pbox:
  				vpsplugin_enabled = True
  				vpsplugin_overwrite = True
  		return {
  			"vpsplugin_time": vpsplugin_time,
  			"vpsplugin_overwrite": vpsplugin_overwrite,
  			"vpsplugin_enabled": vpsplugin_enabled
  		}
function_tokens: def vpsparams ( self , request ) : vpsplugin_enabled = getUrlArg ( request , "vpsplugin_enabled" ) == "1" vpsplugin_overwrite = getUrlArg ( request , "vpsplugin_overwrite" ) == "1" vpsplugin_time = None if b"vpsplugin_time" in request . args : vpsplugin_time = int ( float ( request . args [ b"vpsplugin_time" ] [ 0 ] ) ) if vpsplugin_time == - 1 : vpsplugin_time = None # partnerbox: vps_pbox = getUrlArg ( request , "vps_pbox" ) if vps_pbox != None : vpsplugin_enabled = None vpsplugin_overwrite = None if "yes_safe" in vps_pbox : vpsplugin_enabled = True elif "yes" in vps_pbox : vpsplugin_enabled = True vpsplugin_overwrite = True return { "vpsplugin_time" : vpsplugin_time , "vpsplugin_overwrite" : vpsplugin_overwrite , "vpsplugin_enabled" : vpsplugin_enabled }