Griatch
7ff8cbb341
I18n string cleanup and refactoring
2021-05-27 17:37:26 +02: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
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
Greg Taylor
bd33886cc0
Remove uses of the 'future' py2->3 module
...
This is no longer needed, now that we are Py3.7+ only. One
layer of indirection removed, and one less dependency.
2019-09-15 00:18:56 -07:00
Griatch
781e8310f5
Security update; Increase rec Django version to 2.2.4
2019-08-09 18:03:02 +02:00
Griatch
098af3caba
Move globalhandler into utils.containers, make settings format more flexible, default to base typeclass, add helper functions and some more lenient error handling
2019-04-14 11:24:45 +02:00
Griatch
c3ebd8d251
Use to_str/to_bytes, replacing old versions
2019-01-16 23:26:46 +01:00
Griatch
981119b640
Fix merge conflicts
2019-01-01 15:19:20 +01:00
Griatch
cc6c12b8be
Make create_script return None if script set up to immediately fire/stop. Resolves #1663 .
2018-10-27 19:08:31 +02:00
Griatch
f9369f2784
Converting the AMP, not working yet
2018-10-04 21:46:16 +02:00
Griatch
72f4fedcbe
Merge with develop and fix merge conflicts
2018-10-01 20:58:16 +02:00
Griatch
be5f289a8a
Resolve all django deprecation warnings
2018-09-27 21:20:54 +02: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
6fa280b9fd
Run 2to3.
2017-10-29 13:40:30 -04:00
Griatch
b278337172
Make PEP8 cleanup of line spaces and character distances as well as indents
2017-08-19 23:16:36 +02:00
Griatch
63c96de443
Create parallel Player/Account fields and copy all
2017-07-06 22:37:28 +02:00
Griatch
ce3558d654
Go to Django 1.10. Remove support for Django 1.9.
2017-06-06 18:45:41 +02:00
Tehom
6ea13dbc96
Check for instance in cache to have the appropriate foreignkey if we're called from a related manager. Stops us from retrieving any object by ID, whether it was related to us or not.
2017-05-07 02:12:58 -04:00
Tehom
5de1f7b45b
Add dbclass to names of classdict for cache_size function to remove duplicate entries
2017-05-06 03:21:50 -04:00
Griatch
74eebfed6d
Refactor code to remove alerts as per lgtm and #1176 .
2017-01-29 19:02:00 +01:00
Griatch
c6d9c0619e
Refactor code for readability and compatibility.
2017-01-27 00:19:27 +01:00
Griatch
2b35140fe3
Implement a more throughough cache-flush mechanism. This makes sure to flush foreignkey cache relations for objects not affected by flushing (normally objects with an NAttribute stored in them). Without ForeignKey flushing, the location of such objects would remain cached and drift out of sync, leading to content caches in turn desyncing. Resolves #1064 .
2016-10-02 20:52:05 +02:00
Griatch
15025c0586
Added at_idmapper_flush to allow objects more control of their flush characteristics.
2016-10-02 20:52:05 +02:00
Griatch
8090d92d85
MonitorHandler implemented as a replacement for the OOBHandler monitor functionality, as per #924 .
2016-05-22 20:45:39 +02:00
Griatch
c0537fe456
Changed the deprecated get_field_by_name to just get_field.
2016-02-19 22:31:42 +01:00
Griatch
e6a866a150
Made Evennia run with Django 1.9
2016-02-18 10:12:42 +01:00
Griatch
f87d07b775
Added to TypedObject's get() manager method, since without it, Q-objects didn't work correctly.
2015-12-01 12:24:09 +01:00
Ahmed Charles
487fcdf873
Use list* from future.utils.
...
dict.keys() -> list(dict)
dict.values() -> listvalues(dict)
dict.tems() -> listitems(dict)
2015-11-09 10:23:00 +00:00
Ahmed Charles
1968f15895
Remove commented out code.
2015-11-09 10:11:34 +01:00
Ahmed Charles
de0e42240c
Have every class inherit from object.
2015-11-09 10:11:34 +01:00
Ahmed Charles
bcd8674ef3
Use python3 range.
...
Including potential memory reduction due to not created unnecessary lists.
2015-11-02 11:47:07 +00:00
Ahmed Charles
cbe1eefcf0
Move to python3 style division.
...
All of these are currently integer division in python2.
2015-11-01 20:47:18 +00:00
Ahmed Charles
8a66fc40a9
Use with_metaclass from future.utils for python3 compat.
2015-11-01 15:11:12 +01:00
Griatch
c7e1a6a086
Resolved merge conflicts against master.
2015-10-20 00:07:39 +02:00
Griatch
50371b6abd
Merged conflicts.
2015-10-19 23:32:00 +02:00
Ahmed Charles
bc340fbf0d
Remove commented out print statements.
2015-10-19 23:31:19 +02:00
Russell Jones
06c3dc0ed3
Run "futurize -1 -w -n ."
2015-10-01 20:00:28 +01:00
Griatch
eb2bd8d44c
Converted a large part of utils/ folder to google code docstrings as per #709 .
2015-09-27 20:24:03 +02:00
Griatch
3410499313
Made the contents cache mechanism use the idmapper cache directly. This should hopefully avoid isses like #745 in the future.
2015-05-14 17:57:49 +02:00
tajmone
b4fb81f3b5
Docstrings : another Func documented
...
Another func to which I added Args, etc.
Plus typos cleanup.
2015-03-09 16:04:21 +01:00
Griatch
e13a9b2749
Made auto-field wrappers have docstrings for api2md
2015-03-09 11:30:49 +01:00
Griatch
21e4a6bca7
Updated docstrings as an example
2015-03-04 21:42:23 +01:00
Griatch
e201cda2c3
Fixes to content_cache handler. Started a simple test of a cmd-limiter.
2015-02-28 13:02:51 +01:00
Griatch
68d294d007
Refactored and cleaned up the idmapper directory; it's been so changed by evennia that it makes little sense to keep the original structure (which was intended for adding an app into). Resolved the unittest errors with the idmapper.
2015-02-23 15:06:30 +01:00
Griatch
7f0e0d5ef8
Added at_init() call in idmapper and made sure to not deprecate it. Fixed bugs in search and continued work on tutorial world.
2015-02-22 17:46:55 +01:00
Griatch
07dd81851e
Fixed some bugs in new oobhandler mechanism to make tests work again, but oobhandler is still not tested.
2015-02-13 08:09:29 +01:00
Griatch
d4b5533c20
Finished refactoring all msdp+evenniacore OOB commands. Still untested
2015-02-13 00:11:49 +01:00