Mercurial > libervia-web
comparison libervia/server/pages.py @ 1185:7d6c0e5d5f34
server: moved generic classes definitions (only WebsocketMeta for now) to new "classes" module
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 26 May 2019 22:14:23 +0200 |
parents | 75c5e8d21c7d |
children | 352865f4a268 |
comparison
equal
deleted
inserted
replaced
1184:eee7a896cf0e | 1185:7d6c0e5d5f34 |
---|---|
30 from sat_frontends.bridge.bridge_frontend import BridgeException | 30 from sat_frontends.bridge.bridge_frontend import BridgeException |
31 | 31 |
32 from libervia.server.constants import Const as C | 32 from libervia.server.constants import Const as C |
33 from libervia.server import session_iface | 33 from libervia.server import session_iface |
34 from libervia.server.utils import quote, SubPage | 34 from libervia.server.utils import quote, SubPage |
35 | 35 from libervia.server.classes import WebsocketMeta |
36 from collections import namedtuple | 36 |
37 import uuid | 37 import uuid |
38 import os.path | 38 import os.path |
39 import urllib | 39 import urllib |
40 import time | 40 import time |
41 import hashlib | 41 import hashlib |
42 | 42 |
43 log = getLogger(__name__) | 43 log = getLogger(__name__) |
44 | |
45 WebsocketMeta = namedtuple("WebsocketMeta", ("url", "token", "debug")) | |
46 | 44 |
47 | 45 |
48 class CacheBase(object): | 46 class CacheBase(object): |
49 def __init__(self): | 47 def __init__(self): |
50 self._created = time.time() | 48 self._created = time.time() |