Did I find the right examples for you? yes no

All Samples(4)  |  Call(0)  |  Derive(0)  |  Import(4)
A JSON encoder that can encode Widgets, js_calls, js_symbols and
js_callbacks.

Example::

    >>> encode = TWEncoder().encode
    >>> print encode({
    ...     'onLoad': js_function("do_something")(js_symbol("this"))
    ... })
    {"onLoad": do_something(this)}(more...)

src/t/w/tw2.core-2.2.1.1/tw2/core/__init__.py   tw2.core(Download)
)
 
from .js import (
    js_symbol,
    js_callback,

src/t/w/tw2.core-HEAD/tw2/core/__init__.py   tw2.core(Download)
)
 
from .js import (
    js_symbol,
    js_callback,

src/t/w/tw2.core-2.2.1.1/tw2/core/resources.py   tw2.core(Download)
from .params import Param, Variable, ParameterError, Required
from .middleware import register_resource
from .js import encoder, js_symbol
 
from markupsafe import Markup

src/t/w/tw2.core-HEAD/tw2/core/resources.py   tw2.core(Download)
from .params import Param, Variable, ParameterError, Required
from .middleware import register_resource
from .js import encoder, js_symbol
 
from markupsafe import Markup