Made a first version of the new OOB infrastructure, works with normal text-command sending.

This commit is contained in:
Griatch 2016-01-28 23:08:40 +01:00
parent 4817ec90b3
commit 2d826df2f4
2 changed files with 3 additions and 2 deletions

View file

@ -391,7 +391,8 @@ class ServerSession(Session):
text, args = text[0], list(text[1:]) text, args = text[0], list(text[1:])
else: else:
text, args = text, [] text, args = text, []
options = kwargs.get("options", {}) print("kwargs", kwargs, kwargs.get("options", {}))
options = kwargs.get("options", None) or {}
raw = options.get("raw", False) raw = options.get("raw", False)
strip_inlinefunc = options.get("strip_inlinefunc", False) strip_inlinefunc = options.get("strip_inlinefunc", False)
if _INLINEFUNC_ENABLED and not raw: if _INLINEFUNC_ENABLED and not raw:

View file

@ -212,7 +212,7 @@ class ServerSessionHandler(SessionHandler):
# validate all scripts # validate all scripts
_ScriptDB.objects.validate() _ScriptDB.objects.validate()
self[sess.sessid] = sess self[sess.sessid] = sess
sess.data_in(text=CMD_LOGINSTART) self.data_in(sess, text=(CMD_LOGINSTART,))
def portal_session_sync(self, portalsessiondata): def portal_session_sync(self, portalsessiondata):
""" """