Victor Varvaryuk
Victor Varvaryuk
I am migrating from MongoEngine 0.8.\* to .10.* I have this code: ``` python obj, created = Model.objects.get_or_create(...) if created: obj.a_field = ... ``` I am trying to replace the...
spyne.model.complex.ComplexModelBase ``` def __init__(self, **kwargs): cls = self.__class__ fti = cls.get_flat_type_info(cls) for k,v in fti.items(): if k in kwargs: setattr(self, k, kwargs[k]) elif not k in self.__dict__: a = v.Attributes...
``` python Stacktrace (most recent call last): File "raven/middleware.py", line 31, in __call__ iterable = self.application(environ, start_response) File "apigateway/server.py", line 229, in __call__ return app(environ, start_response) File "spyne/server/wsgi.py", line 250,...
I have a SQLAlchemy model with this column: ``` status = Column( Enum('SUBSCRIBED', 'UNSUBSCRIBED', 'UNCONFIRMED', name='status_choices', native_enum=False), ``` Then `spyne.model.complex.TableModel` around that model is used for a service. When a...
Pls add a docstring for https://github.com/spulec/freezegun/blob/master/freezegun/api.py#L789-L790
PyLint is complaining: > `Class 'User' has no 'objects' member (no-member)` > `Class 'User' has no 'DoesNotExist' member (no-member)` This is because `objects` is assigned in the metaclass `base/metaclasses.py:345`: ```...
```py import dependency_injector.containers as dic import dependency_injector.providers as dip class UnitOfWork: ... class TestUnitOfWork(UnitOfWork): ... class ApplicationContainer(dic.DeclarativeContainer): unit_of_work_class = dip.Callable(UnitOfWork) uow = dip.Factory(unit_of_work_class) class TestApplicationContainer(ApplicationContainer): unit_of_work_class = dip.Callable(TestUnitOfWork) container =...
Using nose2 plugin with this config: ``` [unittest] plugins = mongobox.nose2_plugin [mongobox] port = 27018 dbpath = /run/shm/mongobox ``` When I start the tests directory `/run/shm/mongobox` is created. But it's...
I cannot open a .`utm` file. "Failed to retrieve app-scope key": ``` $ /Applications/UTM.app/Contents/MacOS/UTM 2024-09-25 11:25:07.860 UTM[38856:2630526] +[IMKClient subclass]: chose IMKClient_Legacy 2024-09-25 11:25:07.860 UTM[38856:2630526] +[IMKInputSession subclass]: chose IMKInputSession_Legacy 2024-09-25 11:25:18.810...
[`Document._get_collection`](https://github.com/MongoEngine/mongoengine/blob/master/mongoengine/document.py#L173) is a protected method, but it's very useful for public usage. I don't see any reason why it should be protected. I guess this would suffice: ``` class Document(BaseDocument):...