Tehom
7e8e47b3b3
Fix attribute name to resolve recursion error in _recache method.
2017-04-20 14:14:00 -04:00
BlauFeuer
7010f998f1
Fold long lines, PEP 8, comparision to None
...
+Indent, comment and typo edits
2017-04-01 14:55:02 +02:00
BlauFeuer
684f163fd7
Fold long lines, PEP 8 whitespace
...
Keeping lines under 120 characters long, adjusting whitepace for closer PEP 8 compliance.
2017-04-01 14:51:25 +02:00
Griatch
c62f701626
Remove an extra quote marker typo.
2017-04-01 14:44:46 +02:00
BlauFeuer
3fdd7e0907
PEP 8, whitespace, LGTM, typo fixes
2017-04-01 14:44:46 +02:00
BlauFeuer
6133280154
Explict bool return for move_to, typo fix
2017-03-30 01:27:34 -04:00
Vincent Le Goff
3811c074c6
Replace {character} by {object} in mapping of announce_move_*
2017-03-29 22:11:25 +02:00
Vincent Le Goff
f1d34a28aa
Add additional mapping to announce_move_* hooks
2017-03-29 22:11:25 +02:00
Vincent Le Goff
4f41582127
Update Object.announce_move_* to take advantage of mapping
2017-03-29 22:11:25 +02:00
Griatch
d811d7577e
Fix unittest compliance.
2017-03-29 22:00:27 +02:00
Griatch
f6e230f1a6
Change text optional kwarg type name to lowercase to match all other communications variables. Expand msg_contents to handle a tuple.
2017-03-29 21:50:51 +02:00
Griatch
6266401c2d
Re-add bool return name, it is required by API generator.
2017-03-25 11:40:55 +01:00
BlauFeuer
338899b8b1
Docstring, comments, indent/whitespace edits
2017-03-25 11:38:47 +01:00
Griatch
c4519d84e7
Remove spurious whitespace.
2017-03-25 10:01:56 +01:00
BattleJenkins
4e25c93888
Added at_give() hook to default object
...
Added another hook to the default object, at_give(), which will be called by the default give command.
2017-03-25 10:01:56 +01:00
Griatch
357e829d4e
Make at_get_cmdset get receive a parallel kwarg.
2017-03-01 15:20:30 +01:00
Griatch
a0b1a0cac1
Add unittests for simpledoor and slow_exit contribs, as per #1105 .
2017-02-19 21:06:03 +01:00
Griatch
664ce178b2
Expanded docstring of at_object_receive to note the possibility.
2017-02-04 11:23:19 +01:00
BlauFeuer
3334d3f078
character's at_pre_puppet tweak
...
Triggering at_object_receive only when room actually receives character
and accurately reporting that character came from None seems most reasonable,
then at_object_receive can decide if appearance of character from None location is actionable.
2017-02-04 11:23:19 +01:00
BlauFeuer
1ed5a0b4a6
Change default at_pre_puppet for characters
...
No longer move character "back onto the grid" when not in None location.
This allows for Character objects to be moved while unpuppeted and remain
where placed when puppeted again.
Also updates markup in code within this module.
2017-02-04 11:23:19 +01:00
Griatch
74eebfed6d
Refactor code to remove alerts as per lgtm and #1176 .
2017-01-29 19:02:00 +01:00
Griatch
c6d9c0619e
Refactor code for readability and compatibility.
2017-01-27 00:19:27 +01:00
Griatch
a09835049b
Refactor wrong super() parents in a few managers.
2017-01-26 21:35:13 +01:00
Griatch
506c5c6d39
Refactor some names to make api cleaner to read.
2017-01-14 22:21:12 +01:00
Griatch
19e8528b04
Update ObjectSessionHandler to avoid a caching syncing issue; should resolve #1153 .
2017-01-11 23:42:09 +01:00
Tehom
c16a03fb5e
Remove the urls printout I was using during debugging. Oops.
2016-12-06 03:31:10 -05:00
Tehom
7bd7b91b93
Fix the save and continue editing option
2016-12-06 03:27:58 -05:00
Tehom
ae0b4bad55
Refactor of class_setting from init in typeclass so we can just call it from django admin, and avoid weirdness of calling init twice, which seemed to mess things up
2016-12-05 07:53:06 -05:00
Tehom
560def1f2b
Better solution - can call __init__ manually with typeclass as a kwarg, and this seems to resolve it
2016-12-05 06:58:05 -05:00
Tehom
5e7211a053
Explicitly assign typeclass for newly created objectdb
2016-12-02 17:21:44 -05:00
Griatch
19e8bed5ab
Fix docstring text error.
2016-11-30 18:02:39 +01:00
Tehom
b80f7c3637
Attributes in django admin now also editable inline, causing them to call the AttributeHandler or NicksHandler of the appropriate object.
2016-11-22 09:40:41 +01:00
Tehom
6a851750f3
Custom form/formset for adding/removing tags using the handler. Each TagAdmin used by the different typeclasses are now also required to specify a related_field, which seems redundant but is very hard to get around otherwise. Still to do - make sure that all the adds are working properly, and extend this to attributes as well, and make Tag searches still sort of useful in the admin so people can at least check names and so on
2016-11-22 09:40:41 +01:00
Griatch
1d6873eef4
Fix caching error in new cmdset merge regime. Removed debug messages.
2016-10-15 23:22:33 +02:00
Griatch
a61a33e87d
Refactor ChannelHandler. Fix issues with new cmdset merge procedures.
2016-10-15 22:48:38 +02:00
Griatch
edacd58eab
Refactor get_and_merge_cmdsets to merge all cmdsets in one place rather than sub-merging them separately on each object first. See #1087 . Also changes the names of the auto-added _exitset to ExitCmdSet and _channelset to ChannelCmdSet. Allow Channel cmdsets to also be identified on Objects.
2016-10-15 22:48:38 +02:00
Griatch
f59c9fd573
Fix bugs in alias-searching for objects. Resolves #1048 .
2016-10-13 21:53:54 +02:00
Griatch
00c64b10bb
Make sure msg(text=None) means that text should not be used (None must be converted to a string to send). Resolves #1077 .
2016-10-02 21:51:15 +02:00
Griatch
2b35140fe3
Implement a more throughough cache-flush mechanism. This makes sure to flush foreignkey cache relations for objects not affected by flushing (normally objects with an NAttribute stored in them). Without ForeignKey flushing, the location of such objects would remain cached and drift out of sync, leading to content caches in turn desyncing. Resolves #1064 .
2016-10-02 20:52:05 +02:00
Griatch
15025c0586
Added at_idmapper_flush to allow objects more control of their flush characteristics.
2016-10-02 20:52:05 +02:00
Griatch
cd616caf29
Debug tests for trying to catch the flushmem bug #1064 .
2016-10-02 20:52:05 +02:00
Trent Robbins
91874f5339
Removed reference to target after target.at_desc. This allows the target to delete itself in response to being looked at without throwing an error.
2016-10-02 13:40:28 +02:00
Dan Feeney
7f63393cb7
modified msg_contents to allow objects without get_display_name to be included in mapping
2016-10-01 13:50:11 +02:00
Tehom
4639ed8f7e
Resolves traceback error when object is moved to a room rather than a player from None location.
2016-09-21 01:02:51 -04:00
Griatch
47fa88e0fc
Slight rephrasing of a docstring.
2016-09-20 16:30:31 +02:00
Dan Feeney
d88d882439
moved msg_contents to DefaultObject
2016-09-20 16:30:31 +02:00
Griatch
e6f857a536
Remove setting.SEARCH_MULTIMATCH_SEPARATOR, replacing it with SEARCH_MULTIMATCH_REGEX and SEARCH_MULTIMATCH_TEMPLATE. This allows simple yet powerful control over the error output without needing to overload the parser.
2016-09-11 10:39:47 +02:00
Griatch
72d4bb4de7
Fix so as to not send traverse messages to the traverser. Fixes unittests.
2016-09-09 07:52:48 +02:00
Griatch
e373e1733b
Make the move transition hooks use get_display_name to make them compatible with the rpsystem contrib as per #1051 .
2016-09-08 22:11:22 +02:00
Griatch
1da9217a18
Return no match if using obj.search() with an empty list of candidates. This accounts for candidate lists that are created dynamically, for example limiting them to the inventory (which may be empy). Resolves #1016 .
2016-08-20 11:00:33 +02:00