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

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

""" 

tw2.core contains the base Widgets from which all others are derived. 

""" 

from __future__ import absolute_import 

 

from .core import (WidgetError) 

 

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

    Deferred, ParameterError, Auto) 

 

from .widgets import (Widget, CompoundWidget, RepeatingWidget, 

    DisplayOnlyWidget, Page) 

 

from .resources import ( 

    JSSymbol, 

    Link, 

    JSLink, 

    CSSLink, 

    CSSSource, 

    JSSource, 

    inject_resources, 

    DirLink, 

) 

 

from .validation import ( 

    Validator, LengthValidator, 

    RegexValidator, IntValidator, OneOfValidator, DateValidator, 

    DateTimeValidator, ValidationError, Invalid, EmailValidator, 

    UrlValidator, IpAddressValidator, StringLengthValidator, 

    ListLengthValidator, RangeValidator, MatchValidator, UUIDValidator, 

    BoolValidator, BlankValidator, safe_validate, EmptyField, 

    CompoundValidator, 

    Any, All, 

) 

 

from .middleware import ( 

    make_middleware, 

    register_controller, 

    register_resource, 

) 

 

from .js import ( 

    js_symbol, 

    js_callback, 

    js_function, 

    encoder 

) 

 

from .compat import ( 

    TGStyleController, 

) 

 

from .i18n import _, tw2_translation_string 

 

# Shortcut from Deprecated TWEncoder that was in js.py 

encode = encoder.encode