Griatch
69252340d9
Change move_to behavior when moving from None location. Before, this would force a source location (usually home) but this hides the actual source location, and a None-location has been handled by the announce hooks for some time. Resolves #1011 .
2016-08-07 19:57:13 +02:00
Griatch
b014df00de
Clairifed the docstring for object.search.
2016-06-22 13:50:07 +02:00
Griatch
15036e8069
Revert "Fix problem with trying to pass non-text to msg(text=...). Resolves #996."
...
This reverts commit 8fe631d808 .
2016-06-15 19:54:47 +02:00
Griatch
8fe631d808
Fix problem with trying to pass non-text to msg(text=...). Resolves #996 .
2016-06-15 08:11:00 +02:00
Griatch
4fafa22e86
Added some more doc texts to the puppet hooks of Objects to show how to get the player and sessions at that state. Resolves #992 .
2016-06-05 09:50:36 +02:00
Griatch
dcbf2ed9c1
Removed an erroneous text-conversion in msg() that made it impossible to add custom text outputcommands. Resolves #986 .
2016-06-01 23:23:27 +02:00
Griatch
b00e357868
Fixed a simple issue if non-text was fed into the msg() call from server-side. Resolves #965 .
2016-05-22 20:49:45 +02:00
Griatch
b69340695f
Made the move_to error report a little more verbose. Resolves #964 .
2016-05-22 20:49:45 +02:00
Griatch
68e5c4d283
Added a missing execute_cmd on the Session. It got lost after the inputfunc changes.
2016-05-22 20:49:44 +02:00
Griatch
02ba1c0695
Fixed a wrong return from search_player with quiet=True. Fixes a traceback when using the find command to search for a player *me or *self.
2016-05-22 20:49:43 +02:00
Griatch
143df2a793
Clarified the error when trying to examine an object on which you have neither examine, nor view permissions. Resolves #954 .
2016-05-22 20:49:43 +02:00
Griatch
4817ec90b3
Changed the OOB message structure to include sending text data as well; still not working fully.
2016-05-22 20:45:05 +02:00
Griatch
aa1fcfe6e1
Changed the @find pperm lock to perm, since the player will be checked automatically anyway and this works better with @quell.
2016-03-23 00:44:18 +01:00
Griatch
24c733f7cb
Made builders and above see #dbrefs in various admin commands.
2016-03-22 15:17:50 +01:00
Andrew Bastien
270037455a
Added connection_time and idle_time properties to DefaultCharacter class.
2016-03-13 04:59:57 -04:00
Kai Huang
882a70ae4b
Reverted incorrect internationalization in objects.py
2016-02-08 18:26:55 +01:00
Kai Huang
fd2f762730
Internationalization for comms and objects.
2016-02-08 18:26:55 +01:00
Griatch
0bf05a8795
Removed at_before_traverse hook completely since it was not used and also makes no sense to use due to how exits works. Overload at_traverse if wanting to tweak how traversal happens. Resolves #902 .
2016-01-20 18:58:41 +01:00
Griatch
03d415beb1
Fixed errors due to the removal of execute_cmd("look") calls in the
...
latest revisions - this turns out to bypass the normal use of cmdsets
to control things like the dark room in the tutorial. Resolves the
second mentioned error in #889 .
2015-12-15 19:26:42 +01:00
Ahmed Charles
76dc0545c4
Remove unused traceback imports.
2015-11-15 20:40:03 +00:00
Griatch
0a509470f7
Removed some debug info
2015-11-15 20:36:33 +01:00
Griatch
45f973fdb6
Made unittests work with changed Session apis. Resolves #808 .
2015-11-15 20:36:18 +01:00
Griatch
efefe3e5ff
First version of changed sessid->session change that starts properly. Not fully tested yet.
2015-11-14 21:43:58 +01:00
Griatch
709f5ff5b3
Reworked most of the system to use sessions directly instead of sessids by the introduction of on-object sessionhandlers. No debugging done yet.
2015-11-14 18:36:19 +01:00
Ahmed Charles
487fcdf873
Use list* from future.utils.
...
dict.keys() -> list(dict)
dict.values() -> listvalues(dict)
dict.tems() -> listitems(dict)
2015-11-09 10:23:00 +00:00
Ahmed Charles
11b61fe335
Import python3 compatible object.
2015-11-02 00:19:04 +01:00
Ahmed Charles
7645338218
Fix indentation.
2015-11-01 21:16:41 +01:00
Griatch
c58f858339
Reworked that look() methods on Players and Objects into at_look. They were also changed to accept pre-searched target objects rather than the command string. They also return a processed look string rather than sending it directly. The reason for this is that methods on the typeclass should not be handling command parsing - this should be the exclusive job of Command.parse in order to make command parsing completely contained withing one system. Likewise, it makes for more flexibility to not call self.msg() inside at_look but to let the outside caller do this explicitly - it might want to modify and append to the string before sending it off (something not used anywhere yet but which may be interesting). In order to correctly keep parsing entirely in the command body for the player, I made a custom parent for CmdOOCLook and CmdOOC, which does the parsing of the 'playable' characters already at the parse() step, storing the result in the .playable property on the (player-) command. This technique could probably be applied to other player commands looking up the _playable_characters Attribute, in order to centralize it.
2015-11-01 17:13:00 +01:00
Ahmed Charles
c51ccd5bc7
Typo in objects.py.
2015-11-01 15:24:40 +01:00
Ahmed Charles
caddb8b79b
Add look() on DefaultObject.
2015-11-01 15:11:39 +01:00
Ahmed Charles
53227cda3e
Add for_contents() which runs a function on an object's contents.
2015-11-01 15:11:12 +01:00
Ahmed Charles
8a66fc40a9
Use with_metaclass from future.utils for python3 compat.
2015-11-01 15:11:12 +01:00
Griatch
50371b6abd
Merged conflicts.
2015-10-19 23:32:00 +02:00
Ahmed Charles
48f1d0b26f
Remove commented out logger calls.
2015-10-19 23:31:19 +02:00
Ahmed Charles
bc340fbf0d
Remove commented out print statements.
2015-10-19 23:31:19 +02:00
Griatch
6a11da1714
A lingering wrong call to at_search_result that was missed in the previous changes. Resolves #813 .
2015-10-08 10:59:21 +02:00
Griatch
2743f98fb0
Removed SEARCH_AT_MULTIMATCH_INPUT and SEARCH_AT_MULTIMATCH_CMD settings and connected functions - these are no longer individually overloadable. SEARCH_AT_RESULT function now handles all error reporting. Also added SEARCH_MULTIMATCH_SEPARATOR to make it easy to replace the character used to separate multi-matches (1-box, 2-box is using '-' by default), in response to #795 . Also moved the default SEARCH_AT_RESULT function from the cmdparser to evennia.utils.utils.
2015-09-27 13:05:29 +02:00
Griatch
2442422f9e
Integrated rpsystem with rplanguage to a greater degree.
2015-09-26 18:56:14 +02:00
Griatch
1d17302d16
Refactoring to go with the fixed AMP structure and methods.
2015-09-21 16:50:05 +02:00
Griatch
d02b781be1
Time tracing setup for tracing the flow of data through AMP.
2015-09-17 21:56:14 +02:00
Griatch
9f16cee0d2
Made the default return_appearance use the get_display_name hook properly.
2015-09-02 19:16:16 +02:00
Jonathan Piacenti
462b73b626
Rename display_name and improve docstrings.
2015-06-20 16:31:36 -05:00
Jonathan Piacenti
1822b01086
Add display_name and disambiguation_tag for dynamic naming.
2015-06-20 15:42:39 -05:00
Griatch
9dcb97060d
Added the ability to spawn objects with Tags.
2015-06-20 00:31:13 +02:00
Griatch
8e134af019
API change: Added no_superuser_bypass kwarg to obj.access, channel.access and player.access methods, to make the call consistent with the full lockhandler.check call. This allows the cmdhandler to use access() to check the 'call' locktype and thus make it available for overloading if so desired. Resolves #752 .
2015-06-01 20:32:52 +02:00
Griatch
3410499313
Made the contents cache mechanism use the idmapper cache directly. This should hopefully avoid isses like #745 in the future.
2015-05-14 17:57:49 +02:00
Griatch
4a2d8f16e4
Clarified DefaultCharacter docstring. Resolves #738 .
2015-04-17 11:33:52 +02:00
Griatch
c713adfcb4
Merge branch 'Objects_Docstrings_Formatting' of https://github.com/tajmone/evennia into tajmone-Docstring_Typo
2015-04-17 11:30:48 +02:00
Griatch
bd021c346f
Merge branch 'Docstring_Typo' of https://github.com/tajmone/evennia into tajmone-Docstring_Typo
2015-04-17 11:29:35 +02:00
tajmone
b7ace5ce88
Formatted docstring in Google Style.
2015-04-07 17:54:56 +02:00