diff --git a/tests/test_widgets.py b/tests/test_widgets.py index 8f60867..527dacf 100644 --- a/tests/test_widgets.py +++ b/tests/test_widgets.py @@ -29,7 +29,7 @@ class WidgetTest(_WidgetTest): the first two since those are the only templates provided by tw2.forms itself. """ - engines = ['mako', 'jinja'] + engines = ['mako', 'jinja', 'kajiki'] class TestInputField(WidgetTest): @@ -154,6 +154,9 @@ def test_escape(self): attrs = {'value': 'line 1
line 2', 'escape': False} expected = 'line 1
line 2
' for engine in self._get_all_possible_engines(): + if engine == 'kajiki': + # Kajiki has no support for escape: False + continue yield (self._check_rendering_vs_expected, engine, attrs, self.params, expected) @@ -174,6 +177,9 @@ def test_escape(self): attrs = {'text': 'line 1
line 2', 'escape': False} expected = 'line 1
line 2
' for engine in self._get_all_possible_engines(): + if engine == 'kajiki': + # Kajiki has no support for escape: False + continue yield (self._check_rendering_vs_expected, engine, attrs, self.params, expected) @@ -689,6 +695,9 @@ def test_escape(self): attrs = {'text': 'line 1
line 2', 'escape': False} expected = 'line 1
line 2
' for engine in self._get_all_possible_engines(): + if engine == 'kajiki': + # Kajiki has no support for escape: False + continue yield (self._check_rendering_vs_expected, engine, attrs, self.params, expected) diff --git a/tw2/forms/templates/datagrid.kajiki b/tw2/forms/templates/datagrid.kajiki index 36c034f..fb0a947 100644 --- a/tw2/forms/templates/datagrid.kajiki +++ b/tw2/forms/templates/datagrid.kajiki @@ -1,6 +1,4 @@ - +
+
${w.child.display()}
\ No newline at end of file diff --git a/tw2/forms/templates/form.kajiki b/tw2/forms/templates/form.kajiki index d5812f6..a9d6551 100644 --- a/tw2/forms/templates/form.kajiki +++ b/tw2/forms/templates/form.kajiki @@ -1,4 +1,4 @@ -
+

diff --git a/tw2/forms/templates/grid_layout.kajiki b/tw2/forms/templates/grid_layout.kajiki index 0d9b827..d4bc060 100644 --- a/tw2/forms/templates/grid_layout.kajiki +++ b/tw2/forms/templates/grid_layout.kajiki @@ -1,4 +1,4 @@ - +
${row.display()} +
$col.label
diff --git a/tw2/forms/templates/input_field.kajiki b/tw2/forms/templates/input_field.kajiki index 0628240..6ad586e 100644 --- a/tw2/forms/templates/input_field.kajiki +++ b/tw2/forms/templates/input_field.kajiki @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/tw2/forms/templates/label.kajiki b/tw2/forms/templates/label.kajiki index 4b4c7bc..047c9b2 100644 --- a/tw2/forms/templates/label.kajiki +++ b/tw2/forms/templates/label.kajiki @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/tw2/forms/templates/label_field.kajiki b/tw2/forms/templates/label_field.kajiki index 6219753..e505206 100644 --- a/tw2/forms/templates/label_field.kajiki +++ b/tw2/forms/templates/label_field.kajiki @@ -1 +1 @@ -$w.value \ No newline at end of file +$w.value \ No newline at end of file diff --git a/tw2/forms/templates/link_field.kajiki b/tw2/forms/templates/link_field.kajiki index a489feb..e9a7c01 100644 --- a/tw2/forms/templates/link_field.kajiki +++ b/tw2/forms/templates/link_field.kajiki @@ -1 +1 @@ -$w.text \ No newline at end of file +$w.text \ No newline at end of file diff --git a/tw2/forms/templates/list_layout.kajiki b/tw2/forms/templates/list_layout.kajiki index 0b1f4d0..fcc1eba 100644 --- a/tw2/forms/templates/list_layout.kajiki +++ b/tw2/forms/templates/list_layout.kajiki @@ -1,4 +1,4 @@ -
    +
      ${c.display()} diff --git a/tw2/forms/templates/postlabeled_input_field.kajiki b/tw2/forms/templates/postlabeled_input_field.kajiki index 44a8ae8..6267a38 100644 --- a/tw2/forms/templates/postlabeled_input_field.kajiki +++ b/tw2/forms/templates/postlabeled_input_field.kajiki @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/tw2/forms/templates/row_layout.kajiki b/tw2/forms/templates/row_layout.kajiki index d98aab1..4a1e955 100644 --- a/tw2/forms/templates/row_layout.kajiki +++ b/tw2/forms/templates/row_layout.kajiki @@ -1,4 +1,4 @@ -
${c.display()} diff --git a/tw2/forms/templates/select_field.kajiki b/tw2/forms/templates/select_field.kajiki index ae2beff..ebb5528 100644 --- a/tw2/forms/templates/select_field.kajiki +++ b/tw2/forms/templates/select_field.kajiki @@ -1,4 +1,4 @@ - diff --git a/tw2/forms/templates/selection_list.kajiki b/tw2/forms/templates/selection_list.kajiki index 02a5f37..c4c775e 100644 --- a/tw2/forms/templates/selection_list.kajiki +++ b/tw2/forms/templates/selection_list.kajiki @@ -1,4 +1,4 @@ -
    +
    • $group
        diff --git a/tw2/forms/templates/selection_table.kajiki b/tw2/forms/templates/selection_table.kajiki index dc9a0d0..1614b35 100644 --- a/tw2/forms/templates/selection_table.kajiki +++ b/tw2/forms/templates/selection_table.kajiki @@ -1,4 +1,4 @@ - +
        diff --git a/tw2/forms/templates/separated_selection_table.kajiki b/tw2/forms/templates/separated_selection_table.kajiki index d2c2856..3a6e648 100644 --- a/tw2/forms/templates/separated_selection_table.kajiki +++ b/tw2/forms/templates/separated_selection_table.kajiki @@ -1,4 +1,4 @@ - +
        diff --git a/tw2/forms/templates/spacer.kajiki b/tw2/forms/templates/spacer.kajiki index c7995dc..171e792 100644 --- a/tw2/forms/templates/spacer.kajiki +++ b/tw2/forms/templates/spacer.kajiki @@ -1 +1 @@ -
         
        \ No newline at end of file +
         
        \ No newline at end of file diff --git a/tw2/forms/templates/table_layout.kajiki b/tw2/forms/templates/table_layout.kajiki index 94b4d63..65ced53 100644 --- a/tw2/forms/templates/table_layout.kajiki +++ b/tw2/forms/templates/table_layout.kajiki @@ -1,4 +1,4 @@ -
        +
        diff --git a/tw2/forms/templates/textarea.kajiki b/tw2/forms/templates/textarea.kajiki index 00f1cc7..b8a0367 100644 --- a/tw2/forms/templates/textarea.kajiki +++ b/tw2/forms/templates/textarea.kajiki @@ -1 +1 @@ - + diff --git a/tw2/forms/templates/vertical_selection_table.kajiki b/tw2/forms/templates/vertical_selection_table.kajiki index ee429b2..6648f37 100644 --- a/tw2/forms/templates/vertical_selection_table.kajiki +++ b/tw2/forms/templates/vertical_selection_table.kajiki @@ -1,4 +1,4 @@ - +
        ${group_name}