Commit graph

44 commits

Author SHA1 Message Date
Griatch
4f8753b683 Make sure to save in atomic transaction. Resovle #2657. 2022-09-25 00:36:37 +02:00
Griatch
a17fa2a454 Add run_in_main_thread as helper for those wanting to run server code from web view. Resolve #2457 2022-02-12 18:44:38 +01:00
Griatch
5e2372f79d Make sure Typeclass.at_init() is always called on cache initialization for any typeclass. Resolve #2641 2022-02-07 20:45:48 +01:00
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
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
ce3558d654 Go to Django 1.10. Remove support for Django 1.9. 2017-06-06 18:45:41 +02: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
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
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
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
c7325a5032 Further reworking, naming the library folder 'evennia' instead of lib or src. 2015-01-07 13:36:57 +01:00
Renamed from lib/utils/idmapper/models.py (Browse further)