Commit graph

229 commits

Author SHA1 Message Date
Griatch
6fbdc88a27 Fix webclient ANSI background handling. Made bright ANSI backgrounds visible in color command. Resolves #1001. 2016-08-28 19:31:19 +02:00
Griatch
4e9c8aecec Fix webclient to handle changed xterm256 formula correctly. 2016-08-28 17:52:24 +02:00
Griatch
668029e82e Changed xterm256 formatting to work with Potato. Also added Potato as a TTYPE exception since the client doesn't report itself correctly. 2016-08-28 16:36:44 +02:00
Griatch
9ec875f29c Add justify(text,width,align,indent) function to utils. Supports full-,left-,right- and center justification of text to any width. It also has an option to add left-side indentation to the text block. 2016-08-26 01:04:23 +02:00
Griatch
ecb7d6fcc5 Change utils.wrap() to indent on all lines, not only the lines following the first. If someone remembers why this default was set, do report it. 2016-08-25 18:36:21 +02:00
Griatch
7285cab2db Refactor batchcode processor to be more stable. Did multiple clean-ups. Implements #939. Fixes #909. Fixes #937. 2016-08-24 23:44:29 +02:00
Griatch
6c34cb40ed Update pypath_to_abspath to make batchfile file lookups much more reliable. This is done as part of the batchprocess refactor #939. 2016-08-24 20:37:11 +02:00
Griatch
89568b5277 Add 'exec' argument to spawner prototype for running arbitrary code as part of object creation. Make all prototype keys also settable with a callable. 2016-08-21 23:03:42 +02:00
Griatch
49087b50d1 Allow multi-character keys for EvForm cells and tables. This was due to a too restrictive regex. Resolves #1014. 2016-08-20 11:41:53 +02:00
Griatch
9da1051f83 Fix a bug in to_str() that caused it to not actually try alternative encodings when converting. 2016-08-17 18:37:31 +02:00
Griatch
8b6891428f Add an extra layer of encoding recovery when sending data to sessions, as per #800. 2016-08-17 12:30:44 +02:00
Griatch
818b8a9c51 Added desc kwarg to create_script to allow setting of desc at runtime. 2016-08-07 12:23:57 +02:00
Griatch
96542418c0 Made sure that the various _SaverMutable objects evaluate to False when they are empty. 2016-06-26 11:56:58 +02:00
Griatch
b1de659e8b Migrate! Add nick-templating system, first version. This allows arg templating of nicks to allow a user to completely redefine how they enter commands. Still some bugs. 2016-06-25 23:23:13 +02:00
Griatch
c15f107ad9 Add webclient support for blink, underline and inverse ANSI tags. The inverse tag will produce a dotted outline in the webclient; for now this seems to be no obvious way to inverse the background in a way similar to the terminal inverse. Resolves #976. 2016-06-24 23:22:38 +02:00
Griatch
418395bd01 Added \| to the rest regex for nested inlinefuncs. Resolves #989. 2016-06-24 18:38:23 +02:00
Griatch
03ef093d36 Resolves problems in storing/restoring tickerhandler keys. Resolves #997. 2016-06-24 18:15:01 +02:00
Griatch
ddd9387777 Fixed a traceback in SEARCH_AT_RESULT when getting multi-matches for commands. 2016-06-15 21:51:43 +02:00
Griatch
6a160b4204 Fix how the lock command returns strings to avoid a malformed AMP send. This (again fixes ##996. 2016-06-15 21:33:05 +02:00
Griatch
bdcc093c23 Make tickerhandler correctly clean subs to deleted objs.
Also makes the dbunserialize mechanism a little more robust, making it return None instead of crashing when unpacking an invalid packed-tuple.
2016-06-14 22:04:41 +02:00
George Oliver
36c938b06a changed string to add newlines upon insert of batchcommand file fixes #984 2016-06-12 12:13:47 +02:00
Griatch
e0d4f6a6c3 Fixed a bug in channelhandler if the channel had no desc. 2016-06-04 19:41:17 +02:00
Griatch
730d08e790 Fixed a bug in obj_from_dbid (obj_from_dbref). Resolves #980. 2016-06-01 23:09:33 +02:00
Griatch
81170b69d0 Added validationMade() to websocket protocol, to be able to parse the
incoming host information at connection (for getting the browser
session id directly from the path as ws://.../?csessid).
2016-05-31 15:36:48 +02:00
Griatch
ecf6852d46 Made EvCels auto-close colors rather than bleed over. This is necessary to avoid accidental color clashes in tables that fill the cells to a |-border edge (particularly for EvForm. 2016-05-23 23:56:44 +02:00
Griatch
f99ee27382 Removed some test data. 2016-05-22 20:49:46 +02:00
Griatch
8b5c135d01 Changed how xterm256->HTML regexes are compiled at start-time; the regex compilation previously caused a startup delay of up to 15 seconds. After the rework, this time is down to 0.004 seconds. 2016-05-22 20:49:46 +02:00
Griatch
089235e2ec Fixed the ajax websocket send of prompts, which should resolve #973. 2016-05-22 20:49:46 +02:00
Sina Mashek
7e3bc95c4c Removed 'self' from _get_mysql_db_version() 2016-05-22 20:49:45 +02:00
Griatch
fc08fc0970 Updated evmenu to use the |-form of mxp links. 2016-05-22 20:49:45 +02:00
Griatch
c18577d772 Updated mxp unittests to pass again. 2016-05-22 20:49:45 +02:00
Griatch
9485e2aefe Re-added MXP-link support to the devel webclient. 2016-05-22 20:49:45 +02:00
Griatch
8f12dd83a3 Fixed an error in the MXP implementation and also removed the deprecated {-form for MXP. Resolves #966. 2016-05-22 20:49:45 +02:00
Griatch
01c6cbf5f0 Made the inlinefunc->inlinefuncs error appear in a safer location since it could fall away in some common situations. 2016-05-22 20:49:45 +02:00
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