Commit graph

195 commits

Author SHA1 Message Date
Griatch
9092a29338 Fixed some mistakes in the docstrings. 2015-11-28 18:25:05 +01:00
Griatch
0a4c217b3e Added unittests for nested inlinefuncs, and deprecation warning for the old version of {inlinefunc syntax. 2015-11-28 18:25:04 +01:00
Griatch
641846e855 Added a functioning version of nested inline funcs. Still poor error handling and some edge cases are not handled. 2015-11-28 18:25:04 +01:00
Ahmed Charles
faacf58f56 Use viewkeys from future.utils, with the following mapping:
dict.keys() -> viewkeys(dict)
2015-11-16 21:20:25 +01:00
Ahmed Charles
76dc0545c4 Remove unused traceback imports. 2015-11-15 20:40:03 +00:00
Griatch
45f973fdb6 Made unittests work with changed Session apis. Resolves #808. 2015-11-15 20:36:18 +01:00
Griatch
efefe3e5ff First version of changed sessid->session change that starts properly. Not fully tested yet. 2015-11-14 21:43:58 +01:00
Griatch
652bb02bc7 In the wake of changes to hide away tracebacks from players, made the error report include the server log time stamp so as to make it easier to reconcile with the real traceback information. 2015-11-09 15:07:06 +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
Dan Feeney
ccd1451a02 wrote tests for the convert_urls function of TextToHTMLparser
improved regex to better handle edge cases, particularly a period following the URL
2015-11-09 10:21:39 +01:00
Dan Feeney
db218f7293 fixed regexp used in text2html's convert_urls function and moved it to the block of other parsed regex in the module 2015-11-09 10:21:39 +01:00
Ahmed Charles
b9bdeb3e9c Replace filter with if/comprehension. 2015-11-09 10:11:34 +01:00
Ahmed Charles
be7035416c Cleanup int include. 2015-11-09 10:11:34 +01: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
bcd8674ef3 Use python3 range.
Including potential memory reduction due to not created unnecessary lists.
2015-11-02 11:47:07 +00:00
Ahmed Charles
c9404bfb51 Don't use long, since it doesn't exist in python3. 2015-11-02 00:19:04 +01:00
Ahmed Charles
11b61fe335 Import python3 compatible object. 2015-11-02 00:19:04 +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
c8fbd2860d Use logger rather than print for these messages. 2015-11-01 21:39:48 +01:00
Ahmed Charles
3357712103 Use logger rather than a custom implementation. 2015-11-01 20:27:49 +00:00
Ahmed Charles
99f0fec7cf Use comprehension rather than map. 2015-11-01 21:16:41 +01:00
Ahmed Charles
ecd68ccb7d Fix typo in comment. 2015-11-01 15:11:39 +01:00
Ahmed Charles
8a66fc40a9 Use with_metaclass from future.utils for python3 compat. 2015-11-01 15:11:12 +01:00
Griatch
23bfa1f84e Clarified some inlinefunc docs. 2015-10-20 23:49:48 +02:00
Griatch
c7e1a6a086 Resolved merge conflicts against master. 2015-10-20 00:07:39 +02:00
Ahmed Charles
f3498f480a If the option has a blank key and desc, do not show it.
Without this, it's impossible to have empty input go back to the current
node, without having an entry show up in the list. Trying to use
_default results in needed an additional node.
2015-10-19 23:32:13 +02:00
Ahmed Charles
9ecda0cd89 Change default formatting behaviors to functions.
Also add new functions to make it easy to get minimal changes.
2015-10-19 23:32:13 +02:00
Griatch
50371b6abd Merged conflicts. 2015-10-19 23:32:00 +02:00
Ahmed Charles
f890c8bddb Update logger docs. 2015-10-19 23:31:19 +02:00
Ahmed Charles
bc340fbf0d Remove commented out print statements. 2015-10-19 23:31:19 +02:00
Ahmed Charles
402cbed8fa Move to python3 style next. 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
b952a290b5 Fixed conflicts against master. 2015-10-18 12:43:43 +02:00
Griatch
940eb02064 Resolved an outstanding bug in _format_display. 2015-10-18 11:58:20 +02:00
Griatch
36337f9853 Extended evmenu with optional callbacks for node formatting. Replaces and Resolves #826. 2015-10-18 11:58:20 +02:00
Ahmed Charles
609b1777c7 Extend EvMenu test case.
There is now a custom look command, which was not possible with the
previous implementation which used execute_cmd('look'), because that
would infinitely recurse.
2015-10-18 11:58:20 +02:00
Ahmed Charles
a9f2e33394 Change running 'look' to just displaying the node text. 2015-10-18 11:58:20 +02:00
Ahmed Charles
6619949381 Add helper functions to EvMenu. 2015-10-18 11:58:20 +02:00
Ahmed Charles
bec6cb438f Make cmd_on_quit support function callbacks as well. 2015-10-18 11:58:20 +02:00
Ahmed Charles
848f329513 Add a handle method to react to user input. 2015-10-18 11:58:20 +02:00
Ahmed Charles
5fa9978e1a Make the EvMenu docs look a little cleaner. 2015-10-18 11:58:20 +02:00
Ahmed Charles
cba12699fd Fix typos in documentation. 2015-10-17 09:07:40 +02:00
Griatch
cd211d9901 Added a mention of the use of caller.ndb._menutree in the docs to EvMenu. 2015-10-17 09:05:49 +02:00
Griatch
0c7ee1bdfc Fixed a bug in search error reporting. Made accept to change a player's name. Closes PR: Resolves #820, Resolves #821, Resolves #822, Resolves #823. 2015-10-16 22:34:40 +02:00
Russell Jones
06c3dc0ed3 Run "futurize -1 -w -n ." 2015-10-01 20:00:28 +01:00
Griatch
d5f70b6524 Fixed a regression introduced in rev eb2bd8d that made the webclient fail when loading text2html. 2015-10-01 01:18:17 +02:00
Griatch
f73dc81274 This concludes the translation of Evennia's docstrings to Google style. This Resolves #709. 2015-09-27 20:24:03 +02: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
2743f98fb0 Removed SEARCH_AT_MULTIMATCH_INPUT and SEARCH_AT_MULTIMATCH_CMD settings and connected functions - these are no longer individually overloadable. SEARCH_AT_RESULT function now handles all error reporting. Also added SEARCH_MULTIMATCH_SEPARATOR to make it easy to replace the character used to separate multi-matches (1-box, 2-box is using '-' by default), in response to #795. Also moved the default SEARCH_AT_RESULT function from the cmdparser to evennia.utils.utils. 2015-09-27 13:05:29 +02:00