Coverage for tw2/core/__init__.py : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""
2tw2.core contains the base Widgets from which all others are derived.
3"""
4from __future__ import absolute_import
6from .core import (WidgetError)
8from .params import (Param, ChildParam, Variable, ChildVariable, Required,
9 Deferred, ParameterError, Auto)
11from .widgets import (Widget, CompoundWidget, RepeatingWidget,
12 DisplayOnlyWidget, Page)
14from .resources import (
15 JSSymbol,
16 Link,
17 JSLink,
18 CSSLink,
19 CSSSource,
20 JSSource,
21 inject_resources,
22 DirLink,
23)
25from .validation import (
26 Validator, LengthValidator,
27 RegexValidator, IntValidator, OneOfValidator, DateValidator,
28 DateTimeValidator, ValidationError, Invalid, EmailValidator,
29 UrlValidator, IpAddressValidator, StringLengthValidator,
30 ListLengthValidator, RangeValidator, MatchValidator, UUIDValidator,
31 BoolValidator, BlankValidator, safe_validate, EmptyField,
32 CompoundValidator,
33 Any, All,
34)
36from .middleware import (
37 make_middleware,
38 register_controller,
39 register_resource,
40)
42from .js import (
43 js_symbol,
44 js_callback,
45 js_function,
46 encoder
47)
49from .compat import (
50 TGStyleController,
51)
53from .i18n import _, tw2_translation_string
55# Shortcut from Deprecated TWEncoder that was in js.py
56encode = encoder.encode