Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

... #73

Closed
wants to merge 7 commits into from
Closed

... #73

wants to merge 7 commits into from

Conversation

sehoffmann
Copy link
Contributor

No description provided.

sehoffmann and others added 7 commits October 16, 2016 12:06
Previously type-checks were done by doing
type(obj) is klass
This doesn't take into account 'future' libs that use object inheritance to
backport new features from 3 to 2 without breaking 2-only libs. Now type-checks
are done using 'isinstance', which is a more relaxed type-check, but also the
desired behavior typically.
This works as expected when an id is not provided to
DBObject.find(where=...), but failed to work when using specifying an
id DBObject.find(id, where=...). InteractionBase.select() discards the
clause if an id is provided. This patch retains any provided where
clause.
@coveralls
Copy link

coveralls commented Oct 16, 2016

Coverage Status

Coverage remained the same at 85.872% when pulling a46d818 on Paranaix:master into 19f4ce3 on bmuller:master.

@bmuller
Copy link
Owner

bmuller commented Oct 17, 2016

Thanks for this! I think the only thing that I'm not sure should be changed is updating each class to extend object. I'd like to update this to Python3 and stop supporting 2, in which case those changes would have to be reverted.

@sehoffmann
Copy link
Contributor Author

sehoffmann commented Oct 17, 2016

Sorry this was not meant to be a PR. I actually just wanted to merge back the most recent commits into my fork, but somehow i failed.

However you might be interessted in my most recent commit (sehoffmann@06151f9) which adds real transactions (...which don't block the freaking main thread).

In the next days i will add SAVEPOINT support so you might want to wait before opening a PR.

PS: Please don't drop Python2 support or is there any important reason?

@sehoffmann sehoffmann closed this Oct 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants