mirror of
https://github.com/evennia/evennia.git
synced 2026-03-20 23:06:31 +01:00
Evennia now runs on its own Twisted webserver (no need for testserver or Apache if you don't want to). Evennia now also has an ajax long-polling web client running from Twisted. The web client requires no extra dependencies beyond jQuery which is included. The src/server structure has been r
cleaned up and rewritten to make it easier to add new protocols in the future - all new protocols need to inherit from server.session.Session, whi ch implements a set of hooks that Evennia uses to communicate. The current web client protocol is functional but does not implement any of rcaskey 's suggestions as of yet - it uses a separate data object passed through msg() to communicate between the server and the various protocols. Also the client itself could probably need cleanup and 'prettification'. The fact that the system runs a hybrid of Django and Twisted, getting the best of both worlds should allow for many possibilities in the future. /Griatch
This commit is contained in:
parent
ecefbfac01
commit
251f94aa7a
118 changed files with 9049 additions and 593 deletions
|
|
@ -26,7 +26,6 @@ Common examples of uses of Scripts:
|
|||
"""
|
||||
from django.conf import settings
|
||||
from django.db import models
|
||||
from src.objects.models import ObjectDB
|
||||
from src.typeclasses.models import Attribute, TypedObject
|
||||
from src.scripts.manager import ScriptManager
|
||||
|
||||
|
|
@ -91,7 +90,7 @@ class ScriptDB(TypedObject):
|
|||
# optional description.
|
||||
db_desc = models.CharField(max_length=255, blank=True)
|
||||
# A reference to the database object affected by this Script, if any.
|
||||
db_obj = models.ForeignKey(ObjectDB, null=True, blank=True)
|
||||
db_obj = models.ForeignKey("objects.ObjectDB", null=True, blank=True)
|
||||
# how often to run Script (secs). -1 means there is no timer
|
||||
db_interval = models.IntegerField(default=-1)
|
||||
# start script right away or wait interval seconds first
|
||||
|
|
|
|||
|
|
@ -234,7 +234,7 @@ class CheckSessions(Script):
|
|||
"called every 60 seconds"
|
||||
#print "session check!"
|
||||
#print "ValidateSessions run"
|
||||
sessionhandler.check_all_sessions()
|
||||
sessionhandler.validate_sessions()
|
||||
|
||||
class ValidateScripts(Script):
|
||||
"Check script validation regularly"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue