Commit graph

215 commits

Author SHA1 Message Date
Griatch
0f70f51724 Fix $choice funcparser; improve safe_eval parsing of containers. Resolve #2910. 2022-10-13 23:22:05 +02:00
InspectorCaracal
734f0dd20e strip ands, correct test 2022-10-09 22:11:20 -06:00
InspectorCaracal
18c3996020 do single-number check AFTER conversion from ordinal 2022-10-09 21:33:11 -06:00
InspectorCaracal
0ff4097a47 typos 2022-10-09 21:30:28 -06:00
InspectorCaracal
00fe0a2d9d add ordinal case 2022-10-09 21:12:47 -06:00
InspectorCaracal
3970e82434 add str2int 2022-10-09 20:42:34 -06:00
Griatch
377d366d3e Make help pagination not mess up colors. Resolve #2646 2022-09-22 23:30:25 +02:00
Griatch
6fa68745ba Correct funcparser tests 2022-09-18 01:26:04 +02:00
Griatch
705d47fe47 Resolve unit tests 2022-09-18 00:06:34 +02:00
Griatch
07ff42b77c Fixes to return_appearance helpers and iter_to_str 2022-07-24 13:00:30 +02:00
Griatch
091a13674d Debugging of tutorial 2022-07-18 17:38:37 +02:00
Griatch
83395211cc Merge branch 'develop' into contrib/evadventure 2022-07-11 11:24:46 +02:00
InspectorCaracal
f55959336b update docs/tests 2022-07-03 20:31:08 -06:00
Griatch
f4c3db1151 Fix merge conflicts 2022-07-03 11:13:12 +02:00
InspectorCaracal
aeaff1d663 update docstring 2022-06-28 15:57:33 -06:00
InspectorCaracal
a957417c79 add separator param 2022-06-28 15:52:23 -06:00
InspectorCaracal
2e3ce55fce remove blank-to-comma assumption 2022-06-28 15:43:05 -06:00
Cory F. Cohen
a05ec09f51 Fix various typos in several files.
All are in comments and docstrings, and none should be controversial
in any way (e.g. British versus American spelling).
2022-06-21 21:12:45 -04:00
Griatch
a83f21ef2f Apply black to cleanup code 2022-06-12 09:46:48 +02:00
Griatch
df5ae68a3c Refactor equipmenthandler 2022-04-09 23:51:48 +02:00
Griatch
a553f1ab2f Continue with evadventure implementation 2022-03-21 15:35:07 +01: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
bd3e31bf3c Run black reformatter on code 2022-02-08 13:03:52 +01:00
Griatch
72ad633071 Make set aware of Attribute categories 2021-12-16 00:22:24 +01:00
Griatch
affa3b8cf7 Tweak iter_to_string to be a little more flexible about limiters 2021-12-11 10:48:18 +01:00
Griatch
9d6cb98349 Add pronoun parsing for msg_contents inlinefuncs 2021-10-30 22:36:40 +02:00
Griatch
2a8cc57bbe Add strip_unsafe_input/INPUT_CLEANUP_BYPASS_PERMISSIONS helpers to strip unsafe input on a per-command level. Resolves #1738. 2021-10-09 16:27:58 +02:00
Griatch
71092f17f7 Make @lazy_property handlers read/write protected to avoid common newbie mistakes, like assigning obj.locks = [] 2021-10-09 14:33:40 +02:00
Griatch
78e063d9ca Add TraitProperties as alternative way to define Traits from the traits contrib. Also clean up docs to resolve #2450. 2021-08-30 22:33:21 +02:00
davewiththenicehat
cf9b9e46e3 Update utils.py 2021-06-25 20:04:26 -04:00
Griatch
16667f1372 Merge branch 'CmdHelp_clickable_topics' of https://github.com/davewiththenicehat/evennia into davewiththenicehat-CmdHelp_clickable_topics 2021-06-20 11:09:48 +02:00
davewiththenicehat
02fc0f998e Change to utils.display_len
evennia.utils.tests.test_utils.TestFormatGrid
evennia.commands.default.tests.TestHelp
Both pass
2021-06-19 11:46:46 -04:00
fariparedes
e6733ba7ff Update iter_to_string with handling for list size of 2 2021-06-18 14:11:56 -04:00
davewiththenicehat
a85f8995b3 utils.format_grid strip ansi support
adds option to ignore ansi markups when calculating grid lengths.

evennia.utils.tests.test_utils.TestFormatgrid passes
2021-06-12 12:32:20 -04:00
Griatch
8837b93dd2 Update localization 2021-05-29 13:22:19 +02:00
Griatch
7ff8cbb341 I18n string cleanup and refactoring 2021-05-27 17:37:26 +02:00
Griatch
73f73f2473 Add get_all_cmdsets` helper inspired by work by user trhr in unmerged PR 2021-05-21 15:22:35 +02:00
Griatch
ae6a481025 Fix merge conflicts 2021-05-15 09:31:11 +02:00
Griatch
055bbcfee3 Fix bugs, correct one-line format_grid function 2021-05-13 09:06:12 +02:00
davewiththenicehat
1cc1731d54 utils.delay docstring update
Updated docstring to show delay returns a TaskHandlerTask instance.
2021-05-11 16:46:19 -04:00
davewiththenicehat
deb6194aaa delay docstring update
delay docstring update

The old one had not been properly updated or formatted.
2021-05-10 12:38:47 -04:00
Griatch
05beca9196 Merge branch 'develop' into refactor-channels 2021-05-09 16:06:16 +02:00
Griatch
beecefc19f Resolve merge conflicts with master 2021-05-09 15:31:24 +02:00
Griatch
bf4af8b208 Fix edge case in TaskHandler when un-pickleable callable supplied 2021-05-09 15:25:57 +02:00
Griatch
88a48e6842 Correct help lunr search boosts 2021-05-08 18:31:42 +02:00
Griatch
f5fd398480 New FileHelp system to create help entries from external files 2021-05-08 15:11:53 +02:00
Griatch
bbfb77022e Fixing unit tests for Channel command 2021-05-06 01:04:53 +02:00
Griatch
67908c5af0 Functioning help subcategories 2021-05-02 00:09:41 +02:00
davewiththenicehat
f62ff2015f taskhandler verified do_task causes errors if called manually (early)
Any usage of taskhandler's method outside of the deferred instance calling it results in errors.

Referencing: It's easier to access these tasks (should it be necessary) using
    `evennia.scripts.taskhandler.TASK_HANDLER`
I can see it is intended to be used this way.

More importantly usage of the global reactor would require usage of reactorbuilder API which is recomended for building reactors only.

Commiting notes before switching to twisted's documented methods for making and testing deferrals.
In short I need to get an instance of reactor's callLater. Creating and working with that call later will allow me to test taskhandler and make it function as intended.

Usage of utils.delay will not change.
2021-04-13 17:01:55 -04:00
Griatch
c9d9e9c6f8 Clean up docs and more funcparser fixes 2021-03-27 23:43:46 +01:00