Commit graph

1205 commits

Author SHA1 Message Date
Griatch
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. 2012-10-24 00:18:09 +02:00
Griatch
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. 2012-10-23 23:47:49 +02:00
Griatch
6a1f66d759 Fixed a bug in examine when examining Players. 2012-10-23 23:08:43 +02:00
Griatch
9abc25c53e Made @py cmd-echo verbatim. Resolves Issue 310. 2012-10-23 22:34:56 +02:00
Griatch
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. 2012-10-23 22:31:51 +02:00
Griatch
fc4d7c92f9 Cleaned up the drop-command's error messages somewhat. 2012-10-23 20:39:59 +02:00
Griatch
87bfb97853 Rewrote the fuzzy-matching routine to correctly handle fuzzy, global searches on keys and aliases. 2012-10-23 20:29:03 +02:00
Griatch
b26d93f86b Fixed some issues with the text2html converted that failed with colours in the web client. 2012-10-23 19:32:30 +02:00
lagos
904884d4ed Fixes multiple issues with searching.
* dbref now respect candidate lists. Previously a dbref match would ignore
  candidates which permitted you to drop any object from anywhere by specifying
  a dbref.
* If candidates is [], we now return right away. Without this, a candidate list
  of [] would not filter out anything because short circuiting like:
  cand_restriction = candidates and Q(pk__in=candidates_id) or Q()
  will use Q() (what we really want is nothing to match). This would permit you
  to drop any object you can refer by nick or name if your inventory was empty.
* Minor fix of 'ret_index' for typo'ed 'reg_index'.
2012-10-22 18:03:10 -07:00
Griatch
c0a4f62e95 Some minor fixes. 2012-10-23 01:35:47 +02:00
Griatch
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. 2012-10-23 01:20:10 +02:00
Griatch
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. 2012-10-21 23:52:54 +02:00
Griatch
3f01ab8006 Some minor fixes to the default @py output and also some more info to the extended_room contrib. 2012-10-20 21:04:00 +02:00
Griatch
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. 2012-10-20 15:40:34 +02:00
Griatch
32b069c5fc Added the ability to store Sets in Attributes (using a PackedSet object type). 2012-10-20 12:10:03 +02:00
Griatch
54a92ffd8c Added checks to avoid the "ErrorCmdset" from being saved permanently in the database in some particular circumstances. 2012-10-20 09:47:02 +02:00
Griatch
21408c56cf Made the docstrings for objects' basetype_setup() more informative. Resolves Issue 302. 2012-10-20 09:33:40 +02:00
Griatch
e03c303d5e Changed The way to escape %c-style colour codes from \\%c to %%c. No other changes or escaping done yet at this point. 2012-10-14 23:43:38 +02:00
Griatch
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. 2012-10-14 22:32:05 +02:00
Griatch
0652b91a68 Fixed an error in TutorialWorld build script related to now requiring #dbid to refer to dbids. 2012-10-14 21:29:17 +02:00
Griatch
7997cf62e8 Added a more comprehensive recursive location-loop checker that shouldn't be too expensive. Thanks to rcaskey for bouncing ideas in IRC! 2012-10-14 21:24:58 +02:00
Griatch
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. 2012-10-14 20:49:26 +02:00
Griatch
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. 2012-10-14 20:21:53 +02:00
Griatch
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.
2012-10-14 19:29:56 +02:00
Griatch
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. 2012-10-14 17:43:09 +02:00
Griatch
09b4b69da9 Added MuxCommandOOX to ev.default_cmds. Resolves Issue 293. 2012-10-14 17:30:26 +02:00
Griatch
c982cdbe3d Fixed a traceback when searching with the *-syntax and not finding a match. Resolves Issue 297. 2012-10-14 17:27:57 +02:00
Griatch
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. 2012-10-14 17:24:30 +02:00
Griatch
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. 2012-10-14 16:42:04 +02:00
Griatch
446dfe9509 Properly set the auto_help flag to False on Exit commands, so they don't show up in the help listings. 2012-10-14 16:37:36 +02:00
Griatch
b5dd21864d Changed help category to be displayed with title() instead of with capitalize(). Resolves Issue 289. 2012-10-14 16:34:59 +02:00
Griatch
0141f94e9d Fixed a bug in obj.copy() that tried to access contents without properly initializing the typeclass. Resolves Issue 288. 2012-10-14 16:31:22 +02: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
86a44ab84d Made sure the cmd-classes for 'home' and '@home' were differently named, which messed up their appearance in ev. Resolves Issue 285. 2012-10-14 16:03:02 +02:00
Griatch
cd5623a657 Changed settings_default to define DEFAULT_HOME as "#2" instead of just "2" to match the enforced way of using dbrefs. 2012-10-14 15:48:17 +02:00
Griatch
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. 2012-10-14 15:45:21 +02:00
Griatch
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. 2012-10-14 13:25:25 +02:00
Griatch
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. 2012-10-14 13:11:13 +02:00
Griatch
d80daccb70 lockhandler.get() returned on the wrong format. Now returns the lockstring as the API specifies. Resolves Issue 282. 2012-10-14 12:39:59 +02:00
Griatch
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. 2012-10-14 12:28:01 +02:00
Griatch
97973dd5f9 Fixed erroneous global_search keyword in a few places in the code due to the API having changed. Resolves issue 276. 2012-10-14 12:06:42 +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
049cc84be7 Added a "replace" method to lockhandler, courtesy of patch by user Shell. 2012-09-30 17:37:05 +02:00
Griatch
a4adc035f2 Last commit introduced a silly typo. Fixed. 2012-09-30 16:08:00 +02:00
Griatch
57de91a234 Added an AttributeError check in perm_above lockfunc, to catch instances of checking permissions before player logged in. 2012-09-30 16:01:21 +02:00
Griatch
cdd24bd6f2 Fixed some leftover inconsistenciesin lockhandler, thanks to Shell pointing it out. 2012-09-30 15:42:30 +02:00
Griatch
0397c6ae51 More fiddling sith sphinx docs. 2012-09-30 11:07:00 +02:00
Griatch
8e574960b7 Moved docs/conf.py to the right place, not sure why it ended up where it was. 2012-09-30 10:54:30 +02:00
Griatch
52b72258d2 Some more feedback on rst-building errors (readthedocs) 2012-09-30 10:46:18 +02:00