Griatch
8b28900600
Ran black on sources
2020-10-21 21:11:04 +02:00
Griatch
2eaa947ed4
Improvements to cmdsethandler/cmdset debugging
2020-10-03 23:01:19 +02:00
Griatch
b24d4f0e1e
Run black on sources; add black config
2020-07-27 21:12:06 +02:00
trhr
f088207091
fixing fstring
2020-04-16 06:14:03 -05:00
trhr
0f8c0ad9bf
fixing fstring
2020-04-16 05:53:51 -05: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
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
bc5210eb9c
Fix examine using wrong cmdset target for accounts. Resolve #1886
2019-10-17 00:15:09 +02: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
72f4fedcbe
Merge with develop and fix merge conflicts
2018-10-01 20:58:16 +02:00
Vincent Le Goff
e26f04d573
Add unittests for building menus, fixing some errors
2018-04-01 11:48:49 +02: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
b278337172
Make PEP8 cleanup of line spaces and character distances as well as indents
2017-08-19 23:16:36 +02:00
Griatch
7ff783fea1
Resolve merge conflicts with master.
2017-08-19 21:30:42 +02:00
Griatch
09b9784c3f
Some refactoring of the cmdsethandler updates. Also took the opportunity to add the in-game-error report while I was at it.
2017-08-13 17:17:27 +02:00
Tehom
72a91ebce6
Add logging for fallback.
2017-08-08 20:46:48 -04:00
Tehom
bafd069d97
Create fallback for default cmdsets that fail to load
2017-07-28 01:26:00 -04:00
Griatch
5590ee2258
Rename all instances of Player->Account.
2017-07-07 23:47:21 +02:00
Griatch
7e4155d4cd
Some more minor refactorings, pertaining to #1176 .
2017-01-30 20:18:21 +01: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
402a4c8aa0
Add support to has_cmdset for cmdset instances as suggested in #1083 .
2016-10-01 13:47:35 +02:00
Dan Feeney
78d422dd7a
modified has_cmdset to accept either a cmdset's python path or key
2016-10-01 13:47:35 +02:00
Griatch
984c6f9758
Added the ability to overload the default command parent. Implements #923 .
2016-05-22 20:49:46 +02:00
Griatch
4cb19bec59
Added IN_GAME_ERRORS setting for convenient debugging during development (False by default)
2016-05-22 20:45:41 +02:00
Russell Jones
27549eca2e
Use 2/3 raise_() from future.utils
2015-12-20 14:14:02 +00:00
Ahmed Charles
11b61fe335
Import python3 compatible object.
2015-11-02 00:19:04 +01:00
Ahmed Charles
cd23c6c056
Indent docs properly.
2015-11-01 15:11:12 +01: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
Ahmed Charles
0384fcc63d
Move to python3 style except.
2015-10-19 23:31:19 +02:00
Griatch
a8332fe431
Reworked the fix of #769 to be cleaner and using a full import mechanism rather than the pre-module lookup that messed up the unittests.
2015-07-07 15:29:28 +02:00
Griatch
0003868533
Added more logics for pre-lookups of cmdset paths at any nested package depth. Resolves #769 .
2015-07-07 13:31:17 +02:00
Griatch
7f63ca6a76
Made error reporting from cmdsets a little more verbose.
2015-06-20 13:11:50 +02:00
Griatch
ef1e336339
Added a missing update to the database store of cmdsethandler. Resolves #751 .
2015-06-01 20:02:53 +02:00
Griatch
64c6d06d0f
Fixed the loading of the menu_login contrib, doing some cleanup in the error reporting at the same time. Also added evennia to the search path for cmdsets and typeclasses so that one can give the path to e.g contrib when loading.
2015-05-17 00:49:41 +02:00
Griatch
e84db3df54
Converted all docstrings in the commands submodule (not the default commands themselves) to Google style as per #709 .
2015-05-15 20:05:37 +02:00
Griatch
30e9bfddf9
Made the cmdsethandler.add/delete_default re-use the normal add/delete methods for better code reuse.
2015-05-14 17:54:25 +02:00
Griatch
19867ddfcd
Fixed some formatting to make untittests pass again.
2015-03-08 11:20:05 +01:00
Griatch
28158299b5
cleaned up some i18n strings in the code. Resolves #684 .
2015-03-07 23:34:29 +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
60ff4b8515
Renamed commands/commands.py back to commands/command.py, it is confusing Python to import from inside a package with a module named the same as the package - since Python always searches the current directory first, it will try to import from the internal module and not from the external package, leading to not finding the contents of the package. This appears to be more a limitation of the package structure than with Evennia, so solving it the simplest way.
2015-02-15 22:00:49 +01:00
Griatch
3ff937a6fd
Updated commands to use new evennia path.
2015-01-07 14:31:35 +01:00
Griatch
c7325a5032
Further reworking, naming the library folder 'evennia' instead of lib or src.
2015-01-07 13:36:57 +01:00