Commit graph

105 commits

Author SHA1 Message Date
Greg Taylor
5e1a672fc2 Remove builtins imports
This module is not intended to be used directly in most cases, per:
https://docs.python.org/3/library/builtins.html

None of our usages warrant the explicit import. We also avoid some
confusion as folks dig to see what we are doing to require
importing builtins directly.
2019-09-15 20:29:59 -07:00
Greg Taylor
bd33886cc0 Remove uses of the 'future' py2->3 module
This is no longer needed, now that we are Py3.7+ only. One
layer of indirection removed, and one less dependency.
2019-09-15 00:18:56 -07:00
Griatch
febe08c885 Fix signaling names, add .signals to flat API. 2019-07-02 15:46:14 +02:00
Griatch
005b3f4530 Handle websocket autoconnect and remove session duplicates. Resolves #1851. Resolves #1562. 2019-06-15 22:24:32 +02:00
Andrew Bastien
72faf039cf Refactored signals with better names and more of them. Put them after hook calls. 2019-04-13 18:05:15 -04:00
Andrew Bastien
11dc2ee561 Added some Signals. 2019-04-12 20:16:30 -04:00
Griatch
981119b640 Fix merge conflicts 2019-01-01 15:19:20 +01:00
Tehom
040cc2aa9f Add portal uptime to @time command. 2018-10-18 04:24:03 -04:00
Griatch
ebb2fb6c1c Clean up with 2to3 2018-10-13 19:43:17 +02:00
Griatch
72f4fedcbe Merge with develop and fix merge conflicts 2018-10-01 20:58:16 +02:00
Griatch
2a6e914161 Restart server, run collectstatic at init.
Fix tintin++ default. Resolves #1593.
2018-08-18 10:38:20 +02:00
Griatch
4376058ee9 Merge branch 'master' into develop 2018-01-27 14:20:13 +01:00
Griatch
63bf978b39 Fix error in MULTISESSION_MODE=0 that would not correctly disconnect duplicate sessions but just unpuppet them 2018-01-21 12:29:22 +01:00
Griatch
d6105f6d6c Remove dependence on .restart file, add reboot option to launcher 2018-01-20 12:41:27 +01:00
Griatch
3bec3a3512 Support in-game server-control commands 2018-01-14 23:11:59 +01:00
Griatch
5741eef9bc Parallel start/stop/reload systems, for testing 2018-01-14 14:02:34 +01:00
Griatch
9813a9d346 Allow AMP to handle multiple connections gracefully (more stable). 2018-01-10 22:47:53 +01:00
Griatch
e3de3fb1dc Make DELAY_CMD_LOGINSTART configurable in settings 2018-01-06 20:13:36 +01:00
Griatch
b8f9154df9 Make DELAY_CMD_LOGINSTART configurable in settings 2018-01-06 19:19:20 +01:00
Griatch
82e12f15ff Don't send delayed CMD_LOGINSTART if session already logged in (to handle autologins) 2018-01-03 22:37:52 +01:00
Griatch
74e8c74f80 Work towards resolving unittests with deferreds 2018-01-02 21:21:57 +01:00
Griatch
a342353fd6 Add a slight delay to telnet handshake to give mudlet a chance to catch up 2018-01-01 20:58:48 +01:00
Griatch
c8b1dfcd20 Allow options to partially update portal session, correctly relay late handshakes. 2017-12-31 23:16:16 +01:00
Ryan Stein
6f91e1e546 Remove to_unicode. 2017-11-03 12:36:45 -04: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
cd21fb2396 Use Python 3's new super() convention. 2017-11-02 10:41:41 -04:00
Ryan Stein
9d48e616b1 Port SessionHandler for Py3. 2017-10-29 22:17:00 -04:00
Ryan Stein
6fa280b9fd Run 2to3. 2017-10-29 13:40:30 -04:00
Griatch
8a2e362b7c Make IDLE_TIMEOUT avoidable with account-lock.
Resolves #701. Check the Account-lock 'no_idle_disconnect before kicking an idle
session. This also means superusers will never be kicked. Move the
idle task to the Server to avoid lock imports in Portal. Make the
'lock' command also able to target Accounts. Also some other fixes.
2017-08-20 23:11:33 +02:00
Griatch
cdac9678b9 Add smarter shared login on website/webclient. Resolves #1063.
This makes it so that logging into the website will auto-log you
into the webclient and vice-versa when you refresh the page. But if
you log out of the web client will have to manually log in again. If
you log out of the website and reload the webclient page you will have
to log back into the client too (this is because logging out of the
website flushes the browser session, it doesn't seem worth the effort
to override django.auth in this).
2017-08-20 20:36:35 +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
Jonathan Piacenti
89165b444f Force ANSIString into bytestring before sessions send it over the wire. 2017-08-13 07:35:40 -05:00
Griatch
5590ee2258 Rename all instances of Player->Account. 2017-07-07 23:47:21 +02:00
Tablet-PC\cloud
8fc20a3056 Unsuccessfull attempts 2017-02-11 18:45:55 +01:00
Griatch
74eebfed6d Refactor code to remove alerts as per lgtm and #1176. 2017-01-29 19:02:00 +01:00
Griatch
3e21023ad8 Made the sessionhandler never accept None as a Session; this should make it clearer when a Session becomes invalid and avoid confusing the sessionhandler cache of other objects. Should resolve #1181. 2017-01-29 14:24:18 +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
a403cc9576 Change ingoing message path to reroute through serversession.data_in before calling the inputfuncs. This allows users to view all incoming data in one place if they want to do eventual pre-processing. Resolves #1163. 2017-01-14 12:28:07 +01: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
86f963fa71 Make sure a player associated with a connected Session is always tagged as is_connected. Resolves #1061. 2016-09-14 22:01:32 +02:00
Griatch
76a903119c Clean up log file output and fix some bugs. Swallows spammy and useless AMP connection errors. 2016-09-13 23:10:51 +02:00
Griatch
86c970eb62 Add sessionhandler.portal_disconnect_all to remove another needless call between server and portal on logout. This means logout from either side will clean up on the respective side and then inform the other side once, rather than triggering a return call. 2016-09-13 21:48:43 +02:00
Griatch
8eb500f8e0 Add sessionhandler.portal_disconnect which cuts down interaction over AMP by one when a player disconnects. 2016-09-13 20:42:38 +02:00
Griatch
f04c82fa17 Implemented shared sessions between webclient and website - logging into either will also log in the player to the other. This is addresses the first point of #613. 2016-06-01 01:22:20 +02:00
Griatch
eebd41f46d Getting an improved version of the shared session system vaguely in shape. 2016-06-01 01:22:20 +02:00
Griatch
a31441b3ce First working version of the shared web login. 2016-06-01 01:22:19 +02:00
Griatch
7c3d072915 Fixed so inlinefuncs are only parses on the outgoing message path. 2016-05-26 14:56:09 +02:00
Griatch
644cf9451f Removed deprecated non-nested {inlinefuncs, only accepting (). Changed the default name of the mygame/server/conf/inlinefunc.py to mygame/server/conf/inlinefuncs.py. Added deprecationwarning for the old name. 2016-05-22 20:49:45 +02:00