Commit graph

123 commits

Author SHA1 Message Date
Griatch
be5f289a8a Resolve all django deprecation warnings 2018-09-27 21:20:54 +02:00
Griatch
a954f9c723 Merge and fix conflicts with develop 2018-07-21 14:34:26 +02:00
Griatch
e144672e74 Resolve merge conflicts 2018-06-12 20:13:22 +02:00
Tehom
af558ede7c Handle scripts with negative intervals. 2018-05-10 19:40:58 -04:00
Tehom
f0bae25ca0 Fix paused tasks. 2018-05-10 19:30:58 -04:00
Tehom
b4283a642b Add special handling for scripts when flushed from cache to avoid duplicate ExtendedLoopingCalls. 2018-05-10 19:23:59 -04:00
Griatch
d7deed0b51 Correct bugs in script_creation, fix unittest for olc_storage 2018-03-03 18:52:12 +01:00
Griatch
70a81a939c OLC systen. Create olc_storage mechanism 2018-03-03 18:52:12 +01:00
Griatch
5d1c3cb27e Merge branch 'master' into develop 2018-01-02 21:52:43 +01:00
Griatch
74e8c74f80 Work towards resolving unittests with deferreds 2018-01-02 21:21:57 +01:00
Griatch
3e02f96566 Add ability to search_script by typeclass 2017-10-14 20:15:44 +02:00
Griatch
414bacf58b Fix migration edge cases with MySQL and PostgreSQL 2017-09-22 23:23:59 +02:00
Vincent Le Goff
3176f4b100 Fix a bug in the permanent delay when the object is destroyed 2017-08-31 21:38:49 +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
Vincent Le Goff
8ef50f3706 Fix a minor mistake in the task handler 2017-08-10 11:40:57 +02:00
Vincent Le Goff
37c9d65a9d Place the persistent task in a task handler 2017-08-08 19:47:22 +02:00
Griatch
594500c4c7 Correct migrations to not re-remove fields. 2017-07-09 11:51:47 +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
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
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
Vincent Le Goff
c18bfe7388 Update the time-sensitive script
Since the game time doesn't drift much anymore, the script doesn't
need to restart on startup.  The restart on repeat is kept, small
drifts could accumulate otherwise.
2017-02-15 23:43:49 +01:00
Vincent Le Goff
ec63d43905 Add a check to not create a task to watch a script if the task already exists 2017-02-15 23:43:49 +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
052e1845a2 Fix error in MonitorHandler recovering a saved Session across a reload. This probably affected the TickerHandler as well. Add a new hook to the server object that gets called once the portal has synced, and run the monitorhandler/tickerhandler restores there. Also some changes to the serialization of Sessions. Resolves #1164. 2017-01-15 19:55:51 +01:00
Griatch
506c5c6d39 Refactor some names to make api cleaner to read. 2017-01-14 22:21:12 +01:00
Griatch
9d714a9c55 Refactor to use list comprehension instead of filter() for future py3 compatibility. 2017-01-10 18:31:45 +01:00
Simon Vermeersch
5a4dbea3bb Return an empty list when searching for a script by #dbref and there is
no such script.
2017-01-10 18:31:45 +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
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
5b60eef635 Properly remove pause state data when restartig a script. 2016-09-02 15:02:20 +02:00
Griatch
9d00f1ddfd Fix a wrongly called variable in ticherhandler. 2016-09-01 16:55:49 +02:00
Griatch
949aeee806 Update docstring: Better describes the limits of the callables possible to use with TickerHandler. 2016-09-01 15:14:53 +02:00
andrei-pmbcn
97412b4169 Fixed the bug that prevented restarting a script more than once after unpausing. Resolves #1023. 2016-08-28 19:37:32 +02:00
Griatch
03ef093d36 Resolves problems in storing/restoring tickerhandler keys. Resolves #997. 2016-06-24 18:15:01 +02:00
Griatch
bdcc093c23 Make tickerhandler correctly clean subs to deleted objs.
Also makes the dbunserialize mechanism a little more robust, making it return None instead of crashing when unpacking an invalid packed-tuple.
2016-06-14 22:04:41 +02:00
Griatch
63ebaea3ef Update tickerhandler.py 2016-05-30 09:14:23 +02:00
Griatch
a74c921686 Added fixes to make sure the tickerhandler loop doesn't delete from its own subscription dict while inside the loop - even if that deletion happens inside a callback. 2016-05-26 18:56:38 +02:00
Griatch
cce87a8399 Fixed old calls to tickerhandler from the tutorial_world. Also added a better error when this happens. This resolves #952. 2016-05-22 20:49:45 +02:00
Griatch
1ac81205c3 Completed tests of all GMCP/MSDP backend functions, including tickerhandler repeats and value monitoring, as per #924. 2016-05-22 20:45:42 +02:00
Griatch
4883512342 Fixed and tested the monitor/unmonitor inputfunc from both GMCP and MSDP 2016-05-22 20:45:41 +02:00