Commit graph

105 commits

Author SHA1 Message Date
Griatch
ffa90e1a03 Removed clearing of extended 127-159 range, as per #551. 2014-08-21 22:49:52 +02:00
Griatch
6ae2ca6901 Moved escape mechanism to a central location in serversessionhandler. 2014-08-21 09:13:53 +02:00
Griatch
4e2dfef321 Added escaping of unicode text input of ASCII control characters and extended characters as per #551. 2014-08-21 08:53:01 +02:00
Griatch
5750f407df Clarified output of utils.string_from_module. See #541. 2014-08-15 23:40:16 +02:00
Griatch
e6950aadf2 Changed how lazy-loading of handlers work, using a werkzeug recipe. Much more efficient now. 2014-07-06 13:10:03 +02:00
Griatch
221d56fecd Made the spawner more streamlined, and allowed the @spawn command to access prototypes in a file specified by the optional PROTOTYPE_MODULES setting. 2014-07-01 04:04:54 +02:00
Griatch
e7e50039d7 Added deepsize function for size evaluation of object and its referends 2014-05-15 21:27:30 +02:00
Griatch
63c099c22f Various fixes and debugging of weak-ref changes 2014-05-10 19:38:23 +02:00
Griatch
0030530021 Added weak reverse references from all handlers. 2014-05-10 17:12:49 +02:00
Griatch
4e3789cede Added lazy-loading of on-model handlers. 2014-05-10 13:31:50 +02:00
asechrest
11ea572f00 Added unittests for utils.py dedent() and list_to_string(). Adjusted list_to_string to correctly handle no endsep. 2014-05-06 12:34:08 -04:00
Griatch
12c2402dac Changed crop functionality slightly, inspired by asechrest's unittest. 2014-05-05 09:19:03 +02:00
Griatch
e399c418e5 Some more cleanup of paths for batchprocessors 2014-04-21 01:06:37 +02:00
Griatch
37a1d86659 Fixed an error in random_string_from_module that was introduced last update. 2014-04-07 08:07:52 +02:00
Griatch
87d621bcbc Changed variable_from_module to no longer return a random entry but all variables from a module. Added random_string_from_module to support the CONNECTION_SCREEN. Also fixed a bug in the connection_screen handling that occationally (randomly) would return an empty entry. 2014-04-06 09:40:05 +02:00
Griatch
6ea4125ef1 Removed func_parts looping from cmdhandler - it didn't work as expected, as shown in #438. Instead reworked utils.delay() to implement the same functionality explicitly. 2014-02-15 23:33:19 +01:00
Griatch
6198e59f04 Made version string more terse by using the short hash instead of the full one. 2014-02-15 16:58:14 +01:00
Griatch
19cf91f18f Upped south requirement to 0.8.4 since there have been reports of problems with 0.8.2 and 0.8.3. 2014-01-30 18:58:13 +01:00
Griatch
443a29d63f Removed version-check that required hg. 2014-01-23 01:17:39 +01:00
Griatch
2db2141b90 Fixed a case of _EmptyCmdSet being named just EmptyCmdSet in call. 2014-01-18 22:12:23 +01:00
Griatch
0f7c8bb4b1 Cleaned up and added more features to the dependency checker. 2013-12-02 11:56:56 +01:00
Griatch
d76ebfcffa Upped the requirement checks as per the release notes. 2013-12-02 11:22:03 +01:00
Griatch
e9e2c78eef Refactored amp.py to more cleanly splitting long AMP messages also during server sync (this could cause errors with a large number of connected players). Also fixed an issue with the lockstring get:all() being set by @create despite it not needing to (overloading changes in the typeclass). 2013-11-27 16:57:41 +01:00
Griatch
1ae17bcbe4 PEP8 cleanup of the entire codebase. Unchanged are many cases of too-long lines, partly because of the rewrite they would require but also because splitting many lines up would make the code harder to read. Also the third-party libraries (idmapper, prettytable etc) were not cleaned. 2013-11-14 19:31:17 +01:00
Griatch
2e2c2fd484 Fixed a bug in run_async. Resolves Issue 407. 2013-11-12 17:37:04 +01:00
Griatch
55423f6a2f Fixed a ZeroDivionError by adjusting what is returned by aliashandler.all() when no aliases are given ([] instead of ['']). Also made sure src.utils.stringsuggestions() don't crash in such a situation. 2013-10-18 16:15:51 +02:00
Griatch
bdcc8de5bc OOB MSDP working with direct sending of data from various parts of the system. Tracking as well as support for the default MSDP commands (LIST, REPORT etc) are not yet tested/implemented. 2013-10-15 20:00:18 +02:00
Griatch
07b1e40299 Changing and testing things with oobhandler, not working yet. 2013-09-07 15:01:41 +02:00
Griatch
033344ad2c Moved get_evennia_pids into src.utils.utils for more general access. 2013-07-10 11:06:38 +02:00
Griatch
7351aacba5 Fixed an issue with setting location. Still errors with creating new objects. 2013-06-05 18:47:41 +02:00
Griatch
76fa0059ea First preparations for moving webserver to Server process. 2013-05-22 18:18:50 +02:00
Griatch
68e4384761 Some minor fixes to debug output. 2013-05-12 20:28:30 +02:00
Griatch
8720df5b49 Merge. 2013-04-15 00:12:00 +02:00
Griatch
80a6745a1e Made Attribute value queries also work with database objects by overloading the Attribute manager methods in question. Added procpool support for the new serializer functions and cleaned up some things. 2013-04-14 16:36:44 +02:00
Griatch
75341ade6f A first test using PickledObjectField and a rewritten dbserialize module to store Attributes. No migrations set up yet. 2013-04-13 15:15:02 +02:00
Griatch
8969017aaa Added prettytable (http://code.google.com/p/prettytable/) as a replacement for utils.format_table and updated almost all places where the old formatter was used. The code becomes much simpler and shorter with prettytable, there are some situations, such as the contrib/menusystem where the old format_table works well for dynamically creating any number of columns and rows on the fly. 2013-04-12 22:06:41 +02:00
Griatch
cfc575f360 Added check for django 1.4+ to upstart checks. 2013-03-24 11:04:27 +01:00
Griatch
406800f254 Merge. 2013-03-09 12:16:50 +01:00
Griatch
0121f36ac0 Added cmd.funcpart as a way of adding multiple-part commands, each with a possibility to yield with a deferred. This allows for flexible implementation of delayed commands and other asynchronous goodies. 2013-02-19 23:30:33 +01:00
Griatch
db8af97ab2 Fixed player creation, removing FIRST_LOGIN flag on character (keeping it on player) 2013-02-14 18:09:59 +01:00
Griatch
c615693a2a Added a give command to the default command set. As part of this also fixed some bugs in how object typeclasses were compared. 2012-12-08 17:11:22 +01:00
Griatch
28c625c12c Re-activated connect-channel again, called from hooks. Fixed some bugs and minor things to give more control over how messages sent to channels are handled. 2012-11-13 21:24:05 +01:00
Griatch
5b8906e08a Added a trivial check for ImportErrors inside a module imported by utils.mod_import. Resolves Issue 319. 2012-11-03 20:47:55 +01:00
Griatch
20d6de5104 Made a better check for cleaning module names, should resolve Issue 319. 2012-10-28 14:38:17 +01:00
Griatch
4dff822764 Fixed bug in @batchcommand (Resolves Issue 287). Also updated @dig to again handle deleting ranges of dbrefs (with or without # in front). 2012-10-14 16:24:21 +02:00
Griatch
8b582c9d3f Added a delay() function to src.utils.utils, useful for simple delays without needing a script. 2012-10-14 11:54:26 +02:00
Griatch
592bc26b99 Added remote function call abilities to AMP protocol, courtesy of patch by user Shell.
This allows for Server to call functions on Portal and vice-versa. Some rewrites and
cleanup done before applying /Griatch.
2012-10-14 11:53:34 +02:00
Griatch
0b102bb07b Fixed @batchcommand access, automatically disabling procpool under SQLite3. 2012-09-27 20:51:06 +02:00
Griatch
93d95377ce Shifting ProcPool out of src and into a contrib, using the service plugin system. 2012-09-22 20:40:30 +02:00
Griatch
0dae03156c Some optimizations, cleanup and a few bugfixes. Just changing a spurious property retrieval in the typeclass removed an extra, pointless database query. 2012-09-18 01:03:35 +02:00