-
Notifications
You must be signed in to change notification settings - Fork 38
Conversation
Thanks for these! I'll merge them in this weekend. |
Actually there is a problem: if Also, the call to A workaround would be to override
we'd have
This might even be a nice complement to the idea of a fully ascynhronous ORM—even object instantiation would be asynchronous. |
Hey eallik - these changes look good but they seem to break 28 tests. |
One might expect me to have updated the tests as well, I agree, but nevertheless I explicitly stated that the changes are not backwards compatible, so yeah... Can you perhaps look into it and see if there's something trivial to make most of them pass again? I'd look into the non trivial ones. It's most probably the circumstance that constructing an object now in general returns a deferred (where ever |
...just nevermind my previuos comment—tests pass now :) (except the failure described in Issue #35 for which I've sent you another pull request so you could merge that independently of the changes here). |
Oh and I think this should cause a version bump to 1.1 because of the backwards incompatible change in the behavior of |
This is by the definition of afterInit in both the doccomments of DBObject.__init__ itself as well as that of DBObject.afterInit
…ot being caught when constructing a new model instance; refs bmuller#30; fixes bmuller#34
…turns a Deferredl; refs bmuller#34 This does not ensure backwards compabitility--previously since afterInit was not called during instantiation, instantiation was never deferred--but sure does improve it by providing it in cases where afterInit is not deferred.
…ull control over how __init__ is called; refs bmuller#34
Ping? |
I need some time to take a look at this in detail. Your changes break all backwards compatibility, and that's not something I'm going to accept lightly (and therefore not quickly). Hopefully I'll have some time to look at it this weekend or next. My intent was to always make object instantiation synchronous, and only produce a deferred when there is necessary interaction w/ the DB. This represents a distinct departure from that intention - and I need to take some time to weigh the benefits / consequences. |
Actually there is a conceptual/design problem with So I'd like to propose a better solution. This solution is not backwards compatible because it requires
There might be issues with this approach—if you can point out any, I'd be happy. |
No description provided.