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

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

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/site-packages/win32/lib/regutil.py   main(Download)
		raise TypeError("Value must be string or integer - was passed " + repr(value))
 
	win32api.RegSetValue(rootkey, subKey, typeId ,value)
 
def BuildDefaultPythonKey():
	if exeAlias is None:
		exeAlias = os.path.basename(exeFullPath)
	win32api.RegSetValue(GetRootKey(), GetAppPathsKey() + "\\" + exeAlias, win32con.REG_SZ, exeFullPath)
 
def GetRegisteredExe(exeAlias):
	keyStr = BuildDefaultPythonKey() + "\\PythonPath"
	if name: keyStr = keyStr + "\\" + name
	win32api.RegSetValue(GetRootKey(), keyStr, win32con.REG_SZ, path)
 
def UnregisterNamedPath(name):
	except os.error:
		print "Warning: Registering non-existant module %s" % modPath
	win32api.RegSetValue(GetRootKey(), 
	                     BuildDefaultPythonKey() + "\\Modules\\%s" % modName,
		win32con.REG_SZ, modPath)
		raise ValueError("Help file does not exist")
	# Now register with Python itself.
	win32api.RegSetValue(GetRootKey(), 
	                     BuildDefaultPythonKey() + "\\Help\\%s" % helpDesc, win32con.REG_SZ, fullHelpFile)
 

src/t/r/TrustRouter-HEAD/client/packaging/Windows/Python32/Lib/site-packages/win32/lib/regutil.py   TrustRouter(Download)
		raise TypeError("Value must be string or integer - was passed " + repr(value))
 
	win32api.RegSetValue(rootkey, subKey, typeId ,value)
 
def GetAppPathsKey():
	if exeAlias is None:
		exeAlias = os.path.basename(exeFullPath)
	win32api.RegSetValue(GetRootKey(), GetAppPathsKey() + "\\" + exeAlias, win32con.REG_SZ, exeFullPath)
 
def GetRegisteredExe(exeAlias):
	keyStr = BuildDefaultPythonKey() + "\\PythonPath"
	if name: keyStr = keyStr + "\\" + name
	win32api.RegSetValue(GetRootKey(), keyStr, win32con.REG_SZ, path)
 
def UnregisterNamedPath(name):
	except os.error:
		print("Warning: Registering non-existant module %s" % modPath)
	win32api.RegSetValue(GetRootKey(), 
	                     BuildDefaultPythonKey() + "\\Modules\\%s" % modName,
		win32con.REG_SZ, modPath)
		raise ValueError("Help file does not exist")
	# Now register with Python itself.
	win32api.RegSetValue(GetRootKey(), 
	                     BuildDefaultPythonKey() + "\\Help\\%s" % helpDesc, win32con.REG_SZ, fullHelpFile)
 

src/s/u/SublimeSpeech-HEAD/lib/pywin64bit/win32/lib/regutil.py   SublimeSpeech(Download)
		raise TypeError("Value must be string or integer - was passed " + repr(value))
 
	win32api.RegSetValue(rootkey, subKey, typeId ,value)
 
def GetAppPathsKey():
	if exeAlias is None:
		exeAlias = os.path.basename(exeFullPath)
	win32api.RegSetValue(GetRootKey(), GetAppPathsKey() + "\\" + exeAlias, win32con.REG_SZ, exeFullPath)
 
def GetRegisteredExe(exeAlias):
	keyStr = BuildDefaultPythonKey() + "\\PythonPath"
	if name: keyStr = keyStr + "\\" + name
	win32api.RegSetValue(GetRootKey(), keyStr, win32con.REG_SZ, path)
 
def UnregisterNamedPath(name):
	except os.error:
		print "Warning: Registering non-existant module %s" % modPath
	win32api.RegSetValue(GetRootKey(), 
	                     BuildDefaultPythonKey() + "\\Modules\\%s" % modName,
		win32con.REG_SZ, modPath)
		raise ValueError("Help file does not exist")
	# Now register with Python itself.
	win32api.RegSetValue(GetRootKey(), 
	                     BuildDefaultPythonKey() + "\\Help\\%s" % helpDesc, win32con.REG_SZ, fullHelpFile)
 

src/s/u/SublimeSpeech-HEAD/lib/pywin32bit/win32/lib/regutil.py   SublimeSpeech(Download)
		raise TypeError("Value must be string or integer - was passed " + repr(value))
 
	win32api.RegSetValue(rootkey, subKey, typeId ,value)
 
def GetAppPathsKey():
	if exeAlias is None:
		exeAlias = os.path.basename(exeFullPath)
	win32api.RegSetValue(GetRootKey(), GetAppPathsKey() + "\\" + exeAlias, win32con.REG_SZ, exeFullPath)
 
def GetRegisteredExe(exeAlias):
	keyStr = BuildDefaultPythonKey() + "\\PythonPath"
	if name: keyStr = keyStr + "\\" + name
	win32api.RegSetValue(GetRootKey(), keyStr, win32con.REG_SZ, path)
 
def UnregisterNamedPath(name):
	except os.error:
		print "Warning: Registering non-existant module %s" % modPath
	win32api.RegSetValue(GetRootKey(), 
	                     BuildDefaultPythonKey() + "\\Modules\\%s" % modName,
		win32con.REG_SZ, modPath)
		raise ValueError("Help file does not exist")
	# Now register with Python itself.
	win32api.RegSetValue(GetRootKey(), 
	                     BuildDefaultPythonKey() + "\\Help\\%s" % helpDesc, win32con.REG_SZ, fullHelpFile)
 

src/e/i/einstein-HEAD/Python25Einstein/Lib/site-packages/win32/lib/regutil.py   einstein(Download)
		raise TypeError("Value must be string or integer - was passed " + repr(value))
 
	win32api.RegSetValue(rootkey, subKey, typeId ,value)
 
def BuildDefaultPythonKey():
	if exeAlias is None:
		exeAlias = os.path.basename(exeFullPath)
	win32api.RegSetValue(GetRootKey(), GetAppPathsKey() + "\\" + exeAlias, win32con.REG_SZ, exeFullPath)
 
def GetRegisteredExe(exeAlias):
	keyStr = BuildDefaultPythonKey() + "\\PythonPath"
	if name: keyStr = keyStr + "\\" + name
	win32api.RegSetValue(GetRootKey(), keyStr, win32con.REG_SZ, path)
 
def UnregisterNamedPath(name):
	except os.error:
		print "Warning: Registering non-existant module %s" % modPath
	win32api.RegSetValue(GetRootKey(), 
	                     BuildDefaultPythonKey() + "\\Modules\\%s" % modName,
		win32con.REG_SZ, modPath)
		raise ValueError("Help file does not exist")
	# Now register with Python itself.
	win32api.RegSetValue(GetRootKey(), 
	                     BuildDefaultPythonKey() + "\\Help\\%s" % helpDesc, win32con.REG_SZ, fullHelpFile)
 

src/l/a/landline-server-HEAD/co.whatisuplabs.ldln/lib/play/python/Lib/site-packages/win32/lib/regutil.py   landline-server(Download)
		raise TypeError, "Value must be string or integer - was passed " + str(value)
 
	win32api.RegSetValue(rootkey, subKey, typeId ,value)
 
def BuildDefaultPythonKey():
	if exeAlias is None:
		exeAlias = os.path.basename(exeFullPath)
	win32api.RegSetValue(GetRootKey(), GetAppPathsKey() + "\\" + exeAlias, win32con.REG_SZ, exeFullPath)
 
def GetRegisteredExe(exeAlias):
	keyStr = BuildDefaultPythonKey() + "\\PythonPath"
	if name: keyStr = keyStr + "\\" + name
	win32api.RegSetValue(GetRootKey(), keyStr, win32con.REG_SZ, path)
 
def UnregisterNamedPath(name):
	except os.error:
		print "Warning: Registering non-existant module %s" % modPath
	win32api.RegSetValue(GetRootKey(), 
	                     BuildDefaultPythonKey() + "\\Modules\\%s" % modName,
		win32con.REG_SZ, modPath)
		raise ValueError, "Help file does not exist"
	# Now register with Python itself.
	win32api.RegSetValue(GetRootKey(), 
	                     BuildDefaultPythonKey() + "\\Help\\%s" % helpDesc, win32con.REG_SZ, fullHelpFile)
 

src/r/e/restcommander-HEAD/play-1.2.4/python/Lib/site-packages/win32/lib/regutil.py   restcommander(Download)
		raise TypeError, "Value must be string or integer - was passed " + str(value)
 
	win32api.RegSetValue(rootkey, subKey, typeId ,value)
 
def BuildDefaultPythonKey():
	if exeAlias is None:
		exeAlias = os.path.basename(exeFullPath)
	win32api.RegSetValue(GetRootKey(), GetAppPathsKey() + "\\" + exeAlias, win32con.REG_SZ, exeFullPath)
 
def GetRegisteredExe(exeAlias):
	keyStr = BuildDefaultPythonKey() + "\\PythonPath"
	if name: keyStr = keyStr + "\\" + name
	win32api.RegSetValue(GetRootKey(), keyStr, win32con.REG_SZ, path)
 
def UnregisterNamedPath(name):
	except os.error:
		print "Warning: Registering non-existant module %s" % modPath
	win32api.RegSetValue(GetRootKey(), 
	                     BuildDefaultPythonKey() + "\\Modules\\%s" % modName,
		win32con.REG_SZ, modPath)
		raise ValueError, "Help file does not exist"
	# Now register with Python itself.
	win32api.RegSetValue(GetRootKey(), 
	                     BuildDefaultPythonKey() + "\\Help\\%s" % helpDesc, win32con.REG_SZ, fullHelpFile)
 

src/h/e/heroku-playframework-HEAD/play-1.2.2RC1/python/Lib/site-packages/win32/lib/regutil.py   heroku-playframework(Download)
		raise TypeError, "Value must be string or integer - was passed " + str(value)
 
	win32api.RegSetValue(rootkey, subKey, typeId ,value)
 
def BuildDefaultPythonKey():
	if exeAlias is None:
		exeAlias = os.path.basename(exeFullPath)
	win32api.RegSetValue(GetRootKey(), GetAppPathsKey() + "\\" + exeAlias, win32con.REG_SZ, exeFullPath)
 
def GetRegisteredExe(exeAlias):
	keyStr = BuildDefaultPythonKey() + "\\PythonPath"
	if name: keyStr = keyStr + "\\" + name
	win32api.RegSetValue(GetRootKey(), keyStr, win32con.REG_SZ, path)
 
def UnregisterNamedPath(name):
	except os.error:
		print "Warning: Registering non-existant module %s" % modPath
	win32api.RegSetValue(GetRootKey(), 
	                     BuildDefaultPythonKey() + "\\Modules\\%s" % modName,
		win32con.REG_SZ, modPath)
		raise ValueError, "Help file does not exist"
	# Now register with Python itself.
	win32api.RegSetValue(GetRootKey(), 
	                     BuildDefaultPythonKey() + "\\Help\\%s" % helpDesc, win32con.REG_SZ, fullHelpFile)
 

src/j/f/jfinal-app-HEAD/jfgen/python/Lib/site-packages/win32/lib/regutil.py   jfinal-app(Download)
		raise TypeError, "Value must be string or integer - was passed " + str(value)
 
	win32api.RegSetValue(rootkey, subKey, typeId ,value)
 
def BuildDefaultPythonKey():
	if exeAlias is None:
		exeAlias = os.path.basename(exeFullPath)
	win32api.RegSetValue(GetRootKey(), GetAppPathsKey() + "\\" + exeAlias, win32con.REG_SZ, exeFullPath)
 
def GetRegisteredExe(exeAlias):
	keyStr = BuildDefaultPythonKey() + "\\PythonPath"
	if name: keyStr = keyStr + "\\" + name
	win32api.RegSetValue(GetRootKey(), keyStr, win32con.REG_SZ, path)
 
def UnregisterNamedPath(name):
	except os.error:
		print "Warning: Registering non-existant module %s" % modPath
	win32api.RegSetValue(GetRootKey(), 
	                     BuildDefaultPythonKey() + "\\Modules\\%s" % modName,
		win32con.REG_SZ, modPath)
		raise ValueError, "Help file does not exist"
	# Now register with Python itself.
	win32api.RegSetValue(GetRootKey(), 
	                     BuildDefaultPythonKey() + "\\Help\\%s" % helpDesc, win32con.REG_SZ, fullHelpFile)
 

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/site-packages/win32/Demos/RegRestoreKey.py   main(Download)
    k, disp=win32api.RegCreateKeyEx(win32con.HKEY_CURRENT_USER, 'Python test key', SecurityAttributes=sa,
        samDesired=win32con.KEY_ALL_ACCESS, Class='some class', Options=0)
    win32api.RegSetValue(k, None, win32con.REG_SZ, 'Default value for python test key')
 
    subk, disp=win32api.RegCreateKeyEx(k, 'python test subkey', SecurityAttributes=sa,
        samDesired=win32con.KEY_ALL_ACCESS, Class='some other class', Options=0)
    win32api.RegSetValue(subk, None, win32con.REG_SZ, 'Default value for subkey')

  1 | 2 | 3 | 4  Next