Commit graph

83 commits

Author SHA1 Message Date
Griatch
9238a9bb58 Fix docstring formatting 2020-10-19 22:01:44 +02:00
Griatch
b449ebe3d4 Fix style to Keyword Args 2020-10-12 21:13:06 +02:00
Griatch
9cdc37355c Resolve merge conflicts 2020-09-16 23:49:05 +02:00
Griatch
bf8d41562d Default to attrread as locktype for Attribute read access. Resolve #2185 2020-09-01 20:40:48 +02:00
Griatch
90e149dc27 Resolve merge conflicts 2020-07-18 23:30:23 +02:00
Griatch
f615886d24 Add unittest for Attr/Tag.batch_add, clarify docstrings. Resolves #2125 2020-07-18 23:10:46 +02:00
Griatch
76761825d0 Fixed all errors in doc building 2020-07-11 00:27:10 +02:00
Griatch
2208a3030c Remove tests from api doc 2020-07-10 20:04:43 +02:00
Griatch
7fed14d233 Rename docstring Kwargs to Keyword Args 2020-07-10 15:57:57 +02:00
Griatch
6929bec4e6 Ran black on sources 2020-06-16 14:50:02 +02:00
Andrew Bastien
43ce2285a5 Completely refactored the Attribute Refactor into a single fresh branch. 2020-04-22 17:17:37 -07:00
trhr
b94767b85a Typo 2020-04-06 01:00:06 -05:00
Griatch
c428eb72a5 Have tags/attrs.all() switch to direct query on AGGRESSIVE_TYPECLASS_CACHE=False. Resolves #2007 2020-01-20 19:14:50 +01:00
Griatch
69d85bd184 Make scripts/objects lists use EvMore. Change EvMore to not justify by default. 2020-01-11 15:49:12 +01:00
Griatch
4ea6209123 Ran black on branc 2019-12-16 20:31:42 +01:00
Johnny
270b50a984 Fixes situation where attributes and tags continue to be cached when TYPECLASS_AGGRESSIVE_CACHE is set to False. 2019-12-03 21:40:00 +00:00
Griatch
c2c7fa311a Format code with black. Add makefile to run fmt/tests 2019-09-28 18:18:11 +02:00
Greg Taylor
5e1a672fc2 Remove builtins imports
This module is not intended to be used directly in most cases, per:
https://docs.python.org/3/library/builtins.html

None of our usages warrant the explicit import. We also avoid some
confusion as folks dig to see what we are doing to require
importing builtins directly.
2019-09-15 20:29:59 -07:00
Griatch
bb5324ba52 Fix AttributeHandler.get with no Attributes. Also make return_list=True return [] rather than [None]. Resolves #1866 2019-09-08 19:18:19 +02:00
Griatch
ed187ad05f Various fixes from game jam 2019-05-14 10:33:31 +02:00
Griatch
983a58f055 Make AttributeHandler.remove delete by category only as well 2019-04-18 22:24:51 +02:00
Griatch
e283adb7a1 Update unit test to experiment with py3.7 support 2019-03-23 08:48:26 +01:00
Griatch
90b42ca6fb Fix merge conflicts 2019-03-04 22:32:51 +01:00
Griatch
c5a73174ab Fix bug in deleting capitalized attributes. Resolves #1776. 2019-02-07 22:04:12 +01:00
Griatch
7a535b35fa Remove __unicode__ magic methods no longer needed 2019-01-30 23:50:43 +01:00
Griatch
54e351f296 Merge develop branch, resolve conflicts 2018-10-13 17:19:38 +02:00
Griatch
fe14dfddef Fix bug in unittest that would cause occational name collision 2018-10-07 12:31:43 +02:00
Griatch
72f4fedcbe Merge with develop and fix merge conflicts 2018-10-01 20:58:16 +02:00
Griatch
f31433c3ef Fix unit tests 2018-09-19 23:49:46 +02:00
Griatch
a29b46d091 Cleanup, bug fixes, refactoring 2018-09-19 22:51:27 +02:00
Griatch
01acdccd6d Update-objs with prototype, first version, no testing yet 2018-05-22 22:28:03 +02:00
Griatch
464c7400f5 Merge branch 'develop' into olc 2018-03-13 22:09:15 +01:00
maiki
38eb6814f6 Remove extra words 2018-03-10 20:42:17 -08:00
Griatch
70a81a939c OLC systen. Create olc_storage mechanism 2018-03-03 18:52:12 +01:00
Griatch
cbcb91f487 Catch the case of a prematurely deleted guest account. Resolves #1500. 2018-03-03 11:01:31 +01:00
Griatch
9d3d627e22 Catch the case of a prematurely deleted guest account. Resolves #1500. 2018-02-21 20:18:52 +01:00
Ryan Stein
7d524ac328 Unwrap for expressions in comprehensions, too. 2017-11-02 22:52:16 -04:00
Ryan Stein
cd21fb2396 Use Python 3's new super() convention. 2017-11-02 10:41:41 -04:00
Ryan Stein
ee58e59e7e Port a few miscellaneous items. 2017-10-29 22:21:38 -04:00
Ryan Stein
6fa280b9fd Run 2to3. 2017-10-29 13:40:30 -04:00
Griatch
92df3ce5ae Structure handlers to allow .get() to return lists
See #1154. In the end I didn't modify the Attributehandler and
TagHandler like this, instead I added the `return_list` argument
for cases when one wants a guaranteed return.
2017-08-27 14:56:05 +02:00
Griatch
05a3d0435d Add missing fullcache check to attributes.clear(). Resolves #1404. 2017-08-27 10:32:14 +02:00
Griatch
6d846c6c82 Add help entry to project_rename utility.
Also merge in latest master changes to devel branch.
2017-07-13 20:33:32 +02:00
Griatch
5590ee2258 Rename all instances of Player->Account. 2017-07-07 23:47:21 +02:00
Tehom
f6626e1bf8 Fix extremely bizarre issue in which the query using db_model in conjunction with other fields behaved as if it was unindexed if it did not include __iexact keyword. I have absolutely no idea why it acted this way. But __iexact added resolves it. 2017-06-21 00:42:04 -04:00
Griatch
ee4dd20fd9 Fixes to batch_add mechanisms and spawner batch creation for passing unittests. 2017-04-09 18:53:39 +02:00
Griatch
58589126b8 Reworked spawner with new batch_add functionality for both tags and attributes. 2017-04-06 19:53:57 +02:00
BlauFeuer
e762441d4d Remove unreachable code, PEP 8 whitespace,
mark debug code in comments
2017-03-19 18:56:18 +01:00
Griatch
23cfd3ba17 Make attribute cache behavior consistent with the non-cached return when returning non-found objects as per #1226. 2017-02-19 17:36:35 +01:00
Simon Vermeersch
af7475c6b9 Cache non-existent attributes too to avoid querying for them more than
once.
2017-02-12 10:00:05 +01:00