Commit graph

171 commits

Author SHA1 Message Date
Griatch
e4b1e1c9aa Better handle error when trying to add ticker with subsecond interval. Resolves #2235 2020-11-12 22:01:24 +01:00
Griatch
6f3548eea9 Optimize _Saverdict.update that caused issues for webclient option update (#2224) 2020-11-01 11:19:14 +01:00
Griatch
d414cc3ccd Start add docs again 2020-10-08 21:45:18 +02:00
Griatch
a3c34f5f39 Run black on sources 2020-09-19 14:02:03 +02:00
Griatch
7af702055b Make TickerHandler handle malformed input cleaner. Resolve #2191 2020-09-18 22:03:38 +02:00
luyijun
e69cce9925 Fix a bug that script whose db_interval is 0 will be run when call its start method twice. 2020-08-02 10:48:47 +08:00
Griatch
0c53f1bcc3 Fix return type for all situations of get_all_scripts manager method, as inspired by #2117 2020-06-28 11:37:17 +02:00
Griatch
25a0de12d7 Ran black on sources 2020-02-29 12:25:00 +01:00
Griatch
edcd06d531 Handle case of script.at_repeat() immediately calling stop(). Resolves #2061. 2020-02-29 12:24:26 +01:00
Griatch
49b34f390d Don't allow step_task if task is None. Resolves #2047 2020-02-12 23:13:52 +01:00
trhr
090157979b django.utils.translation.ugettext(), ugettext_lazy(), ugettext_noop(), ungettext(), and ungettext_lazy() are deprecated in favor of the functions that they’re aliases for: django.utils.translation.gettext(), gettext_lazy(), gettext_noop(), ngettext(), and ngettext_lazy(). 2020-02-09 20:14:47 -06:00
Griatch
7a8d5853af Some minor tweaks. 2020-01-28 19:40:15 +01:00
Oscuro87
e8dc8a93d3 Fix a comment I broke, part 2... 2020-01-28 16:31:30 +01:00
Oscuro87
0e2994203a Fix a comment I broke 2020-01-28 16:30:36 +01:00
Oscuro87
285cb420dc Thid candidate fix for https://github.com/evennia/evennia/issues/2039\#issue-555828740 2020-01-28 16:14:57 +01:00
Oscuro87
bc8a1320d7 Second candidate fix for https://github.com/evennia/evennia/issues/2039\#issue-555828740 2020-01-28 16:06:06 +01:00
Oscuro87
cff07bd8d5 Candidate fix for https://github.com/evennia/evennia/issues/2039\#issue-555828740 2020-01-28 15:48:16 +01:00
Griatch
7f7dd3bbf2 Fixed various Script issues. Resolves #2010. Might affect #2006. 2020-01-18 20:50:26 +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
ca39276001 Ran black on master branch 2019-12-16 20:33:38 +01:00
John Borwick
d5ec338782 Task needs to be started if pause() was previously called 2019-11-16 15:26:27 -08:00
Griatch
fa29885ce0 Return store_key from TickerHandler.add and accept store_key kwarg to TickerHandler.add, for easier management. 2019-10-31 19:59:01 +01:00
Griatch
92fb7fa0f2 Ran black on sources 2019-10-27 22:37:32 +01:00
Tehom
9e379df52f Add index to typeclass path. Closes #1975 2019-10-27 20:38:16 +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
Greg Taylor
41622d4527 Remove unneeded __futures__ imports
No longer needed with Python 2 support dropped.
2019-09-15 00:17:39 -07:00
Griatch
7d8d3216a9 Resolve duplicate script execution for global script. Make paused script fire at_server_reload. Resolve #1911. 2019-09-05 23:54:07 +02:00
Griatch
781e8310f5 Security update; Increase rec Django version to 2.2.4 2019-08-09 18:03:02 +02:00
Griatch
6ddc98a947 Refactor containers for inheritance and delayed loading 2019-04-14 15:37:34 +02:00
Griatch
2781434fd4 Improve script self-description 2019-04-14 11:29:17 +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
Andrew Bastien
3ae8234dad Fixed issue with creating new Scripts. Silly tuples! 2019-04-14 03:41:04 -04:00
Andrew Bastien
1f246484cd Refactored ScriptHandler into ScriptContainer. Now uses dictionaries with finer control for script launching. 2019-04-14 00:22:53 -04:00
Andrew Bastien
f1c7471691 Renamed GLOBAL_HANDLER to GLOBAL_SCRIPTS and cleaned up to PEP8 2019-04-11 11:29:38 -04:00
Andrew Bastien
857c6d53f2 Created basic GLOBAL_HANDLER for the Global Script API. 2019-04-09 23:42:46 -04:00
Griatch
fccb128952 Add support for MSDP LIST/REPORT/UNREPORT. Resolves #1507. 2019-03-31 13:37:08 +02:00
Griatch
fbfb6da975 Resolve support for Django 2.0 2019-03-25 21:45:34 +01:00
Griatch
0c9d2e053b [fix] First migration test 2019-01-28 19:48:26 +01: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
b6b07ccdb5 Update CHANGELOG, pep8 fixes 2018-10-23 01:04:25 +02:00
Johnny
f943b3e179 Adds create() method to DefaultScript and unit test for DefaultScript.create(). 2018-10-09 23:41:04 +00: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
Griatch
a954f9c723 Merge and fix conflicts with develop 2018-07-21 14:34:26 +02:00
Griatch
e144672e74 Resolve merge conflicts 2018-06-12 20:13:22 +02:00
Tehom
af558ede7c Handle scripts with negative intervals. 2018-05-10 19:40:58 -04:00
Tehom
f0bae25ca0 Fix paused tasks. 2018-05-10 19:30:58 -04:00