Commit graph

132 commits

Author SHA1 Message Date
Griatch
0c9d2e053b [fix] First migration test 2019-01-28 19:48:26 +01:00
Griatch
c3ebd8d251 Use to_str/to_bytes, replacing old versions 2019-01-16 23:26:46 +01:00
Griatch
981119b640 Fix merge conflicts 2019-01-01 15:19:20 +01:00
Griatch
b6b07ccdb5 Update CHANGELOG, pep8 fixes 2018-10-23 01:04:25 +02:00
Johnny
f943b3e179 Adds create() method to DefaultScript and unit test for DefaultScript.create(). 2018-10-09 23:41:04 +00:00
Griatch
72f4fedcbe Merge with develop and fix merge conflicts 2018-10-01 20:58:16 +02:00
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
Ryan Stein
7d524ac328 Unwrap for expressions in comprehensions, too. 2017-11-02 22:52:16 -04:00
Ryan Stein
f2e800ddf1 Unwrap several for statements from 2to3 conversion process. 2017-11-02 12:46:33 -04:00
Ryan Stein
6fa280b9fd Run 2to3. 2017-10-29 13:40:30 -04: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