Skip to content

Add pywin32's isapi.install #13119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions stubs/pywin32/@tests/stubtest_allowlist_win32.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ win32com.servers.*
win32com(ext)?.axscript.client.pyscript_rexec
win32com(ext)?.axscript.client.pyscript
win32com(ext)?.axscript.client.scriptdispatch
# Other scripts
isapi.install

# Demos, tests and debugging
win32com.demos.*
Expand Down
98 changes: 98 additions & 0 deletions stubs/pywin32/isapi/install.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
from _typeshed import Incomplete

this_dir: Incomplete

class FilterParameters:
Name: Incomplete
Description: Incomplete
Path: Incomplete
Server: Incomplete
AddExtensionFile: bool
AddExtensionFile_Enabled: bool
AddExtensionFile_GroupID: Incomplete
AddExtensionFile_CanDelete: bool
AddExtensionFile_Description: Incomplete
def __init__(self, **kw) -> None: ...

class VirtualDirParameters:
Name: Incomplete
Description: Incomplete
AppProtection: Incomplete
Headers: Incomplete
Path: Incomplete
Type: Incomplete
AccessExecute: Incomplete
AccessRead: Incomplete
AccessWrite: Incomplete
AccessScript: Incomplete
ContentIndexed: Incomplete
EnableDirBrowsing: Incomplete
EnableDefaultDoc: Incomplete
DefaultDoc: Incomplete
ScriptMaps: list[ScriptMapParams]
ScriptMapUpdate: str
Server: Incomplete
def __init__(self, **kw) -> None: ...
def is_root(self): ...
def split_path(self): ...

class ScriptMapParams:
Extension: Incomplete
Module: Incomplete
Flags: int
Verbs: str
AddExtensionFile: bool
AddExtensionFile_Enabled: bool
AddExtensionFile_GroupID: Incomplete
AddExtensionFile_CanDelete: bool
AddExtensionFile_Description: Incomplete
def __init__(self, **kw) -> None: ...

class ISAPIParameters:
ServerName: Incomplete
Filters: list[FilterParameters]
VirtualDirs: list[VirtualDirParameters]
def __init__(self, **kw) -> None: ...

verbose: int

def log(level, what) -> None: ...

class InstallationError(Exception): ...
class ItemNotFound(InstallationError): ...
class ConfigurationError(InstallationError): ...

def FindPath(options, server, name): ...
def LocateWebServerPath(description): ...
def GetWebServer(description: Incomplete | None = None): ...
def LoadWebServer(path): ...
def FindWebServer(options, server_desc): ...
def split_path(path): ...
def CreateDirectory(params, options): ...
def AssignScriptMaps(script_maps, target, update: str = "replace") -> None: ...
def get_unique_items(sequence, reference): ...
def CreateISAPIFilter(filterParams, options): ...
def DeleteISAPIFilter(filterParams, options) -> None: ...
def AddExtensionFiles(params, options) -> None: ...
def DeleteExtensionFileRecords(params, options) -> None: ...
def CheckLoaderModule(dll_name) -> None: ...
def Install(params, options) -> None: ...
def RemoveDirectory(params, options) -> None: ...
def RemoveScriptMaps(vd_params, options) -> None: ...
def Uninstall(params, options) -> None: ...
def GetLoaderModuleName(mod_name, check_module: Incomplete | None = None): ...
def InstallModule(conf_module_name, params, options, log=...) -> None: ...
def UninstallModule(conf_module_name, params, options, log=...) -> None: ...

standard_arguments: Incomplete

def build_usage(handler_map): ...
def MergeStandardOptions(options, params) -> None: ...
def HandleCommandLine(
params,
argv: Incomplete | None = None,
conf_module_name: Incomplete | None = None,
default_arg: str = "install",
opt_parser: Incomplete | None = None,
custom_arg_handlers={},
) -> None: ...