Aris (Karim) Merchant
1feceea4e8
Change callability check
...
TypeErrors are thrown in a wide variety of situations, most of which
have nothing to do with calling an uncallable object. The appropriate
test is to use the built-in callable() function, which actually
tests if the object is callable.
2018-07-30 16:37:22 -07: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
5590ee2258
Rename all instances of Player->Account.
2017-07-07 23:47:21 +02: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
cc76de348e
Changed how duplicates is passed down the cmdset merge stack.
2016-10-15 22:48:38 +02:00
Griatch
edacd58eab
Refactor get_and_merge_cmdsets to merge all cmdsets in one place rather than sub-merging them separately on each object first. See #1087 . Also changes the names of the auto-added _exitset to ExitCmdSet and _channelset to ChannelCmdSet. Allow Channel cmdsets to also be identified on Objects.
2016-10-15 22:48:38 +02:00
Griatch
bac6c7f234
Continue adding unit tests to cmdhandler.get_and_merge_cmdsets function. Not finished yet, unclear how to propagate the options correctly.
2016-10-15 22:48:38 +02:00
Griatch
40e1c67f88
Change how cmdset options are merged by priority - this is now a straight priority order, where the option from the higher prio goes. Also add unit tests for cmdset mergers.
2016-10-15 22:48:38 +02:00
Griatch
e10769ac22
Fixed cmdset.remove() by correcting the __ne__ operator on commands to properly use the matchset to identify disjoint sets.
2016-04-04 09:37:46 +02: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
8a66fc40a9
Use with_metaclass from future.utils for python3 compat.
2015-11-01 15:11:12 +01:00
Ahmed Charles
bc340fbf0d
Remove commented out print statements.
2015-10-19 23:31:19 +02:00
Griatch
45e0785c8e
Made a change to the cmdset comparison algorithm to make sure all commands are compared both by alias and key by use of a set-intersection operation. Before one side of the comparison used key and the other used key+aliases, which led to inconsistent results in some situations, especially when combining system commands with aliases.
2015-06-28 17:58:42 +02:00
Griatch
561b051734
Made the cmdset flags no_exits, no_objs and no_channels pass-through the cmdset merge unless overruled by higher-prio sets' flags. Resolves #760 .
2015-06-20 13:15:43 +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
5863ef29a8
Made cmdhandler respect an explicit True/False setting.
2015-03-22 17:22:59 +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