comparison setup.py @ 995:f88325b56a6a

server: dynamic pages first draft: /!\ new dependency: autobahn This patch introduce server part of dynamic pages. Dynamic pages use websockets to establish constant connection with a Libervia page, allowing to receive real time data or update it. The feature is activated by specifying "dynamic = true" in the page. Once activated, page can implement "on_data" method which will be called when data are sent by the page. To send data the other way, the page can use request.sendData. The new "registerSignal" method allows to use an "on_signal" method to be called each time given signal is received, with automatic (and optional) filtering on profile. New renderPartial and renderAndUpdate method allow to append new HTML elements to the dynamic page.
author Goffi <goffi@goffi.org>
date Wed, 03 Jan 2018 01:10:12 +0100
parents 1bbc29aad56a
children 3bf61858a123
comparison
equal deleted inserted replaced
994:b92b06f023cb 995:f88325b56a6a
300 [(os.path.join('share', NAME, root), 300 [(os.path.join('share', NAME, root),
301 [os.path.join(root, f) for f in files]) 301 [os.path.join(root, f) for f in files])
302 for root, dirs, files in os.walk(C.THEMES_DIR)], 302 for root, dirs, files in os.walk(C.THEMES_DIR)],
303 scripts=[], 303 scripts=[],
304 zip_safe=False, 304 zip_safe=False,
305 install_requires=['sat', 'twisted', 'txJSON-RPC==0.3.1', 'zope.interface', 'pyopenssl', 'jinja2', 'shortuuid'], 305 install_requires=['sat', 'twisted', 'txJSON-RPC==0.3.1', 'zope.interface', 'pyopenssl', 'jinja2', 'shortuuid', 'autobahn'],
306 cmdclass={'install': CustomInstall}, 306 cmdclass={'install': CustomInstall},
307 ) 307 )