This commit is contained in:
Trinh Anh Ngoc
2023-05-18 18:15:35 +07:00
parent 5312e133ab
commit e29a04538d
16 changed files with 2 additions and 139 deletions

View File

@@ -3,7 +3,6 @@ from psycopg2 import connection
from . import ( from . import (
addons as addons, addons as addons,
api as api, api as api,
cli as cli,
conf as conf, conf as conf,
fields as fields, fields as fields,
http as http, http as http,
@@ -14,8 +13,7 @@ from . import (
release as release, release as release,
service as service, service as service,
sql_db as sql_db, sql_db as sql_db,
tools as tools, tools as tools
upgrade as upgrade
) )
from .api import Registry from .api import Registry
from .tools.translate import _ as _, _lt as _lt from .tools.translate import _ as _, _lt as _lt

View File

@@ -1,3 +0,0 @@
from typing import Any
__path__: Any

View File

@@ -1,10 +0,0 @@
from . import (
cloc as cloc,
deploy as deploy,
populate as populate,
scaffold as scaffold,
server as server,
shell as shell,
start as start
)
from .command import Command as Command, main as main

View File

@@ -1,4 +0,0 @@
from . import Command
class Cloc(Command):
def run(self, args) -> None: ...

View File

@@ -1,11 +0,0 @@
commands: dict[str, CommandType]
class CommandType(type):
def __init__(cls, name, bases, attrs) -> None: ...
Command: CommandType
class Help(Command):
def run(self, args) -> None: ...
def main() -> None: ...

View File

@@ -1,10 +0,0 @@
from . import Command
from typing import Any
class Deploy(Command):
session: Any
def __init__(self) -> None: ...
def deploy_module(self, module_path, url, login, password, db: str = ..., force: bool = ...): ...
def login_upload_module(self, module_file, url, login, password, db, force: bool = ...): ...
def zip_module(self, path): ...
def run(self, cmdargs) -> None: ...

View File

@@ -1,10 +0,0 @@
from . import Command
from ..api import Environment
from ..models import BaseModel
class Populate(Command):
def run(self, cmdargs) -> None: ...
@classmethod
def populate(cls, env: Environment, size, model_patterns: bool = ...) -> dict | None: ...
@classmethod
def _get_ordered_models(cls, env: Environment, model_patterns: bool = ...) -> list[BaseModel]: ...

View File

@@ -1,25 +0,0 @@
from . import Command
from typing import Any
class Scaffold(Command):
def run(self, cmdargs) -> None: ...
def epilog(self): ...
builtins: Any
def snake(s): ...
def pascal(s): ...
def directory(p, create: bool = ...): ...
env: Any
class template:
id: Any
path: Any
def __init__(self, identifier) -> None: ...
def __str__(self): ...
def files(self) -> None: ...
def render_to(self, modname, directory, params: Any | None = ...) -> None: ...
def die(message, code: int = ...) -> None: ...
def warn(message) -> None: ...

View File

@@ -1,18 +0,0 @@
from . import Command
from typing import Any
__author__: Any
__version__: Any
_logger: Any
def check_root_user() -> None: ...
def check_postgres_user() -> None: ...
def report_configuration() -> None: ...
def rm_pid_file(main_pid) -> None: ...
def setup_pid_file() -> None: ...
def export_translation() -> None: ...
def import_translation() -> None: ...
def main(args) -> None: ...
class Server(Command):
def run(self, args) -> None: ...

View File

@@ -1,21 +0,0 @@
import code
from . import Command
from typing import Any
_logger: Any
def raise_keyboard_interrupt(*a) -> None: ...
class Console(code.InteractiveConsole):
def __init__(self, locals: Any | None = ..., filename: str = ...) -> None: ...
class Shell(Command):
supported_shells: Any
def init(self, args) -> None: ...
def console(self, local_vars): ...
def ipython(self, local_vars) -> None: ...
def ptpython(self, local_vars) -> None: ...
def bpython(self, local_vars) -> None: ...
def python(self, local_vars) -> None: ...
def shell(self, dbname) -> None: ...
def run(self, args): ...

View File

@@ -1,7 +0,0 @@
from . import Command
class Start(Command):
def get_module_list(self, path): ...
def run(self, cmdargs): ...
def die(message, code: int = ...) -> None: ...

View File

@@ -1,12 +0,0 @@
from argparse import Namespace
BLACKLIST: set[str]
IGNORE: tuple[str, ...]
def install(db_name: str, module_id: int, module_name: str) -> None: ...
def uninstall(db_name: str, module_id: int, module_name: str) -> None: ...
def cycle(db_name: str, module_id: int, module_name: str) -> None: ...
def parse_args() -> Namespace: ...
def test_full(args: Namespace) -> None: ...
def test_uninstall(args: Namespace) -> None: ...
def test_scripts(args: Namespace) -> None: ...

View File

@@ -11,12 +11,10 @@ from .date_utils import *
from .convert import * from .convert import *
from .template_inheritance import * from .template_inheritance import *
from . import ( from . import (
_monkeypatches as _monkeypatches,
appdirs as appdirs, appdirs as appdirs,
cloc as cloc, cloc as cloc,
osutil as osutil, osutil as osutil,
pdf as pdf, pdf as pdf,
pycompat as pycompat, pycompat as pycompat
win32 as win32
) )
from .config import config as config from .config import config as config

View File

@@ -1 +0,0 @@
def nl_langinfo(param) -> str: ...

View File

@@ -1 +0,0 @@