Commit graph

195 commits

Author SHA1 Message Date
Griatch
644cf9451f Removed deprecated non-nested {inlinefuncs, only accepting (). Changed the default name of the mygame/server/conf/inlinefunc.py to mygame/server/conf/inlinefuncs.py. Added deprecationwarning for the old name. 2016-05-22 20:49:45 +02:00
Griatch
6e606ae530 Fixed a bug when reporting multi-match errors in the default at_search_result with a particular input. Resolves #963. 2016-05-22 20:49:45 +02:00
Griatch
910d539d45 Made evmenu stop echoing 'None' when ending the menu with a None, None return from the node. 2016-05-22 20:49:45 +02:00
Griatch
8141935a9b Cleaned up docstrings for evmenu and eveditor. Also, rev 74a3395 referred to EvEditor, not EvMenu (both now support persistent saving) 2016-05-22 20:49:44 +02:00
Griatch
039eb8c824 Added proper error handling to evmenu when trying to use persistent mode with callables that cannot be pickled, such as methods and functions defined inside other functions. 2016-05-22 20:49:44 +02:00
Griatch
adc673f620 Added persistent option to EvMenu, making sure to safeguard against unsafe save states, which comes when trying to save un-picklable callables like methods and functions defined inside other functions. 2016-05-22 20:49:44 +02:00
Griatch
83242408b0 Gave EvMenu a 'persistent' option (False by default). This makes the menu survive a server reboot, including remembering its last node. Use with caution during debugging. Changed the EvMenu API so allow_exit is now auto_exit, which better describes its functionality. Also added auto_look and auto_help flags for turning off the respective automatic options (Resolves #949)." 2016-05-22 20:49:44 +02:00
Griatch
6b8b3907e3 Some typos in editor due to changes to how msg() works in wclient branch. 2016-05-22 20:49:44 +02:00
Griatch
c46e115901 Fixed a bug with html-output of the standard ANSI-backgrounds. 2016-05-22 20:49:43 +02:00
Griatch
509d03a3dc Added webclient-support for xterm256 colors, as mentioned in #613. 2016-05-22 20:49:43 +02:00
Griatch
f57aaa65cd Made the return of multimatch commands more easily parsable by using the query rather than the key. Resolves the second part of #933. 2016-05-22 20:45:43 +02:00
Griatch
08f34ae61b Made the multimatch error messages with the multimatch_string supplied more useful, addressing the first part of #933. 2016-05-22 20:45:43 +02:00
Griatch
fd50eaddba Fixed an error in channel.msg. Made sure to return a deferred from tail_log_file as its documentation suggests it should. 2016-05-22 20:45:42 +02:00
Griatch
4a58fcb9f1 Made the tail-viewing of a log-file threaded for maximum asynchronicity. 2016-05-22 20:45:42 +02:00
Griatch
5583a8d758 Made channels log to a log file by default. Added a default /history switch to the channel commands (for viewing past entries) and implemented a very efficient tail_log_file function to scan the log and display it. 2016-05-22 20:45:42 +02:00
Griatch
653a46b7ad Fixed EvMenu, it was not updated to self.caller from self._caller properly. 2016-05-22 20:45:42 +02:00
Griatch
899ce2f138 Extended dbserialize to safely serialize Session instances. Sessions can otherwise not be safely stored since they contain references to database objects (like puppets and players) 2016-05-22 20:45:41 +02:00
Griatch
76dc51f885 Changed EvMenu._caller to .caller to mark it public to use by external resources. 2016-05-22 20:45:41 +02:00
Griatch
287eb926f2 EvTable now accepts an input_parser argument for replacing the way user input is parsed in the menu. The formatters should now accept a keyword 'caller'. Also some internal methods like _display_node is now display_node to mark them as useful to the an external parser. 2016-05-22 20:45:41 +02:00
Griatch
8709ffefb8 Fixed a non-functioning MXP call using the |-style format. 2016-05-22 20:45:41 +02:00
Griatch
5f0ba55ce1 Fixed color display of xterm256 with the xterm256 support turned off. 2016-05-22 20:45:41 +02:00
Griatch
8090d92d85 MonitorHandler implemented as a replacement for the OOBHandler monitor functionality, as per #924. 2016-05-22 20:45:39 +02:00
Griatch
6782ff1333 Made the default_settings file itself detect GAME_DIR, leading to a lot less cookie cutter in the gamedir/server/conf/settings.py file. Refactored the detection algorithm also in the launcher. 2016-05-22 20:45:39 +02:00
Griatch
83570848d6 Made all unittests pass again. 2016-05-22 20:45:38 +02:00
Griatch
323a353ec3 Fixed a regression in the changes made to all_from_module that caused evform to fail. 2016-05-22 20:45:38 +02:00
Griatch
4ab049709d Changed inputhandler/oochandler to monitorhandler and made inputhandler_funcs into just inputfuncs.py 2016-05-22 20:45:06 +02:00
Griatch
8448b513e1 Converted msg-arguments to options 2016-05-22 20:45:06 +02:00
Griatch
96ace8c75f Starting to clean up and debug the server-side infrastructure 2016-05-22 20:45:05 +02:00
Griatch
d966051558 Changing utils.all_from_module to really only load variables actually
defined in the module in question (so will no longer include imports
from other modules). Added utils.callables_from_module to handle the
common case of only wanting callable functions from a module (used by
lock funcs, inlinefuncs etc).
2016-05-22 20:45:05 +02:00
Griatch
0248a3ba1b Fixed a documentation error in string_suggestions 2016-04-05 14:56:42 +02:00
CloudKeeper1
23dbdb4570 Update utils.py
Changes only effect time_format.
Line 302 - Removed seconds_str. Superfluous.
Line 303 - Provides minutes_str a default value which remains if value is below lowest descriptor. Previously if seconds was below a minute style 2 would return absolutely nothing.
2016-03-27 15:35:54 +02:00
Griatch
d6c649f551 Removed subfieldbase and use from_db_value as recommended by django deprecation info. 2016-02-19 22:58:52 +01:00
Griatch
c0537fe456 Changed the deprecated get_field_by_name to just get_field. 2016-02-19 22:31:42 +01:00
Griatch
5a9cf29f45 Fixed deprecation warnings for future django1.10. 2016-02-19 21:07:25 +01:00
Griatch
e6a866a150 Made Evennia run with Django 1.9 2016-02-18 10:12:42 +01:00
Griatch
e80ad9fd18 Fixed dbserialize pickle processor typo 2016-02-06 21:56:26 +01:00
Griatch
483263dda1 Made EvTable handle data entries with completely empty cells. Resolves #917. 2016-01-20 19:52:53 +01:00
Griatch
8d672a8e9d Updated the docstring for utils.delay since it can also accept a float as well as an int. 2016-01-16 16:36:51 +01:00
Russell Jones
27549eca2e Use 2/3 raise_() from future.utils 2015-12-20 14:14:02 +00:00
Griatch
f10f4ddc98 Made EvMenu correctly handle being called from a ServerSession. 2015-12-19 19:13:29 +01:00
Griatch
f87d07b775 Added to TypedObject's get() manager method, since without it, Q-objects didn't work correctly. 2015-12-01 12:24:09 +01:00
Griatch
c7b26ff6a6 Handling ansi-escaping of || in EvForm, since ansi-parsing gets called twice, this needs some extra care. Resolves #888. 2015-11-29 23:50:45 +01:00
Griatch
9587f400ac Fixed an escaping issue for nested inlinefuncs. 2015-11-29 18:26:19 +01:00
Griatch
0c08f7c550 Re-added some characters that would be affected by inlinefunc nesting. 2015-11-29 12:04:10 +01:00
Griatch
7de036c1d9 Merged nested inlinefuncs from the dev branch. Added |-style ansi-markers. Resolves #818. 2015-11-28 20:30:01 +01:00
Griatch
492e2e2411 Put back standard {-style ansi background colors that were accidentally removed. 2015-11-28 18:25:05 +01:00
Griatch
f7083b2d5d Further cleanup and source formatting. 2015-11-28 18:25:05 +01:00
Griatch
d41b1437f2 Some further cleanup. 2015-11-28 18:25:05 +01:00
Griatch
786edf4677 Fixed some errors in crop inlinefunction. Coloration does not work in nested inlinefunc outside of escaped strings ... not sure if this something worth to try to resolve or if an escaped string is just the right way to have them. 2015-11-28 18:25:05 +01:00
Griatch
419ff1cc79 Added |-style color markings (in parallel with {-style ones) as per #818 as a test for public review. 2015-11-28 18:25:05 +01:00