WebGrid 0.5.9__tar.gz → 0.5.10__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {WebGrid-0.5.9 → WebGrid-0.5.10}/PKG-INFO +13 -1
- {WebGrid-0.5.9 → WebGrid-0.5.10}/WebGrid.egg-info/PKG-INFO +13 -1
- {WebGrid-0.5.9 → WebGrid-0.5.10}/WebGrid.egg-info/requires.txt +1 -1
- {WebGrid-0.5.9 → WebGrid-0.5.10}/changelog.rst +12 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/setup.py +1 -2
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/extensions.py +7 -1
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/renderers.py +1 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/tests/test_rendering.py +20 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/tests/test_testing.py +1 -1
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/tests/test_unit.py +16 -0
- WebGrid-0.5.10/webgrid/version.py +1 -0
- WebGrid-0.5.9/webgrid/version.py +0 -1
- {WebGrid-0.5.9 → WebGrid-0.5.10}/MANIFEST.in +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/WebGrid.egg-info/SOURCES.txt +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/WebGrid.egg-info/dependency_links.txt +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/WebGrid.egg-info/entry_points.txt +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/WebGrid.egg-info/not-zip-safe +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/WebGrid.egg-info/top_level.txt +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/readme.rst +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/setup.cfg +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/__init__.py +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/blazeweb.py +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/filters.py +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/flask.py +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/i18n/babel.cfg +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/i18n/es/LC_MESSAGES/webgrid.mo +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/i18n/es/LC_MESSAGES/webgrid.po +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/i18n/webgrid.pot +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/static/application_form_edit.png +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/static/b_firstpage.png +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/static/b_lastpage.png +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/static/b_nextpage.png +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/static/b_prevpage.png +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/static/bd_firstpage.png +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/static/bd_lastpage.png +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/static/bd_nextpage.png +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/static/bd_prevpage.png +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/static/delete.png +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/static/gettext.min.js +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/static/i18n/es/LC_MESSAGES/webgrid.json +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/static/jquery.multiple.select.js +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/static/multiple-select.css +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/static/multiple-select.png +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/static/th_arrow_down.png +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/static/th_arrow_up.png +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/static/webgrid.css +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/static/webgrid.js +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/templates/grid.html +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/templates/grid_footer.html +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/templates/grid_header.html +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/templates/grid_table.html +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/templates/header_filtering.html +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/templates/header_paging.html +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/templates/header_sorting.html +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/testing.py +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/tests/__init__.py +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/tests/conftest.py +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/tests/data/basic_table.html +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/tests/data/people_table.html +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/tests/data/stopwatch_table.html +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/tests/helpers.py +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/tests/test_api.py +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/tests/test_columns.py +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/tests/test_filters.py +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/tests/test_types.py +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/types.py +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/utils.py +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid/validators.py +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid_ta/__init__.py +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid_ta/app.py +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid_ta/data/basic_table.html +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid_ta/data/people_table.html +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid_ta/extensions.py +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid_ta/grids.py +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid_ta/helpers.py +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid_ta/i18n/babel.cfg +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid_ta/i18n/es/LC_MESSAGES/webgrid_ta.mo +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid_ta/i18n/es/LC_MESSAGES/webgrid_ta.po +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid_ta/i18n/webgrid_ta.pot +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid_ta/manage.py +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid_ta/model/__init__.py +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid_ta/model/entities.py +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid_ta/model/helpers.py +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid_ta/templates/groups.html +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid_ta/templates/index.html +0 -0
- {WebGrid-0.5.9 → WebGrid-0.5.10}/webgrid_ta/views.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: WebGrid
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.10
|
|
4
4
|
Summary: A library for rendering HTML tables and Excel files from SQLAlchemy models.
|
|
5
5
|
Home-page: https://github.com/level12/webgrid
|
|
6
6
|
Author: Randy Syring
|
|
@@ -88,6 +88,18 @@ Links
|
|
|
88
88
|
Changelog
|
|
89
89
|
=========
|
|
90
90
|
|
|
91
|
+
0.5.10 released 2024-07-19
|
|
92
|
+
--------------------------
|
|
93
|
+
|
|
94
|
+
- ensure session override args replace arg lists (a7c61f6_)
|
|
95
|
+
- prevent session override from persisting in header form requests (cd1f7cd_)
|
|
96
|
+
- modernize tested python versions (3557f44_)
|
|
97
|
+
|
|
98
|
+
.. _a7c61f6: https://github.com/level12/webgrid/commit/a7c61f6
|
|
99
|
+
.. _cd1f7cd: https://github.com/level12/webgrid/commit/cd1f7cd
|
|
100
|
+
.. _3557f44: https://github.com/level12/webgrid/commit/3557f44
|
|
101
|
+
|
|
102
|
+
|
|
91
103
|
0.5.9 released 2023-12-08
|
|
92
104
|
-------------------------
|
|
93
105
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: WebGrid
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.10
|
|
4
4
|
Summary: A library for rendering HTML tables and Excel files from SQLAlchemy models.
|
|
5
5
|
Home-page: https://github.com/level12/webgrid
|
|
6
6
|
Author: Randy Syring
|
|
@@ -88,6 +88,18 @@ Links
|
|
|
88
88
|
Changelog
|
|
89
89
|
=========
|
|
90
90
|
|
|
91
|
+
0.5.10 released 2024-07-19
|
|
92
|
+
--------------------------
|
|
93
|
+
|
|
94
|
+
- ensure session override args replace arg lists (a7c61f6_)
|
|
95
|
+
- prevent session override from persisting in header form requests (cd1f7cd_)
|
|
96
|
+
- modernize tested python versions (3557f44_)
|
|
97
|
+
|
|
98
|
+
.. _a7c61f6: https://github.com/level12/webgrid/commit/a7c61f6
|
|
99
|
+
.. _cd1f7cd: https://github.com/level12/webgrid/commit/cd1f7cd
|
|
100
|
+
.. _3557f44: https://github.com/level12/webgrid/commit/3557f44
|
|
101
|
+
|
|
102
|
+
|
|
91
103
|
0.5.9 released 2023-12-08
|
|
92
104
|
-------------------------
|
|
93
105
|
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
0.5.10 released 2024-07-19
|
|
5
|
+
--------------------------
|
|
6
|
+
|
|
7
|
+
- ensure session override args replace arg lists (a7c61f6_)
|
|
8
|
+
- prevent session override from persisting in header form requests (cd1f7cd_)
|
|
9
|
+
- modernize tested python versions (3557f44_)
|
|
10
|
+
|
|
11
|
+
.. _a7c61f6: https://github.com/level12/webgrid/commit/a7c61f6
|
|
12
|
+
.. _cd1f7cd: https://github.com/level12/webgrid/commit/cd1f7cd
|
|
13
|
+
.. _3557f44: https://github.com/level12/webgrid/commit/3557f44
|
|
14
|
+
|
|
15
|
+
|
|
4
16
|
0.5.9 released 2023-12-08
|
|
5
17
|
-------------------------
|
|
6
18
|
|
|
@@ -261,7 +261,13 @@ class WebSessionArgsLoader(ArgsLoader):
|
|
|
261
261
|
is_override = 'session_override' in previous_args
|
|
262
262
|
|
|
263
263
|
if is_override:
|
|
264
|
-
|
|
264
|
+
# Typically we would want to just `.update()`, but args are MultiDict, so
|
|
265
|
+
# could have multiple values already. Previous args values are to be
|
|
266
|
+
# substituted, not treated as a list extension.
|
|
267
|
+
# Using copy, because if session_args and previous_args are the same
|
|
268
|
+
# object, we would be modifying the MultiDict in-place.
|
|
269
|
+
for key, value in previous_args.copy().lists():
|
|
270
|
+
session_args.setlist(key, value)
|
|
265
271
|
else:
|
|
266
272
|
# Some types of args always get passed through from request_args.
|
|
267
273
|
# Override paging if it exists in the query
|
|
@@ -12,6 +12,7 @@ import pytest
|
|
|
12
12
|
import xlsxwriter
|
|
13
13
|
from markupsafe import Markup
|
|
14
14
|
from pyquery import PyQuery
|
|
15
|
+
from werkzeug.datastructures import MultiDict
|
|
15
16
|
|
|
16
17
|
from webgrid import (
|
|
17
18
|
BoolColumn,
|
|
@@ -367,6 +368,25 @@ class TestHtmlRenderer(object):
|
|
|
367
368
|
== '/thepage?foo=bar&session_key={0}'.format(g.session_key)
|
|
368
369
|
)
|
|
369
370
|
|
|
371
|
+
@_inrequest('/thepage?foo=bar&onpage=5&session_override=1')
|
|
372
|
+
def test_form_action_url_session_opts(self):
|
|
373
|
+
class TestManager(SimpleGrid.manager.__class__):
|
|
374
|
+
def get_args(self, previous_args):
|
|
375
|
+
return MultiDict(dict(foo='bar', onpage=5, session_override=1))
|
|
376
|
+
|
|
377
|
+
class TGrid(Grid):
|
|
378
|
+
manager = TestManager()
|
|
379
|
+
|
|
380
|
+
Column('ID', 'id')
|
|
381
|
+
|
|
382
|
+
g = TGrid()
|
|
383
|
+
g.set_records(self.key_data)
|
|
384
|
+
g.apply_qs_args()
|
|
385
|
+
assert (
|
|
386
|
+
g.html.form_action_url()
|
|
387
|
+
== '/thepage?foo=bar&session_key={0}'.format(g.session_key)
|
|
388
|
+
)
|
|
389
|
+
|
|
370
390
|
@_inrequest('/thepage?foo=bar&onpage=5')
|
|
371
391
|
def test_form_action_method_get(self):
|
|
372
392
|
g = self.get_grid()
|
|
@@ -46,7 +46,7 @@ class TestAssertListEqual:
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
class TestAssertRenderedXlsxMatches:
|
|
49
|
-
def
|
|
49
|
+
def setup_method(self):
|
|
50
50
|
self.stream = BytesIO()
|
|
51
51
|
self.workbook = xlsxwriter.Workbook(self.stream, options={'in_memory': True})
|
|
52
52
|
self.sheet = self.workbook.add_worksheet('sheet1')
|
|
@@ -1218,6 +1218,22 @@ class TestWebSessionArgsLoader:
|
|
|
1218
1218
|
assert args['op(createdts)'] == '!eq'
|
|
1219
1219
|
assert args['v1(createdts)'] == '2017-05-06'
|
|
1220
1220
|
|
|
1221
|
+
@_inrequest('/foo?op(account_type)=is&v1(account_type)=admin')
|
|
1222
|
+
def test_keyed_session_with_override_multifilter(self):
|
|
1223
|
+
pg = PeopleGrid()
|
|
1224
|
+
loader = WebSessionArgsLoader(pg.manager)
|
|
1225
|
+
loader.get_args(pg, flask.request.args)
|
|
1226
|
+
flask.request.args = MultiDict([
|
|
1227
|
+
('session_key', pg.session_key),
|
|
1228
|
+
('session_override', 1),
|
|
1229
|
+
('op(account_type)', 'is'),
|
|
1230
|
+
('v1(account_type)', 'manager'),
|
|
1231
|
+
])
|
|
1232
|
+
pg2 = PeopleGrid()
|
|
1233
|
+
args = loader.get_args(pg2, flask.request.args)
|
|
1234
|
+
assert args['op(account_type)'] == 'is'
|
|
1235
|
+
assert args.getlist('v1(account_type)') == ['manager']
|
|
1236
|
+
|
|
1221
1237
|
@_inrequest('/foo?op(firstname)=eq&v1(firstname)=bob&perpage=1&onpage=100')
|
|
1222
1238
|
def test_keyed_session_without_override(self):
|
|
1223
1239
|
pg = PeopleGrid()
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
VERSION = '0.5.10'
|
WebGrid-0.5.9/webgrid/version.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
VERSION = '0.5.9'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|