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
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
110207fd7f
Also tweaked scripts- and player managers to handle id=0.
2012-09-29 17:12:16 +02:00
Griatch
33c15e99d2
Added a check to allow obj.search to also search for 0.
2012-09-29 16:24:47 +02:00
Griatch
a347252407
Added the ability to clean the attribute_cache on a per-object bases using obj.flush_attr_cache().
2012-09-29 16:02:43 +02:00
Griatch
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.
2012-09-29 10:52:31 +02:00
Griatch
f95198fbdb
Merge commit. Resolvs Issue 273.
2012-09-29 10:05:59 +02:00
lagos
359ffdd28f
Modifies cmdparser to not apply case-sensitive match filtering if it eliminate all results.
2012-09-29 00:34:52 -07:00
Adam_ASE
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.
2012-09-28 23:41:07 -04:00
Griatch
4944a589cc
Cleaned up and fixed problems in searching by attribute-value. Resolves Issue 267.
2012-09-29 00:09:55 +02:00
Griatch
3c87b66624
Set AMP interface strings to listen to local interfaces only by default. Also added AMP_INTERFACE setting. Resolves Issue 257.
2012-09-28 22:40:12 +02:00
lagos
ed60c3046f
Merging mainline changes.
2012-09-28 00:25:53 -07:00
Griatch
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.
2012-09-28 09:08:43 +02:00
lagos
fe54326d5f
Merging mainline changes.
2012-09-27 23:27:45 -07:00
lagos
965be0a84f
Fixes for Chrome clients of webclient.
...
webclient.py now maintains a mapping of suid->single request as opposed to a mapp of
suid->list of requests. Since the evennia_webclient.js client only has one valid
request outstanding at all times, this should be safe.
2012-09-27 23:16:09 -07:00
Griatch
b0ac916b9a
Obs-run migrations! Added an index to the ObjAttribute's values.
2012-09-28 00:14:29 +02:00
Griatch
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.
2012-09-28 00:02:31 +02:00
Griatch
14cc2e0f97
Removed global search for setting @aliases. Resolves Issue 264.
2012-09-27 22:23:05 +02:00
Griatch
56c28f7e44
Fixed a strange typo in object-manager's get_attribute_with_value(). Also implemented a few further suggestions and fixes to object search.
2012-09-27 22:18:46 +02:00
Griatch
59ccd3eb38
Fixed a bug in exact search pattern matching.
2012-09-27 21:29:01 +02:00
Griatch
60e3f5f172
Fix to @set reducing errors during building using strings without using quotes.
2012-09-27 21:02:43 +02:00
Griatch
0b102bb07b
Fixed @batchcommand access, automatically disabling procpool under SQLite3.
2012-09-27 20:51:06 +02:00
Griatch
b28d67534b
Temporarily disabling procpool for @batchprocess to fix a traceback when building.
2012-09-26 08:34:54 +02:00
Griatch
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.
2012-09-25 07:53:11 +02:00
Griatch
7d4bf6c8d2
Fixes a bug in scriptmanager. Resolves Issue 259.
2012-09-25 07:42:52 +02:00
Griatch
d535d77811
Restructed terminal output from Server and Portal to allow external plugin-services to cleanly add their info at startup.
2012-09-22 23:18:29 +02:00
Griatch
a30029472b
Fixes @set to be more accepting of various Python structures. It will now instead convert to string on a ValueError (commonly because a string was not enclosed in quotes) while giving a error string to the user informing of this. This should fix Issue 256.
2012-09-22 22:16:30 +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