pyams-table 2.0.2__tar.gz → 3.0.0__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.
Files changed (39) hide show
  1. pyams_table-3.0.0/.gitignore +59 -0
  2. pyams_table-3.0.0/.hgignore +23 -0
  3. {pyams_table-2.0.2 → pyams_table-3.0.0}/PKG-INFO +23 -77
  4. {pyams_table-2.0.2 → pyams_table-3.0.0}/docs/HISTORY.rst +5 -0
  5. pyams_table-3.0.0/pyproject.toml +89 -0
  6. {pyams_table-2.0.2 → pyams_table-3.0.0}/src/pyams_table/batch.py +1 -1
  7. {pyams_table-2.0.2 → pyams_table-3.0.0}/src/pyams_table/column.py +5 -5
  8. {pyams_table-2.0.2 → pyams_table-3.0.0}/src/pyams_table/doctests/README.rst +1 -1
  9. {pyams_table-2.0.2 → pyams_table-3.0.0}/src/pyams_table/doctests/batch.rst +2 -1
  10. {pyams_table-2.0.2 → pyams_table-3.0.0}/src/pyams_table/doctests/column.rst +1 -1
  11. {pyams_table-2.0.2 → pyams_table-3.0.0}/src/pyams_table/doctests/miscellaneous.rst +2 -1
  12. {pyams_table-2.0.2 → pyams_table-3.0.0}/src/pyams_table/doctests/sequence.rst +2 -1
  13. {pyams_table-2.0.2 → pyams_table-3.0.0}/src/pyams_table/doctests/sort.rst +2 -1
  14. {pyams_table-2.0.2 → pyams_table-3.0.0}/src/pyams_table/header.py +1 -1
  15. {pyams_table-2.0.2 → pyams_table-3.0.0}/src/pyams_table/table.py +12 -6
  16. pyams_table-2.0.2/setup.cfg +0 -4
  17. pyams_table-2.0.2/setup.py +0 -75
  18. pyams_table-2.0.2/src/pyams_table.egg-info/PKG-INFO +0 -115
  19. pyams_table-2.0.2/src/pyams_table.egg-info/SOURCES.txt +0 -34
  20. pyams_table-2.0.2/src/pyams_table.egg-info/dependency_links.txt +0 -1
  21. pyams_table-2.0.2/src/pyams_table.egg-info/namespace_packages.txt +0 -1
  22. pyams_table-2.0.2/src/pyams_table.egg-info/not-zip-safe +0 -1
  23. pyams_table-2.0.2/src/pyams_table.egg-info/requires.txt +0 -14
  24. pyams_table-2.0.2/src/pyams_table.egg-info/top_level.txt +0 -1
  25. {pyams_table-2.0.2 → pyams_table-3.0.0}/LICENSE +0 -0
  26. {pyams_table-2.0.2 → pyams_table-3.0.0}/MANIFEST.in +0 -0
  27. {pyams_table-2.0.2 → pyams_table-3.0.0}/docs/README.rst +0 -0
  28. {pyams_table-2.0.2 → pyams_table-3.0.0}/src/pyams_table/__init__.py +0 -0
  29. {pyams_table-2.0.2 → pyams_table-3.0.0}/src/pyams_table/include.py +0 -0
  30. {pyams_table-2.0.2 → pyams_table-3.0.0}/src/pyams_table/interfaces.py +0 -0
  31. {pyams_table-2.0.2 → pyams_table-3.0.0}/src/pyams_table/locales/fr/LC_MESSAGES/pyams_table.mo +0 -0
  32. {pyams_table-2.0.2 → pyams_table-3.0.0}/src/pyams_table/locales/fr/LC_MESSAGES/pyams_table.po +0 -0
  33. {pyams_table-2.0.2 → pyams_table-3.0.0}/src/pyams_table/locales/pyams_table.pot +0 -0
  34. {pyams_table-2.0.2 → pyams_table-3.0.0}/src/pyams_table/selector.py +0 -0
  35. {pyams_table-2.0.2 → pyams_table-3.0.0}/src/pyams_table/testing.py +0 -0
  36. {pyams_table-2.0.2 → pyams_table-3.0.0}/src/pyams_table/tests/__init__.py +0 -0
  37. {pyams_table-2.0.2 → pyams_table-3.0.0}/src/pyams_table/tests/test_utilsdocs.py +0 -0
  38. {pyams_table-2.0.2 → pyams_table-3.0.0}/src/pyams_table/tests/test_utilsdocstrings.py +0 -0
  39. {pyams_table-2.0.2 → pyams_table-3.0.0}/src/pyams_table/value.py +0 -0
@@ -0,0 +1,59 @@
1
+ # Dependencies
2
+ node_modules/
3
+ .pnp
4
+ .pnp.js
5
+
6
+ # Testing
7
+ /.gitlab-ci-local/
8
+ coverage/
9
+
10
+ # Production
11
+ build/
12
+ dist/
13
+ src/pyams_table.egg-info/
14
+ src/*.dist-info/
15
+
16
+ # Misc
17
+ .DS_Store
18
+ *.pem
19
+
20
+ # Debug
21
+ npm-debug.log*
22
+ yarn-debug.log*
23
+ yarn-error.log*
24
+
25
+ # Local env files
26
+ .env
27
+ .env.local
28
+ .env.development.local
29
+ .env.test.local
30
+ .env.production.local
31
+
32
+ # Vercel
33
+ .vercel
34
+
35
+ # TypeScript
36
+ *.tsbuildinfo
37
+ next-env.d.ts
38
+
39
+ # IDE
40
+ .idea/
41
+ .vscode/
42
+ *.swp
43
+ *.swo
44
+
45
+ # Logs
46
+ logs/
47
+ *.log
48
+
49
+ # Archive files
50
+ *.zip
51
+ *.tar
52
+ *.tar.gz
53
+
54
+ # Python
55
+ __pycache__/
56
+ *.pyc
57
+
58
+ # OS
59
+ Thumbs.db
@@ -0,0 +1,23 @@
1
+
2
+ syntax: regexp
3
+ ^develop-eggs$
4
+ syntax: regexp
5
+ ^parts$
6
+ syntax: regexp
7
+ ^bin$
8
+ syntax: regexp
9
+ ^eggs$
10
+ syntax: regexp
11
+ ^\.installed\.cfg$
12
+ syntax: regexp
13
+ ^\.settings$
14
+ syntax: regexp
15
+ ^build$
16
+ syntax: regexp
17
+ ^dist$
18
+ syntax: regexp
19
+ ^\.idea$
20
+ syntax: regexp
21
+ .*\.pyc$
22
+ syntax: regexp
23
+ ^docs/build$
@@ -1,20 +1,33 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.5
2
2
  Name: pyams_table
3
- Version: 2.0.2
3
+ Version: 3.0.0
4
4
  Summary: PyAMS management package for HTML tables
5
- Home-page: https://pyams.readthedocs.io
6
- Author: Thierry Florac
7
- Author-email: tflorac@ulthar.net
5
+ Project-URL: Homepage, https://pyams.readthedocs.io
6
+ Author-email: Thierry Florac <tflorac@ulthar.net>
8
7
  License: ZPL
9
- Keywords: Pyramid PyAMS
10
- Classifier: License :: OSI Approved :: Zope Public License
8
+ License-File: LICENSE
9
+ Keywords: PyAMS,Pyramid
11
10
  Classifier: Development Status :: 4 - Beta
12
- Classifier: Programming Language :: Python
13
11
  Classifier: Framework :: Pyramid
12
+ Classifier: License :: OSI Approved :: Zope Public License
13
+ Classifier: Programming Language :: Python
14
14
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
15
- Requires-Python: >=3.7
15
+ Requires-Python: >=3.9
16
+ Requires-Dist: pyams-batching
17
+ Requires-Dist: pyams-utils
18
+ Requires-Dist: pyramid>=2.0.0
19
+ Requires-Dist: zope-component
20
+ Requires-Dist: zope-container
21
+ Requires-Dist: zope-contentprovider
22
+ Requires-Dist: zope-dublincore
23
+ Requires-Dist: zope-interface
24
+ Requires-Dist: zope-location
25
+ Requires-Dist: zope-schema
26
+ Requires-Dist: zope-security
16
27
  Provides-Extra: test
17
- License-File: LICENSE
28
+ Requires-Dist: pyams-batching; extra == 'test'
29
+ Requires-Dist: pyams-utils; extra == 'test'
30
+ Description-Content-Type: text/x-rst
18
31
 
19
32
  ===================
20
33
  PyAMS_table package
@@ -46,70 +59,3 @@ it provides the same features to generate HTML tables, but adapted to the Pyrami
46
59
 
47
60
  ** Package API is also converted to common Python standards, using snake_case for variables and
48
61
  methods.
49
-
50
-
51
- Changelog
52
- =========
53
-
54
- 2.0.2
55
- -----
56
- - updated buildout source
57
- - updated tests coverage configuration
58
-
59
- 2.0.1
60
- -----
61
- - updated Buildout configuration
62
-
63
- 2.0.0
64
- -----
65
- - upgraded to Pyramid 2.0
66
-
67
- 1.3.1
68
- -----
69
- - use internal tee to avoid multiple accesses to values getter (so that values adapters should be able to return
70
- iterators without any problem)
71
- - added support for Python 3.10 and 3.11
72
-
73
- 1.3.0
74
- -----
75
- - added table and row update events, with matching subscribers predicates; these events are
76
- enabled by default but can be disabled by setting custom table attributes
77
- - handle dynamic CSS classes by supporting callables
78
-
79
- 1.2.1
80
- -----
81
- - updated doctests
82
-
83
- 1.2.0
84
- -----
85
- - removed support for Python < 3.7
86
-
87
- 1.1.3
88
- -----
89
- - updated Gitlab-CI configuration
90
-
91
- 1.1.2
92
- -----
93
- - updated Gitlab-CI configuration
94
-
95
- 1.1.1
96
- -----
97
- - updated Gitlab-CI configuration
98
- - removed Travis-CI configuration
99
-
100
- 1.1.0
101
- -----
102
- - added methods to render cells and rows contents in JSON format
103
- - updated "adapter_config" decorator arguments names
104
-
105
- 1.0.2
106
- -----
107
- - updated doctests using ZCA hook
108
-
109
- 1.0.1
110
- -----
111
- - use current request registry instead of global registry to query adapters
112
-
113
- 1.0.0
114
- -----
115
- - initial release
@@ -1,6 +1,11 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 3.0.0
5
+ -----
6
+ - updated support for Python from version 3.9 to 3.15 (3.13 is still the development version)
7
+ - migrated to PyAMS v3
8
+
4
9
  2.0.2
5
10
  -----
6
11
  - updated buildout source
@@ -0,0 +1,89 @@
1
+ #
2
+ # Copyright (c) 2015-2019 Thierry Florac <tflorac AT ulthar.net>
3
+ # All Rights Reserved.
4
+ #
5
+ # This software is subject to the provisions of the Zope Public License,
6
+ # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
7
+ # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
8
+ # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
9
+ # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
10
+ # FOR A PARTICULAR PURPOSE.
11
+ #
12
+
13
+ [build-system]
14
+ requires = ["hatchling", "hatch-vcs"]
15
+ build-backend = "hatchling.build"
16
+
17
+ [project]
18
+ name = "pyams_table"
19
+ dynamic = ["version"]
20
+ description = "PyAMS management package for HTML tables"
21
+ readme = {file = "docs/README.rst", content-type = "text/x-rst"}
22
+ license = {text = "ZPL"}
23
+ authors = [
24
+ {name = "Thierry Florac", email = "tflorac@ulthar.net"},
25
+ ]
26
+ keywords = ["Pyramid", "PyAMS"]
27
+ classifiers = [
28
+ "License :: OSI Approved :: Zope Public License",
29
+ "Development Status :: 4 - Beta",
30
+ "Programming Language :: Python",
31
+ "Framework :: Pyramid",
32
+ "Topic :: Software Development :: Libraries :: Python Modules",
33
+ ]
34
+ requires-python = ">=3.9"
35
+ dependencies = [
36
+ "pyams_batching",
37
+ "pyams_utils",
38
+ "pyramid >= 2.0.0",
39
+ "zope.component",
40
+ "zope.container",
41
+ "zope.contentprovider",
42
+ "zope.dublincore",
43
+ "zope.interface",
44
+ "zope.location",
45
+ "zope.schema",
46
+ "zope.security",
47
+ ]
48
+
49
+ [project.optional-dependencies]
50
+ test = [
51
+ "pyams_utils",
52
+ "pyams_batching"
53
+ ]
54
+
55
+ [project.urls]
56
+ Homepage = "https://pyams.readthedocs.io"
57
+
58
+ [tool.hatch.build.targets.wheel]
59
+ sources = ["src"]
60
+ packages = ["src/pyams_table"]
61
+
62
+ [tool.hatch.build.targets.sdist]
63
+ include = [
64
+ "src/",
65
+ "docs/",
66
+ "MANIFEST.in",
67
+ ]
68
+
69
+ [tool.hatch.build]
70
+ include = [
71
+ "*.zcml",
72
+ "*.txt",
73
+ "*.pt",
74
+ "*.pot",
75
+ "*.po",
76
+ "*.mo",
77
+ "*.png",
78
+ "*.gif",
79
+ "*.jpeg",
80
+ "*.jpg",
81
+ "*.css",
82
+ "*.js",
83
+ ]
84
+ exclude = [
85
+ "*~",
86
+ ]
87
+
88
+ [tool.hatch.version]
89
+ source = "vcs"
@@ -88,7 +88,7 @@ class BatchProvider:
88
88
  args = {}
89
89
  for key in self._request_args:
90
90
  key = key % dict(prefix=self.table.prefix)
91
- value = self.request.params.get(key, None)
91
+ value = self.request.get_param(key, None)
92
92
  if value:
93
93
  args.update({key: value})
94
94
  return args
@@ -180,7 +180,7 @@ class RadioColumn(Column):
180
180
  """Column update"""
181
181
  items = [item for item in self.table.values
182
182
  if self.get_item_value(item) in
183
- self.request.params.get(self.get_item_key(item), [])]
183
+ self.request.get_param(self.get_item_key(item), [])]
184
184
  if len(items) > 0:
185
185
  self.selected_item = items.pop()
186
186
 
@@ -226,7 +226,7 @@ class CheckBoxColumn(Column):
226
226
 
227
227
  def is_selected(self, item):
228
228
  """Test if item is selected"""
229
- value = self.request.params.get(self.get_item_key(item), [])
229
+ value = self.request.get_param(self.get_item_key(item), [])
230
230
  value = ensure_list(value)
231
231
  if self.get_item_value(item) in value:
232
232
  return True
@@ -319,7 +319,7 @@ class GetAttrFormatterColumn(FormatterColumn, GetAttrColumn):
319
319
  return value
320
320
 
321
321
 
322
- class CreatedColumn(FormatterColumn, GetAttrColumn):
322
+ class CreatedColumn(GetAttrFormatterColumn):
323
323
  """Created date column."""
324
324
 
325
325
  header = _("Created")
@@ -338,7 +338,7 @@ class CreatedColumn(FormatterColumn, GetAttrColumn):
338
338
  return ''
339
339
 
340
340
 
341
- class ModifiedColumn(FormatterColumn, GetAttrColumn):
341
+ class ModifiedColumn(GetAttrFormatterColumn):
342
342
  """Created date column."""
343
343
 
344
344
  header = _("Modified")
@@ -480,7 +480,7 @@ class SelectedItemColumn(LinkColumn):
480
480
  """Update column"""
481
481
  items = [item for item in self.table.values
482
482
  if self.get_item_value(item)
483
- in ensure_list(self.request.params.get(self.get_item_key(item), []))]
483
+ in ensure_list(self.request.get_param(self.get_item_key(item), []))]
484
484
  if len(items) > 0:
485
485
  self.selected_item = items.pop()
486
486
  self.table.selected_items = [self.selected_item]
@@ -96,7 +96,7 @@ Table
96
96
 
97
97
  Create a test request and represent the table:
98
98
 
99
- >>> from pyramid.testing import DummyRequest
99
+ >>> from pyams_utils.testing import DummyRequest
100
100
  >>> from pyams_table import table
101
101
 
102
102
  >>> request = DummyRequest()
@@ -8,7 +8,8 @@ to batch at this size. Let's define a new Table.
8
8
  We need to configure our batch provider for the next step first. See the
9
9
  section ``BatchProvider`` below for more infos about batch rendering:
10
10
 
11
- >>> from pyramid.testing import setUp, tearDown, DummyRequest
11
+ >>> from pyramid.testing import setUp, tearDown
12
+ >>> from pyams_utils.testing import DummyRequest
12
13
  >>> from pyams_table.testing import setup_adapters
13
14
 
14
15
  >>> config = setUp(hook_zca=True)
@@ -76,7 +76,7 @@ Let's define a table using the NameColumn:
76
76
  Now create, update and render our table and you can see that the NameColumn
77
77
  renders the name of the item using the zope.traversing.api.getName() concept:
78
78
 
79
- >>> from pyramid.testing import DummyRequest
79
+ >>> from pyams_utils.testing import DummyRequest
80
80
  >>> request = DummyRequest()
81
81
  >>> nameTable = NameTable(container, request)
82
82
  >>> nameTable.update()
@@ -3,7 +3,8 @@ Miscellaneous
3
3
 
4
4
  Make coverage report happy and test different things.
5
5
 
6
- >>> from pyramid.testing import setUp, tearDown, DummyRequest
6
+ >>> from pyramid.testing import setUp, tearDown
7
+ >>> from pyams_utils.testing import DummyRequest
7
8
  >>> from pyams_table.testing import setup_adapters
8
9
 
9
10
  >>> config = setUp(hook_zca=True)
@@ -6,7 +6,8 @@ of items instead of a mapping. Define the same sequence of items we used before
6
6
  we added the other 1000 items:
7
7
 
8
8
 
9
- >>> from pyramid.testing import setUp, tearDown, DummyRequest
9
+ >>> from pyramid.testing import setUp, tearDown
10
+ >>> from pyams_utils.testing import DummyRequest
10
11
  >>> from pyams_table.testing import setup_adapters
11
12
 
12
13
  >>> config = setUp(hook_zca=True)
@@ -9,7 +9,8 @@ We show you how to do this later. We also need a columns which allows us to do
9
9
  a better sort sample. Our new sorting column will use the content items number
10
10
  value for sorting:
11
11
 
12
- >>> from pyramid.testing import setUp, tearDown, DummyRequest
12
+ >>> from pyramid.testing import setUp, tearDown
13
+ >>> from pyams_utils.testing import DummyRequest
13
14
  >>> from pyams_table.testing import setup_adapters
14
15
 
15
16
  >>> config = setUp(hook_zca=True)
@@ -57,7 +57,7 @@ class ColumnHeader:
57
57
  """
58
58
  args = {}
59
59
  for key in self._request_args:
60
- value = self.request.params.get(key, None)
60
+ value = self.request.get_param(key, None)
61
61
  if value:
62
62
  args.update({key: value})
63
63
  return args
@@ -152,7 +152,7 @@ class Table(Location):
152
152
  f"{self.css_class_sorted_on} {self.sort_order}"
153
153
  return css_class
154
154
 
155
- def get_css_class(self, element, css_class=None, *args, **kwargs):
155
+ def get_css_class(self, element, css_class=None, render_class_attr=True, *args, **kwargs):
156
156
  """Add CSS class based on HTML tag, make a `class=` attribute"""
157
157
  if callable(css_class):
158
158
  css_class = css_class(*args, **kwargs)
@@ -160,7 +160,9 @@ class Table(Location):
160
160
  if callable(klass):
161
161
  klass = klass(*args, **kwargs)
162
162
  klass = f"{css_class if css_class else ''} {klass if klass else ''}".strip()
163
- return f' class={quoteattr(klass)}' if klass else ""
163
+ if render_class_attr:
164
+ return f' class={quoteattr(klass)}' if klass else ''
165
+ return klass or ''
164
166
 
165
167
  # setup
166
168
 
@@ -176,6 +178,10 @@ class Table(Location):
176
178
  for col in self.columns:
177
179
  col.update()
178
180
 
181
+ def get_column(self, name):
182
+ """Get column by name"""
183
+ return self.column_by_name.get(name)
184
+
179
185
  def order_columns(self):
180
186
  """Order columns"""
181
187
  self.column_counter = 0
@@ -226,11 +232,11 @@ class Table(Location):
226
232
 
227
233
  def get_sort_on(self):
228
234
  """Returns sort on column id"""
229
- return self.request.params.get(self.prefix + "-sort-on", self.sort_on)
235
+ return self.request.get_param(self.prefix + "-sort-on", self.sort_on)
230
236
 
231
237
  def get_sort_order(self):
232
238
  """Returns sort order criteria"""
233
- return self.request.params.get(self.prefix + "-sort-order", self.sort_order)
239
+ return self.request.get_param(self.prefix + "-sort-order", self.sort_order)
234
240
 
235
241
  def sort_rows(self):
236
242
  """Sort table rows"""
@@ -246,11 +252,11 @@ class Table(Location):
246
252
 
247
253
  def get_batch_size(self):
248
254
  """Get table batch size"""
249
- return int(self.request.params.get(self.prefix + "-batch-size", self.batch_size))
255
+ return int(self.request.get_param(self.prefix + "-batch-size", self.batch_size))
250
256
 
251
257
  def get_batch_start(self):
252
258
  """Get table batch start position"""
253
- return int(self.request.params.get(self.prefix + "-batch-start", self.batch_start))
259
+ return int(self.request.get_param(self.prefix + "-batch-start", self.batch_start))
254
260
 
255
261
  def batch_rows(self):
256
262
  """Create batch of rows, if required"""
@@ -1,4 +0,0 @@
1
- [egg_info]
2
- tag_build =
3
- tag_date = 0
4
-
@@ -1,75 +0,0 @@
1
- #
2
- # Copyright (c) 2015-2019 Thierry Florac <tflorac AT ulthar.net>
3
- # All Rights Reserved.
4
- #
5
- # This software is subject to the provisions of the Zope Public License,
6
- # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
7
- # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
8
- # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
9
- # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
10
- # FOR A PARTICULAR PURPOSE.
11
- #
12
-
13
- """
14
- This module contains PyAMS_table package
15
- """
16
-
17
- import os
18
- from setuptools import setup, find_packages
19
-
20
-
21
- DOCS = os.path.join(os.path.dirname(__file__),
22
- 'docs')
23
-
24
- README = os.path.join(DOCS, 'README.rst')
25
- HISTORY = os.path.join(DOCS, 'HISTORY.rst')
26
-
27
- version = '2.0.2'
28
- long_description = open(README).read() + '\n\n' + open(HISTORY).read()
29
-
30
- tests_require = []
31
-
32
- setup(name='pyams_table',
33
- version=version,
34
- description="PyAMS management package for HTML tables",
35
- long_description=long_description,
36
- classifiers=[
37
- "License :: OSI Approved :: Zope Public License",
38
- "Development Status :: 4 - Beta",
39
- "Programming Language :: Python",
40
- "Framework :: Pyramid",
41
- "Topic :: Software Development :: Libraries :: Python Modules",
42
- ],
43
- keywords='Pyramid PyAMS',
44
- author='Thierry Florac',
45
- author_email='tflorac@ulthar.net',
46
- url='https://pyams.readthedocs.io',
47
- license='ZPL',
48
- packages=find_packages('src'),
49
- package_dir={'': 'src'},
50
- namespace_packages=[],
51
- include_package_data=True,
52
- package_data={'': ['*.zcml', '*.txt', '*.pt', '*.pot', '*.po', '*.mo',
53
- '*.png', '*.gif', '*.jpeg', '*.jpg', '*.css', '*.js']},
54
- python_requires='>=3.7',
55
- zip_safe=False,
56
- # uncomment this to be able to run tests with setup.py
57
- test_suite="pyams_table.tests.test_utilsdocs.test_suite",
58
- tests_require=tests_require,
59
- extras_require=dict(test=tests_require),
60
- install_requires=[
61
- 'setuptools',
62
- # -*- Extra requirements: -*-
63
- 'pyams_batching',
64
- 'pyams_utils',
65
- 'pyramid >= 2.0.0',
66
- 'zope.component',
67
- 'zope.container',
68
- 'zope.contentprovider',
69
- 'zope.dublincore',
70
- 'zope.interface',
71
- 'zope.location',
72
- 'zope.schema',
73
- 'zope.security'
74
- ],
75
- entry_points="")
@@ -1,115 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: pyams-table
3
- Version: 2.0.2
4
- Summary: PyAMS management package for HTML tables
5
- Home-page: https://pyams.readthedocs.io
6
- Author: Thierry Florac
7
- Author-email: tflorac@ulthar.net
8
- License: ZPL
9
- Keywords: Pyramid PyAMS
10
- Classifier: License :: OSI Approved :: Zope Public License
11
- Classifier: Development Status :: 4 - Beta
12
- Classifier: Programming Language :: Python
13
- Classifier: Framework :: Pyramid
14
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
15
- Requires-Python: >=3.7
16
- Provides-Extra: test
17
- License-File: LICENSE
18
-
19
- ===================
20
- PyAMS_table package
21
- ===================
22
-
23
- .. contents::
24
-
25
-
26
- What is PyAMS?
27
- ==============
28
-
29
- PyAMS (Pyramid Application Management Suite) is a small suite of packages written for applications
30
- and content management with the Pyramid framework.
31
-
32
- **PyAMS** is actually mainly used to manage web sites through content management applications (CMS,
33
- see PyAMS_content package), but many features are generic and can be used inside any kind of web
34
- application.
35
-
36
- All PyAMS documentation is available on `ReadTheDocs <https://pyams.readthedocs.io>`_; source code
37
- is available on `Gitlab <https://gitlab.com/pyams>`_ and pushed to `Github
38
- <https://github.com/py-ams>`_. Complete doctests are available in the *doctests* folder.
39
-
40
-
41
- What is PyAMS_table?
42
- ====================
43
-
44
- PyAMS_table is a fork of `z3c.table <https://github.com/zopefoundation/z3c.table>`_ package;
45
- it provides the same features to generate HTML tables, but adapted to the Pyramid framework.
46
-
47
- ** Package API is also converted to common Python standards, using snake_case for variables and
48
- methods.
49
-
50
-
51
- Changelog
52
- =========
53
-
54
- 2.0.2
55
- -----
56
- - updated buildout source
57
- - updated tests coverage configuration
58
-
59
- 2.0.1
60
- -----
61
- - updated Buildout configuration
62
-
63
- 2.0.0
64
- -----
65
- - upgraded to Pyramid 2.0
66
-
67
- 1.3.1
68
- -----
69
- - use internal tee to avoid multiple accesses to values getter (so that values adapters should be able to return
70
- iterators without any problem)
71
- - added support for Python 3.10 and 3.11
72
-
73
- 1.3.0
74
- -----
75
- - added table and row update events, with matching subscribers predicates; these events are
76
- enabled by default but can be disabled by setting custom table attributes
77
- - handle dynamic CSS classes by supporting callables
78
-
79
- 1.2.1
80
- -----
81
- - updated doctests
82
-
83
- 1.2.0
84
- -----
85
- - removed support for Python < 3.7
86
-
87
- 1.1.3
88
- -----
89
- - updated Gitlab-CI configuration
90
-
91
- 1.1.2
92
- -----
93
- - updated Gitlab-CI configuration
94
-
95
- 1.1.1
96
- -----
97
- - updated Gitlab-CI configuration
98
- - removed Travis-CI configuration
99
-
100
- 1.1.0
101
- -----
102
- - added methods to render cells and rows contents in JSON format
103
- - updated "adapter_config" decorator arguments names
104
-
105
- 1.0.2
106
- -----
107
- - updated doctests using ZCA hook
108
-
109
- 1.0.1
110
- -----
111
- - use current request registry instead of global registry to query adapters
112
-
113
- 1.0.0
114
- -----
115
- - initial release
@@ -1,34 +0,0 @@
1
- LICENSE
2
- MANIFEST.in
3
- setup.py
4
- docs/HISTORY.rst
5
- docs/README.rst
6
- src/pyams_table/__init__.py
7
- src/pyams_table/batch.py
8
- src/pyams_table/column.py
9
- src/pyams_table/header.py
10
- src/pyams_table/include.py
11
- src/pyams_table/interfaces.py
12
- src/pyams_table/selector.py
13
- src/pyams_table/table.py
14
- src/pyams_table/testing.py
15
- src/pyams_table/value.py
16
- src/pyams_table.egg-info/PKG-INFO
17
- src/pyams_table.egg-info/SOURCES.txt
18
- src/pyams_table.egg-info/dependency_links.txt
19
- src/pyams_table.egg-info/namespace_packages.txt
20
- src/pyams_table.egg-info/not-zip-safe
21
- src/pyams_table.egg-info/requires.txt
22
- src/pyams_table.egg-info/top_level.txt
23
- src/pyams_table/doctests/README.rst
24
- src/pyams_table/doctests/batch.rst
25
- src/pyams_table/doctests/column.rst
26
- src/pyams_table/doctests/miscellaneous.rst
27
- src/pyams_table/doctests/sequence.rst
28
- src/pyams_table/doctests/sort.rst
29
- src/pyams_table/locales/pyams_table.pot
30
- src/pyams_table/locales/fr/LC_MESSAGES/pyams_table.mo
31
- src/pyams_table/locales/fr/LC_MESSAGES/pyams_table.po
32
- src/pyams_table/tests/__init__.py
33
- src/pyams_table/tests/test_utilsdocs.py
34
- src/pyams_table/tests/test_utilsdocstrings.py
@@ -1,14 +0,0 @@
1
- setuptools
2
- pyams_batching
3
- pyams_utils
4
- pyramid>=2.0.0
5
- zope.component
6
- zope.container
7
- zope.contentprovider
8
- zope.dublincore
9
- zope.interface
10
- zope.location
11
- zope.schema
12
- zope.security
13
-
14
- [test]
@@ -1 +0,0 @@
1
- pyams_table
File without changes
File without changes
File without changes