Tehom
737d551cd7
Fix search and timeout with large database
2017-11-09 22:33:08 -05:00
Nicholas Matlaga
e1db190329
change references to db_subscriptions to reference handler correctly
2017-10-27 14:10:19 -04:00
Griatch
b3c6e9d2cc
Update alerts reported by LGTM
2017-09-23 16:46:54 +02:00
Griatch
414bacf58b
Fix migration edge cases with MySQL and PostgreSQL
2017-09-22 23:23:59 +02:00
Griatch
3c1544ca16
Revert migration name change - it's irrelevant for this point in git history
2017-09-07 21:42:55 +02:00
Griatch
f6b4155aed
Rename migration to indicate slowness - may need to drop migration table and --fake run again.
2017-09-07 21:27:13 +02:00
Griatch
92df3ce5ae
Structure handlers to allow .get() to return lists
...
See #1154 . In the end I didn't modify the Attributehandler and
TagHandler like this, instead I added the `return_list` argument
for cases when one wants a guaranteed return.
2017-08-27 14:56:05 +02:00
Griatch
b278337172
Make PEP8 cleanup of line spaces and character distances as well as indents
2017-08-19 23:16:36 +02:00
Griatch
7ff783fea1
Resolve merge conflicts with master.
2017-08-19 21:30:42 +02:00
Tehom
bc3f3ea586
Add check to subscription handler for deleted objects.
2017-07-30 18:34:06 -04:00
Griatch
e56b0024c4
Merge branch 'master' into devel
2017-07-13 22:54:53 +02:00
Griatch
be8452b1c7
Fix hard-coded lock names in event system to match new hierarchy.
2017-07-09 13:03:01 +02:00
Griatch
594500c4c7
Correct migrations to not re-remove fields.
2017-07-09 11:51:47 +02:00
Griatch
c1326eaf23
Add a sanity check for comm migration
2017-07-09 11:12:20 +02:00
Griatch
f45bd4921d
Re-add player-migrations, renamed to account-migrations
2017-07-09 10:39:03 +02:00
Griatch
a7aa1215cb
Rename migrations to depend on account-migrations instead of players
2017-07-09 09:12:09 +02:00
Griatch
5590ee2258
Rename all instances of Player->Account.
2017-07-07 23:47:21 +02:00
Griatch
34443fa4e6
Last point where Player & Account coexist - migrate here first.
2017-07-06 23:17:01 +02:00
Griatch
63c96de443
Create parallel Player/Account fields and copy all
2017-07-06 22:37:28 +02:00
Vincent Le Goff
7fb31d3160
Let ChannelCommand.arg_regex override the value set by the CHANNEL_HANDLER
2017-07-02 16:23:49 -07:00
Griatch
af6aa52a4e
Merge migrations.
2017-06-17 22:17:58 +02:00
Griatch
0ff1718437
Resolve django 1.11 migration errors.
2017-06-17 22:15:00 +02:00
Griatch
c60555b70a
Add migrations to django 1.11.
2017-06-06 19:34:56 +02:00
Tehom
27c72d7899
Decided to remove setting because it seemed unnecessary when this was the purported default behavior anyway. It makes sense that if they want to send to offline, they'd override the option to be True in their channel typeclasses. At least that's my thinking, maybe I'm off base. Remove docstr line that says online arg is not currently used.
2017-05-20 23:33:39 -04:00
Tehom
f9c369f869
Add method to subscription handler to check online members, and put check in Channel typeclass for using this based on settings option.
2017-05-20 23:18:26 -04:00
Griatch
f9e7b01f57
Add **kwargs options to at_* hooks to all typeclasses, for greater flexibility for users. Resolves #1276 .
2017-04-20 20:58:35 +02:00
Griatch
cf77d90c71
Make all manager methods return querysets. This removes all the last remnants of the old return_typeclass/return_typeclass_list decorators that were a remnant of the old pre-proxy Typeclass system. Resolves #1206 .
2017-04-20 19:43:39 +02:00
Griatch
a648433db8
Merge conflicts against master, including cmdhandler support for direct cmdobject input together with prefix-ignore mechanism from devel.
2017-04-01 16:08:23 +02:00
BlauFeuer
f857a43f4b
Markup update, docstring and whitespace fixes
2017-02-19 09:46:43 +01:00
Griatch
edc092bfc4
Run migrations! Add support for using Scripts as senders/receivers of Msg entities. Implements #1179 .
2017-02-17 21:42:26 +01:00
Griatch
02a4ac5231
Fix bug in latest push.
2017-02-04 16:49:29 +01:00
Griatch
628dd268f9
Make the at_channel_create method automatically add a new channel to the channelhandler.
2017-02-04 16:42:08 +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
506c5c6d39
Refactor some names to make api cleaner to read.
2017-01-14 22:21:12 +01:00
Griatch
ad13594a46
Run migrations! Added blank=True field to ChannelDB to allow the Admin-creation of channels without any subscribers.
2016-12-06 20:13:24 +01:00
Griatch
822227090b
Add missing fix to ChannelDB admin.
2016-12-06 20:03:26 +01:00
Tehom
ee19a92c55
Fix django admin for other typeclasses. ChannelDB still requires subscribers to validate. Changed PickleField's clean method to prevent attribute errors for attributes added during basetype setup.
2016-12-06 07:06:46 -05:00
Griatch
381e91b822
Made channel_prefix honor the emit keyword. Also corrected docstrings of message_transform to correctly note a Msg object is needed instead of a string.
2016-11-27 12:08:23 +01:00
Tehom
8b3c0057af
Using TypedObjectManager on a non-typeclass doesn't cause any harm, near as I can tell from looking at it and trying the different returns_typeclass methods. Should resolve #1114
2016-11-22 09:40:41 +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
Griatch
44e4ff4c1d
Change to use the subscriptionhandler in distribute_message to support both players and objects subscribing to channels.
2016-10-20 08:08:55 +02:00
Tehom
c32920999b
Fixed missing variable in formatting of disconnect string in delcom, made display of @channels more legible and display when someone is Muted rather than not subscribed. Refactored the 'who' list for channels to now be a property of the channel that returns a string of all the subscribers separated by commas, with those who are actively listening (not muted) in bold, and made both '@cwho' and 'allcom who' call to it.
2016-10-20 08:08:55 +02:00
Tehom
951cd60a6d
Okay, next try! I added 'on' and 'off' as arguments for the base channel command in channelhandler which allows you to unmute or mute the channel respectively, and added the mute and unmute methods to ChannelDB. distribute_message now checks for a subscriber being muted before passing along the message. Reverted the changes to the channel cmdset. Added the 'all' switch to delcom to allow for the deletion of aliases, otherwise it keeps the aliases intact for when they next join the channel.
2016-10-20 08:08:55 +02:00
Tehom
441b081e55
allow for channel commands without a current subscription, so that players can use channelcommands such as <channelname>/history
2016-10-20 08:08:55 +02:00
Tehom
d4ee0e487a
Added missing import for subscriptionhandler.remove()
2016-10-18 23:10:27 +02:00
Griatch
cd9c11f6a8
Fix edge cases in channelhandler and make unittests work.
2016-10-16 19:04:05 +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
589d6737db
Make channelhandler easier to import at different stages without a circular import problem.
2016-10-02 15:54:57 +02:00