Hide keyboard shortcuts

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 

5 

6from .core import (WidgetError) 

7 

8from .params import (Param, ChildParam, Variable, ChildVariable, Required, 

9 Deferred, ParameterError, Auto) 

10 

11from .widgets import (Widget, CompoundWidget, RepeatingWidget, 

12 DisplayOnlyWidget, Page) 

13 

14from .resources import ( 

15 JSSymbol, 

16 Link, 

17 JSLink, 

18 CSSLink, 

19 CSSSource, 

20 JSSource, 

21 inject_resources, 

22 DirLink, 

23) 

24 

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) 

35 

36from .middleware import ( 

37 make_middleware, 

38 register_controller, 

39 register_resource, 

40) 

41 

42from .js import ( 

43 js_symbol, 

44 js_callback, 

45 js_function, 

46 encoder 

47) 

48 

49from .compat import ( 

50 TGStyleController, 

51) 

52 

53from .i18n import _, tw2_translation_string 

54 

55# Shortcut from Deprecated TWEncoder that was in js.py 

56encode = encoder.encode