Commit Graph
100 Commits
Author SHA1 Message Date
Stefan Wojcik fdc1d94f47 slightly simpler condition in _clear_changed_fields 2016-12-11 17:22:38 -05:00
Stefan Wojcik 828d5d6d29 *finally* a working .landscape.yml 2016-12-11 16:38:33 -05:00
Stefan Wojcik 501f6f11ba try another landscape approach 2016-12-11 16:01:31 -05:00
Stefan Wojcik 1199f0d649 another attempt at the right landscape config 2016-12-11 16:00:07 -05:00
Stefan Wojcik af6601a2e1 update changelog and upgrade docs 2016-12-11 15:56:04 -05:00
Stefan Wojcik d51788050f Merge branch 'master' of github.com:MongoEngine/mongoengine into improve-health-2 2016-12-11 15:38:29 -05:00
Stefan Wojcik 93d8d97fbd fix .landscape.yml 2016-12-11 15:24:25 -05:00
Stefan Wojcik dc15195dd8 merge master into improve-health-2 2016-12-11 15:02:51 -05:00
Stefan Wojcik 688ea4f0f2 add long to built-ins in landscape 2016-12-11 15:01:51 -05:00
Stefan Wojcik a12abe2da4 add xrange as a valid built-in in landscape 2016-12-11 14:56:34 -05:00
Stefan Wojcik 7ffaace4dd update setup.py classifiers 2016-12-11 14:33:53 -05:00
Stefan Wojcik 6f5f5b4711 version bump (forgot to do it with v0.10.8 release, so have to go for v0.10.9) 2016-12-10 23:36:06 -05:00
Stefan Wojcik c6c5f85abb update the changelog with everything we've added in v0.10.8 2016-12-10 23:30:16 -05:00
Stefan Wojcik 3ebe3748fa use with self.assertRaises for readability 2016-12-10 22:33:39 -05:00
Stefan Wojcik a8884391c2 restore cover-package in setup.cfg 2016-12-10 21:04:04 -05:00
Stefan Wojcik eb903987eb remove a print statement 2016-12-10 20:59:56 -05:00
Stefan Wojcik b32cd19266 setup.cfg cleanup + only run coveralls on py27 2016-12-10 20:57:43 -05:00
Stefan Wojcik 500b182d17 deprecate explain's format param 2016-12-10 20:09:19 -05:00
Stefan Wojcik 5b70a451c4 fix improper syntax for datetimes 2016-12-10 19:59:15 -05:00
Stefan Wojcik 05fea58d6a remove a print statement 2016-12-10 19:58:41 -05:00
Stefan Wojcik a9c205bffe remove ridiculous verify_exists option from URLField 2016-12-10 19:56:26 -05:00
Stefan Wojcik fa9ca2555a remove more python 2.6 code + upgrade coverage + cleaner setup.py 2016-12-10 19:02:07 -05:00
Stefan Wojcik d89cdff90a remove unused import and dont override built-in "id" 2016-12-10 14:29:48 -05:00
Stefan Wojcik 1e9a120f7e drop unused imports 2016-12-10 14:06:40 -05:00
Stefan Wojcik 94870d7377 merge master into improve-health-2 2016-12-10 13:53:13 -05:00
Stefan Wojcik 30ebe7c11e make the delete rules nicer and safer in BaseQuerySet.delete 2016-12-10 13:50:52 -05:00
Stefan WójcikandGitHub 7b860f7739 Deprecate Python v2.6 (#1430) 2016-12-10 13:29:31 -05:00
Stefan Wojcik 566e8ee801 readd accidentally dropped line in setup.cfg 2016-12-10 13:25:22 -05:00
Stefan Wojcik e28804c03a add venv & venv3 to .gitignore 2016-12-10 13:11:37 -05:00
Stefan Wojcik 5778cb4b51 merge master into improve-health-2 2016-12-10 13:10:19 -05:00
Stefan Wojcik 37c86350f2 drop Python v2.6 support and use dict comprehensions 2016-12-10 12:57:54 -05:00
Stefan Wojcik cb1eda480b remove outdated migration tests 2016-12-09 16:07:02 -05:00
Stefan WójcikandGitHub 1b9432824b Add ability to filter the generic reference field by ObjectId and DBRef (#1425) 2016-12-09 12:56:06 -05:00
Stefan Wojcik e50b23f047 remove xrange and unused variables 2016-12-09 00:08:59 -05:00
Stefan Wojcik 6eb470a821 remove unnecessary usage of the "global" keyword 2016-12-08 23:50:36 -05:00
Stefan Wojcik 756d8b2ac5 remove ridiculous try-finally clause from BaseQuerySet.distinct 2016-12-08 23:44:36 -05:00
Stefan Wojcik b99985eaf8 slightly cleaner and more performant BaseQuerySet.delete 2016-12-08 23:36:11 -05:00
Stefan Wojcik 4e1145d890 improve documentation regarding allow_inheritance 2016-12-08 23:06:17 -05:00
Stefan Wojcik 5b7b65a750 Prefer ' over " + minor docstring tweaks 2016-12-08 22:44:02 -05:00
Stefan Wojcik 76219901db nicer merge_index_specs (thanks @gukoff!) 2016-12-08 21:49:25 -05:00
Stefan Wojcik 44b86e29c6 more cleanup 2016-12-08 19:27:57 -05:00
Stefan Wojcik f1f999a570 cleanup + nicer EmbeddedDocumentList.__match_all and __only_matches 2016-12-08 18:59:25 -05:00
Stefan Wojcik 9a32ff4c42 document and slightly simplify BaseDocument._lookup_field 2016-12-08 17:41:40 -05:00
Stefan Wojcik 4b024409ba fix benchmark.py + ignore it in landscape 2016-12-08 16:31:44 -05:00
Stefan Wojcik b2825119ce remove unnecessary parentheses 2016-12-08 15:36:54 -05:00
Stefan Wojcik b02904ee75 BREAKING CHANGE rename ConnectionError to MongoEngineConnectionError to avoid conflicts with PY3's built-in ConnectionError 2016-12-08 15:18:17 -05:00
Stefan Wojcik c86155e571 cleaner connection code 2016-12-08 15:10:10 -05:00
Stefan Wojcik fa6949eca2 no need to redefine PY3 - six already has it 2016-12-08 12:53:01 -05:00
Stefan Wojcik 18a91cc794 drop an unnecessary ALLOW_INHERITANCE 2016-12-08 11:22:51 -05:00
Stefan Wojcik ae777e45b2 better comment about overriding allow_inheritance 2016-12-08 11:15:35 -05:00
Stefan Wojcik 0189818f3e clearer .landscape.yml + change self.__class__._meta to self._meta 2016-12-08 10:45:24 -05:00
Stefan Wojcik 205a975781 fix flake8 2016-12-08 10:34:09 -05:00
Stefan Wojcik bb81652ffe nicer imports 2016-12-08 10:33:15 -05:00
Stefan Wojcik edbecb4df0 minimize cyclic import warnings
remaining ones are wrongly attributed to mongoengine.common which only does inline imports
2016-12-08 10:12:46 -05:00
Stefan Wojcik 4373ea98cf more import fixes 2016-12-08 08:42:32 -05:00
Stefan Wojcik 8f657e0f7d cleaner code + prefer top-level import over _import_class 2016-12-08 08:18:33 -05:00
Stefan Wojcik f6b8899bba fix broken inheritance for Document and EmbeddedDocument 2016-12-07 22:48:06 -05:00
Stefan Wojcik c43a5fe760 add .landscape.yml 2016-12-07 00:13:32 -05:00
Stefan Wojcik c1993de524 remove one last unicode + safer default param 2016-12-06 23:36:57 -05:00
Stefan Wojcik bc83ba6a24 minor tweaks to Document._build_index_specs 2016-12-06 23:28:21 -05:00
Stefan Wojcik 0fc44efbcc minor tweak to python_support 2016-12-06 23:09:55 -05:00
Stefan Wojcik 1b36ca00e5 minor health tweak to benchmark.py 2016-12-06 23:04:38 -05:00
Stefan Wojcik 7dd4639037 pk as a property with a setter + get rid of basestring 2016-12-06 23:02:08 -05:00
Stefan Wojcik 557f9bd971 flake8 tweaks 2016-12-06 16:20:41 -05:00
Stefan Wojcik 59cac2b75c remove last few uses of "unicode" 2016-12-06 16:17:15 -05:00
Stefan Wojcik 548c7438b0 dont re-implement six 2016-12-06 16:14:53 -05:00
Stefan Wojcik 50df653768 imports working in py2 and py3 in mongoengine/__init__.py 2016-12-06 13:53:12 -05:00
Stefan Wojcik bc6c84c408 remove unnecessary sys.path manipulation in tests 2016-12-06 13:27:10 -05:00
Stefan Wojcik 6b2cebb07b healthier, cleaner imports 2016-12-06 13:17:40 -05:00
Stefan Wojcik db673a9033 ditch the old "except Exception, e" syntax 2016-12-05 23:23:38 -05:00
Stefan WójcikandGitHub f168682a68 Dont let the MongoDB URI override connection settings it doesnt explicitly specify (#1421) 2016-12-05 22:31:00 -05:00
Stefan WójcikandGitHub d25058a46d Implement BaseQuerySet.batch_size (#1426) 2016-12-05 22:13:22 -05:00
Stefan WójcikandGitHub 4d0c092d9f Fix iteration within iteration (#1427) 2016-12-05 09:38:24 -05:00
Stefan WójcikandGitHub 15714ef855 Fix __repr__ method of the StrictDict (#1424) 2016-12-04 16:10:59 -05:00
Stefan WójcikandGitHub eb743beaa3 fix doc.get_<field>_display + unit test inspired by #1279 (#1419) 2016-12-04 00:34:24 -05:00
Stefan WójcikandGitHub 0007535a46 Add support for cursor.comment (#1420) 2016-12-04 00:33:42 -05:00
Stefan WójcikandGitHub 8391af026c Fix filtering by embedded_doc=None (#1422) 2016-12-04 00:32:53 -05:00
Stefan WójcikandGitHub 800f656dcf remove unnecessary randomness in indexes tests (#1423) 2016-12-04 00:31:54 -05:00
Stefan Wojcik 088c5f49d9 update the changelog 2016-12-03 16:32:14 -05:00
Stefan Wojcik 999cdfd997 Fix BaseQuerySet#sum and BaseQuerySet#average for fields that specify a db_field 2016-12-02 11:32:38 -05:00
Stefan Wojcik 2b7417c728 add a missing entry to the changelog 2016-11-28 19:33:11 -05:00
Stefan WójcikandGitHub 3c455cf1c1 Improve health of this package (#1409)
* added flake8 and flake8-import-order to travis for py27

* fixed a test that fails from time to time depending on an order of a dict

* flake8 tweaks for the entire codebase excluding tests
2016-11-28 19:00:34 -05:00
Stefan WójcikandGitHub 5135185e31 Use SVG in README badges 2016-11-28 12:31:50 -05:00
Stefan Wojcik b461f26e5d version bump 2016-11-28 10:42:05 -05:00
Stefan Wojcik faef5b8570 finalize the v0.10.7 changelog 2016-11-28 10:40:20 -05:00
Stefan Wojcik d19bb2308d add #1389 to the changelog 2016-11-24 09:40:17 -05:00
Stefan Wojcik dd473d1e1e remove v3.2 from .travis.yml 2016-10-19 18:15:15 -04:00
Stefan Wojcik d2869bf4ed Merge branch 'master' of github.com:MongoEngine/mongoengine into dont-test-on-py-32 2016-10-19 18:13:41 -04:00
Stefan Wojcik d9e4b562a9 for good measure, remove py32 from the commented-out envlist, too 2016-10-19 16:30:39 -04:00
Stefan Wojcik fb3243f1bc readme fix 2016-10-19 16:23:48 -04:00
Stefan Wojcik 5fe1497c92 remove rednose from tox deps 2016-10-19 16:14:02 -04:00
Stefan Wojcik 5446592d44 remove rednose to see if it masks another issue 2016-10-19 16:05:59 -04:00
Stefan Wojcik 40ed9a53c9 dont run tests for python 3.2 2016-10-19 15:43:07 -04:00
Stefan Wojcik 6148a608fb update the changelog 2016-07-11 10:45:40 -07:00
Stefan Wojcik 3fa9e70383 prefer tuples over lists for immutable structures 2016-07-11 10:42:27 -07:00
Stefan Wojcik 16fea6f009 replace QuerySet.sum/average implementations with aggregate_sum/average + tweaks 2016-07-10 13:21:12 -07:00
Stefan Wojcik f750796444 fix typo 2016-05-04 17:11:38 -07:00
Stefan Wojcik 54975de0f3 fix read_preference for PyMongo 3+ 2015-11-23 10:46:52 -08:00
Stefan Wojcik a7aead5138 re-create the cursor object whenever we apply read_preference 2015-11-23 10:46:52 -08:00
Stefan Wojcik b7ef82cb67 style tweaks + changelog entry 2015-06-18 11:02:11 -07:00