Commit graph

  • 82e57d4ada Fixed an API inconsistency in Attribute's PackedList/PackedDict. Resolves Issue 326. Griatch 2012-11-07 18:44:12 +01:00
  • 9f6e3de637 Various cleanups and fixes found during refurbishing the unittest framework (not pushed yet) Griatch 2012-11-05 00:55:25 +01:00
  • 6c20987d9a Added header as keyword to the utils.create.create_message function Griatch 2012-11-04 17:39:06 +01:00
  • 89d25f797e Fixed a bug in the previous commit. Griatch 2012-11-04 16:26:00 +01:00
  • f3b50a20a8 OBS:Run migrations! Changed the comms.Msg.db_title field to db_header to better reflect its use. Griatch 2012-11-04 15:37:06 +01:00
  • a4a50fdb87 Fixed a bug in comms' typeclass->dbobj conversion Griatch 2012-11-04 14:42:29 +01:00
  • 2d75648eb1 Updates to the comms system, following earlier changes. This means API changes to the channel.msg() method, but also a more consistent API for TempMsg constructs. Griatch 2012-11-04 14:35:34 +01:00
  • 5b8906e08a Added a trivial check for ImportErrors inside a module imported by utils.mod_import. Resolves Issue 319. Griatch 2012-11-03 20:47:55 +01:00
  • 8966f03713 Merge. Reworked the added Command.__ne__ operator a bit for a tiny speed optimization (it's after all one of the most called methods in Evennia). Griatch 2012-11-03 19:21:19 +01:00
  • b1f4d9ceaa Adds a __ne__ operator to Command. This is necessary for CmdSet.remove() to behave as expected. lagos 2012-11-02 15:08:59 -07:00
  • d2d9953f94 Cache changes: Moved all caches (except idmapper) to central caching module. This makes it easier to overview cache memory usage (and clean it) as well as plug-in external cache mechanisms. Griatch 2012-11-01 11:20:07 +01:00
  • 92f6b06626 Added new start/stop hooks to server. These are read differently depending on if the server is reloaded or reset/shutdown. OBS: If you have already implemented your own version of AT_STARTSTOP_MODULE, you need to add stubs for new hooks. You can find the required hooks in gamesrc/conf/examples/at_startstop.py. Griatch 2012-10-28 22:02:22 +01:00
  • b15d1fa683 Updated ReST documentation. Griatch 2012-10-28 16:39:18 +01:00
  • d885ef6ab3 Added tag to_bsd for changeset 93b0e58d2fc7 Griatch 2012-10-28 15:21:45 +01:00
  • 1cb579ba66 Changed Evennia from "Modified Artistic License" to the more permissive BSD license. Griatch 2012-10-28 15:21:26 +01:00
  • 20d6de5104 Made a better check for cleaning module names, should resolve Issue 319. Griatch 2012-10-28 14:38:17 +01:00
  • 52af816977 Added hooks at_access_success and at_access_failure to allow for custom messaging for certain lock errors. Resolves Issue 311. Griatch 2012-10-28 14:07:18 +01:00
  • ee7a175bf4 Fixed a bug in telnet protocol that stripped wrong characters at the end. Resolves Issue 318. Griatch 2012-10-28 10:37:14 +01:00
  • 58533165eb Merge. Griatch 2012-10-27 11:13:06 +02:00
  • 024aff8563 Changes the way that command sets are duplicated in a merge to be sure class attributes are propagated. lagos 2012-10-26 20:24:21 -07:00
  • ca8c73cc15 Changes the way command sets are duplicated to correctly copy over attributes. lagos 2012-10-26 20:10:54 -07:00
  • ec46465656 Implemented ansi-colour backgrounds in webclient. Added a new @color command for displaying colour spaces. Also changed a number of other features outlined in Issue 309. Griatch 2012-10-24 21:41:07 +02:00
  • e534d5f9a0 Made sure to kill color at the end of msg:es. This makes telnet/ssh consistent with webclient output. Griatch 2012-10-24 13:56:45 +02:00
  • 16d49e61d3 Added MessageMiddleware, which is required by the News site on the website. A Django 1.4 change? This was highlighted as part of Issue 249. Griatch 2012-10-24 00:18:09 +02:00
  • d4bf67e94e Removed <strong> conversion of multiple ansii highlights in the web client. It doesn't matter either way for me, and since it seems it does for others, I can just as well disable it so it all looks the same in webclient and telnet. This relates to one of the points in Issue 309. Griatch 2012-10-23 23:47:49 +02:00
  • 6a1f66d759 Fixed a bug in examine when examining Players. Griatch 2012-10-23 23:08:43 +02:00
  • 9abc25c53e Made @py cmd-echo verbatim. Resolves Issue 310. Griatch 2012-10-23 22:34:56 +02:00
  • ce036e07f3 Added the ability of obj.move_to to accept a None location with a keyword to_none. Also changed the @tel command to accept a /tonone switch for putting things' location to None. Resolves Issue 307. Griatch 2012-10-23 22:31:51 +02:00
  • fc4d7c92f9 Cleaned up the drop-command's error messages somewhat. Griatch 2012-10-23 20:39:59 +02:00
  • 87bfb97853 Rewrote the fuzzy-matching routine to correctly handle fuzzy, global searches on keys and aliases. Griatch 2012-10-23 20:29:03 +02:00
  • b26d93f86b Fixed some issues with the text2html converted that failed with colours in the web client. Griatch 2012-10-23 19:32:30 +02:00
  • 904884d4ed Fixes multiple issues with searching. lagos 2012-10-22 18:03:10 -07:00
  • c0a4f62e95 Some minor fixes. Griatch 2012-10-23 01:35:47 +02:00
  • 53c6e5ae52 Implemented a new way to handle colour-escaping as discussed in Issue 305. Thanks to MercuryZero for ideas on how to implement this! Resolves Issue 305. Griatch 2012-10-23 01:20:10 +02:00
  • 32b6becd33 Fixed a bug in lockhandler when entering a lock string containing upper-case AND/OR/NOT as part of a word (such as MAYOR). Thanks to lagos for suggesting the fix! Resolves Issue 303. Griatch 2012-10-21 23:52:54 +02:00
  • 3f01ab8006 Some minor fixes to the default @py output and also some more info to the extended_room contrib. Griatch 2012-10-20 21:04:00 +02:00
  • 86c5553208 Added msg- and data buffering to AMP protocol. This handles the rare cases when the AMP limit of 65535bytes/message becomes an issue (such as when viewing long lists or @py output. Test with @py self.msg("-"*65536). Resolves Issue 294. Griatch 2012-10-20 15:40:34 +02:00
  • 32b069c5fc Added the ability to store Sets in Attributes (using a PackedSet object type). Griatch 2012-10-20 12:10:03 +02:00
  • 54a92ffd8c Added checks to avoid the "ErrorCmdset" from being saved permanently in the database in some particular circumstances. Griatch 2012-10-20 09:47:02 +02:00
  • 21408c56cf Made the docstrings for objects' basetype_setup() more informative. Resolves Issue 302. Griatch 2012-10-20 09:33:40 +02:00
  • e03c303d5e Changed The way to escape %c-style colour codes from \\%c to %%c. No other changes or escaping done yet at this point. Griatch 2012-10-14 23:43:38 +02:00
  • c8ff1754fc Explicitly warning and disabling IPv6-format interfaces. It's coming in Twisted, but the exact status is a bit hard to determine - and it's definitely not available for only one older revision of Twisted. So disabling. We'll revisit this down the road when Twisted support is more prevalent. This closes Issue 260. Griatch 2012-10-14 22:32:05 +02:00
  • 0652b91a68 Fixed an error in TutorialWorld build script related to now requiring #dbid to refer to dbids. Griatch 2012-10-14 21:29:17 +02:00
  • 7997cf62e8 Added a more comprehensive recursive location-loop checker that shouldn't be too expensive. Thanks to rcaskey for bouncing ideas in IRC! Griatch 2012-10-14 21:24:58 +02:00
  • 7de8e3fa82 Ansi fix - changed so one needs \\ to escape mux-style colour codes instead of just \. The extended { syntax is now escaped by adding an extra { in front - combining the two should enable getting around most needs of colouring backslashes. Resolves Issue 286. Griatch 2012-10-14 20:49:26 +02:00
  • 67dc11849f Added a check for 1st level recursion of location. So self.location=self will no longer work. I did not add a full recursive check (it would need to go through all contents of the object and their contents etc) since this is expensive for something that should usually not be a common error. Further checks could be added higher up in the build commands if location-loops are considered a big problem. Resolves Issue 296. Griatch 2012-10-14 20:21:53 +02:00
  • 4830560ac5 Added better error checking for when trying to set an attribute on an object stored in an attribute but which after retrieved and cached was deleted. The fix doesn't fully fix the problem of stale caching but does give more information. Related to Issue 295. Also fixed a curiously phrased import. Griatch 2012-10-14 19:29:56 +02:00
  • af160c740e Added an extension to the "holds" lockfunc, to allow it to check attribute values of objects held by the accessing_object. Resolves Issue 281. Griatch 2012-10-14 17:43:09 +02:00
  • 09b4b69da9 Added MuxCommandOOX to ev.default_cmds. Resolves Issue 293. Griatch 2012-10-14 17:30:26 +02:00
  • c982cdbe3d Fixed a traceback when searching with the *-syntax and not finding a match. Resolves Issue 297. Griatch 2012-10-14 17:27:57 +02:00
  • 46ffd06c78 Followed the suggestion of making nicks set on Player be globally available (I liked this better than the old default behaviour). Changed for execute_cmd nick replacement ("inputline","channels") as well as for caller.search nick replamement ("player", "object"). A Character's nick overrule a same-named nick on the Player level, which sounds like the most expected behaviour. Resolves Issue 292. Griatch 2012-10-14 17:24:30 +02:00
  • 0cf3b42e14 Removed a hard-coded "nicks" alias from CmdNicks for easier overloading. Use nick/list to get the same functionality (or overload func to add it again). Resolves Issue 291. Griatch 2012-10-14 16:42:04 +02:00
  • 446dfe9509 Properly set the auto_help flag to False on Exit commands, so they don't show up in the help listings. Griatch 2012-10-14 16:37:36 +02:00
  • b5dd21864d Changed help category to be displayed with title() instead of with capitalize(). Resolves Issue 289. Griatch 2012-10-14 16:34:59 +02:00
  • 0141f94e9d Fixed a bug in obj.copy() that tried to access contents without properly initializing the typeclass. Resolves Issue 288. Griatch 2012-10-14 16:31:22 +02:00
  • 4dff822764 Fixed bug in @batchcommand (Resolves Issue 287). Also updated @dig to again handle deleting ranges of dbrefs (with or without # in front). Griatch 2012-10-14 16:24:21 +02:00
  • 86a44ab84d Made sure the cmd-classes for 'home' and '@home' were differently named, which messed up their appearance in ev. Resolves Issue 285. Griatch 2012-10-14 16:03:02 +02:00
  • cd5623a657 Changed settings_default to define DEFAULT_HOME as "#2" instead of just "2" to match the enforced way of using dbrefs. Griatch 2012-10-14 15:48:17 +02:00
  • 5b5328e6ca Changed default dbref search mechanic to require #N format and thus allow searching for objects named as integers (so "@create/drop 2" followed by 'look 2' will now work as expected instead of looking at the object with dbref=2). Doing "look #2" will now look at the object with dbref 2 (Limbo). Resolves Issue 284. Griatch 2012-10-14 15:45:21 +02:00
  • 31daf5b013 Added an extra check to make sure the 'candidates' keyword to ev.search_object always contain proper dbobjs and not typeclasses. Resolves Issue 280. Griatch 2012-10-14 13:25:25 +02:00
  • 99c2dda8dc Changed the way ExitCommands work by adding at_traverse() as a new hook to do the actual moving. This should allow for more flexibility in overloading new Exit typeclasses without having to re-implement the Exit Cmdset functionality more than necessary. By default the same error hooks are called wether the failure is due to a lock or some other error, this is (now) easy to modify as needed. Griatch 2012-10-14 13:11:13 +02:00
  • d80daccb70 lockhandler.get() returned on the wrong format. Now returns the lockstring as the API specifies. Resolves Issue 282. Griatch 2012-10-14 12:39:59 +02:00
  • 532cbc5fb6 Changed initial look command (at login) to be called from at_post_login hook instead of from the default connect command, supposedly making it easier for those only wanting to change this one line rather than having to re-target connect. The player.at_post_login now also calls look in case no character is defined, for the cases when logging in without having a character selected. Resolves Issue 277. Griatch 2012-10-14 12:28:01 +02:00
  • 97973dd5f9 Fixed erroneous global_search keyword in a few places in the code due to the API having changed. Resolves issue 276. Griatch 2012-10-14 12:06:42 +02:00
  • 8b582c9d3f Added a delay() function to src.utils.utils, useful for simple delays without needing a script. Griatch 2012-10-14 11:54:26 +02:00
  • 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. Griatch 2012-10-14 11:53:34 +02:00
  • 049cc84be7 Added a "replace" method to lockhandler, courtesy of patch by user Shell. Griatch 2012-09-30 17:37:05 +02:00
  • a4adc035f2 Last commit introduced a silly typo. Fixed. Griatch 2012-09-30 16:08:00 +02:00
  • 57de91a234 Added an AttributeError check in perm_above lockfunc, to catch instances of checking permissions before player logged in. Griatch 2012-09-30 16:01:21 +02:00
  • cdd24bd6f2 Fixed some leftover inconsistenciesin lockhandler, thanks to Shell pointing it out. Griatch 2012-09-30 15:42:30 +02:00
  • 0397c6ae51 More fiddling sith sphinx docs. Griatch 2012-09-30 11:07:00 +02:00
  • 8e574960b7 Moved docs/conf.py to the right place, not sure why it ended up where it was. Griatch 2012-09-30 10:54:30 +02:00
  • 52b72258d2 Some more feedback on rst-building errors (readthedocs) Griatch 2012-09-30 10:46:18 +02:00
  • 85952f8075 Updated ReST documentation. Griatch 2012-09-30 10:32:41 +02:00
  • 110207fd7f Also tweaked scripts- and player managers to handle id=0. Griatch 2012-09-29 17:12:16 +02:00
  • 33c15e99d2 Added a check to allow obj.search to also search for 0. Griatch 2012-09-29 16:24:47 +02:00
  • a347252407 Added the ability to clean the attribute_cache on a per-object bases using obj.flush_attr_cache(). Griatch 2012-09-29 16:02:43 +02:00
  • a8dcfff248 Fixing the strange edge-case of trying to define a command with the same alias being defined multiple times or aliases being the same as the command key. This is now excluded at the Command metaclass level. Griatch 2012-09-29 10:52:31 +02:00
  • f95198fbdb Merge commit. Resolvs Issue 273. Griatch 2012-09-29 10:05:59 +02:00
  • d32cf37820 ev was missing a line causing default admin commands to not be included. Resolves Issue 270. Griatch 2012-09-29 09:35:25 +02:00
  • 359ffdd28f Modifies cmdparser to not apply case-sensitive match filtering if it eliminate all results. lagos 2012-09-29 00:34:52 -07:00
  • 28912a4c99 CmdUnconnectedCreate() in unloggedin.py was setting default character descriptions after character hooks and so overwriting attempts to set desc elsewhere. Added check to see if new_player.db.desc is already set. Adam_ASE 2012-09-28 23:41:07 -04:00
  • 4944a589cc Cleaned up and fixed problems in searching by attribute-value. Resolves Issue 267. Griatch 2012-09-29 00:09:55 +02:00
  • 3c87b66624 Set AMP interface strings to listen to local interfaces only by default. Also added AMP_INTERFACE setting. Resolves Issue 257. Griatch 2012-09-28 22:40:12 +02:00
  • ed60c3046f Merging mainline changes. lagos 2012-09-28 00:25:53 -07:00
  • 9a3562148a Reverting indexing of objattribute.db_value; it is a highly db-incompatible change, and also lacking the possibility to create unique indices with unclear results. Griatch 2012-09-28 09:08:43 +02:00
  • fe54326d5f Merging mainline changes. lagos 2012-09-27 23:27:45 -07:00
  • 965be0a84f Fixes for Chrome clients of webclient. lagos 2012-09-27 23:16:09 -07:00
  • 5e8f077eb5 Fixes clobbering of 'path' argument. lagos 2012-09-27 16:50:11 -07:00
  • b0ac916b9a Obs-run migrations! Added an index to the ObjAttribute's values. Griatch 2012-09-28 00:14:29 +02:00
  • c819cdc2a6 Added a change to get_objs_with_attr_values that means simple python lookup values will be searched for directly in the database by pickling the input argument in the form used by Attributes. This should lead to a more efficient attrvalue lookup for larger databases (as long as value is a string, int or float and not a compound object, at which the lookup is continuously done in two steps filtering through the Attribute value mechanism. Griatch 2012-09-28 00:02:31 +02:00
  • 14cc2e0f97 Removed global search for setting @aliases. Resolves Issue 264. Griatch 2012-09-27 22:23:05 +02:00
  • 56c28f7e44 Fixed a strange typo in object-manager's get_attribute_with_value(). Also implemented a few further suggestions and fixes to object search. Griatch 2012-09-27 22:18:46 +02:00
  • 1b0544c261 Fixing tutorial world usage of search. Griatch 2012-09-27 21:36:20 +02:00
  • 59ccd3eb38 Fixed a bug in exact search pattern matching. Griatch 2012-09-27 21:29:01 +02:00
  • 60e3f5f172 Fix to @set reducing errors during building using strings without using quotes. Griatch 2012-09-27 21:02:43 +02:00
  • 0b102bb07b Fixed @batchcommand access, automatically disabling procpool under SQLite3. Griatch 2012-09-27 20:51:06 +02:00
  • bc4783efac Make procpool compatible with windows and OS X. lagos 2012-09-27 01:26:04 -07:00
  • b28d67534b Temporarily disabling procpool for @batchprocess to fix a traceback when building. Griatch 2012-09-26 08:34:54 +02:00
  • b2028511f5 Fixing a bug with not calling the disconnect hook when killing the client uncleanly. Resolves Issue 258. Thanks to user Zeta142125 for the help. Griatch 2012-09-25 07:53:11 +02:00