Commit graph

3961 commits

Author SHA1 Message Date
Tehom
ccfbe06ded Fix AttributeError when webserver isn't enabled. 2017-06-03 21:57:11 -04:00
Griatch
94376257a4 Merge branch 'command_obj_attribute_error_fix' of https://github.com/TehomCD/evennia into TehomCD-command_obj_attribute_error_fix 2017-06-04 00:43:33 +02:00
Griatch
d73a2876cf Add support for cmdline reloading when requests are blocked. 2017-06-04 00:35:55 +02:00
Griatch
00f71667ba Further refactoring. 2017-06-03 19:03:37 +02:00
Griatch
8e12162df7 Merge branch 'crash_fix' of https://github.com/TehomCD/evennia into TehomCD-crash_fix 2017-06-03 18:41:42 +02:00
Griatch
7be82159f4 Add LockableThreadPool class. 2017-06-03 18:41:21 +02:00
Tehom
31e7aa1253 Prevent AttributeError when self.obj is None. 2017-06-01 02:59:46 -04:00
Tehom
96ab620618 Add extra checking for additional requests made while we were in the process of stopping reactor, change from callLater to deferLater to be compliant with inlinecallbacks. 2017-05-31 07:14:25 -04:00
Tehom
4b5ee77292 Attempt to address crash bug when stopping threadpool if there are pending web requests. Return a DeferredList to be checked in server shutdown. 2017-05-30 03:45:55 -04:00
Tehom
13de1f8af8 Change portal's website class to be the one defined for evennia, which suppresses logging unless DEBUG is on. 2017-05-29 05:50:13 -04:00
Griatch
1248428d13 Update coveralls to exclude checking some types of non-code files. Resolves #1318. 2017-05-22 08:21:25 +02:00
Griatch
6370c377d5 Add cache optimization to variable imports in logger. 2017-05-21 19:24:54 +02:00
Griatch
8acfb36391 Merge branch 'rotate_channel_logs' of https://github.com/TehomCD/evennia into TehomCD-rotate_channel_logs 2017-05-21 19:11:18 +02:00
Tehom
2bea778181 Move settings to be local imports to prevent conflicts before django is fully loaded 2017-05-21 06:59:54 -04:00
Tehom
4605b3128e Add docstr to class and methods, adjust names of settings to be more clearly modifying channel logs. 2017-05-21 03:29:33 -04:00
Griatch
2f4cbf1d09 Merge branch 'channels_msg_offline' of https://github.com/TehomCD/evennia into TehomCD-channels_msg_offline 2017-05-21 07:39:28 +02:00
Griatch
94786c03a2 Merge branch 'events' of https://github.com/vlegoff/evennia into vlegoff-events 2017-05-21 07:18:57 +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
Tehom
6e2c10b008 Remove print statements I had left in during debugging. Oops. 2017-05-20 22:18:26 -04:00
Tehom
f150d8bae5 Add Evennia logfile class based on Twisted LogFile for automatic rotating channel logs. Append tail end of logs when rotating, customizable with settings. 2017-05-20 21:33:57 -04:00
Alex Jaffe
112e457cc3 Fixed a bug in which creating a SimpleDoor caused the next exit created to fail silently. 2017-05-14 16:34:03 +08:00
Griatch
6db118ac61 Add listing of home to examine command. 2017-05-11 19:30:54 +02:00
Vincent Le Goff
02a35972af Remove the over-incrementing task ID 2017-05-08 19:26:43 -07:00
Tehom
6ea13dbc96 Check for instance in cache to have the appropriate foreignkey if we're called from a related manager. Stops us from retrieving any object by ID, whether it was related to us or not. 2017-05-07 02:12:58 -04:00
Griatch
4f76d255fa Add warning about starting without main script. 2017-05-06 14:42:57 +02:00
Griatch
1356e569b5 Clean up some readme formatting. 2017-05-06 14:42:57 +02:00
Vincent Le Goff
1a8c07d0b6 Fix unittests for the event system 2017-05-06 14:42:57 +02:00
Vincent Le Goff
5a443d206c Add the new handling of errors in callbacks 2017-05-06 14:42:57 +02:00
Vincent Le Goff
2d250c0f96 Fix a bug in the TimeEvent scripts 2017-05-06 14:42:57 +02:00
Vincent Le Goff
dc5d790b44 Update eventfuncs to try to load world/eventfuncs.py if exists 2017-05-06 14:42:57 +02:00
Vincent Le Goff
16cbe2c781 Update the documentation of the event system 2017-05-06 14:42:57 +02:00
Vincent Le Goff
bc9bfb3fa7 Move the interrupting exception of events 2017-05-06 14:42:57 +02:00
Vincent Le Goff
96b90dde1e Adopt the new names for the event system 2017-05-06 14:42:57 +02:00
Vincent Le Goff
17b546c041 Update the README file, merging documents 2017-05-06 14:42:57 +02:00
Vincent Le Goff
08fd37aa98 Update event typeclasses to use inheritance instead of hook patching 2017-05-06 14:42:57 +02:00
Vincent Le Goff
1caf5e988c Add new events for objects 2017-05-06 14:42:57 +02:00
Vincent Le Goff
69c5c2c554 Update the msg_leave and msg_arrive events to use the new hooks 2017-05-06 14:42:57 +02:00
Vincent Le Goff
78ad2135d4 Add some character and room event types 2017-05-06 14:42:57 +02:00
Vincent Le Goff
ae79ca96a7 Fix errors in unittests and conflicts with the events handler 2017-05-06 14:42:57 +02:00
Vincent Le Goff
fb299adaaa Fix a locking error when quitting the EvEditor without saving.
Add events on characters and rooms.
2017-05-06 14:42:57 +02:00
Vincent Le Goff
52505a705a Update the user documentation of the event system 2017-05-06 14:42:57 +02:00
Vincent Le Goff
1cfaf77df7 Add an error handler if errors occurr during event execution
Optimize time events with fewer restarts
2017-05-06 14:42:57 +02:00
Vincent Le Goff
44a73acd94 Chained events can now be called without delay 2017-05-06 14:42:57 +02:00
Vincent Le Goff
d483726d54 Add unittests for the event system 2017-05-06 14:42:57 +02:00
Vincent Le Goff
fae5877843 Fix a bug in Character.announce_move_to 2017-05-06 14:42:57 +02:00
Vincent Le Goff
c996e8c4b5 Add events on exits 2017-05-06 14:42:57 +02:00
Vincent Le Goff
9c091b29e9 Fix some minor bugs in event connection/locking 2017-05-06 14:42:57 +02:00
Vincent Le Goff
38563a6593 Add an event handler on all objects 2017-05-06 14:42:57 +02:00
Vincent Le Goff
81f4c590bd Bring the event system to Evennia-style compliance 2017-05-06 14:42:57 +02:00