Skip to content

Plone 6 #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 78 additions & 0 deletions .github/workflows/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Generated from:
# https://github.com/plone/meta/tree/main/config/default
# See the inline comments on how to expand/tweak this configuration file
name: Meta
on:
push:
branches:
- master
- main
- plone6
pull_request:
branches:
- master
- main
- plone6
workflow_dispatch:

##
# To set environment variables for all jobs, add in .meta.toml:
# [github]
# env = """
# debug: 1
# image-name: 'org/image'
# image-tag: 'latest'
# """
##

jobs:
# qa:
# uses: plone/meta/.github/workflows/qa.yml@main
test:
uses: plone/meta/.github/workflows/test.yml@main
with:

py-versions: '["3.13", "3.12", "3.11", "3.10"]'
# coverage:
# uses: plone/meta/.github/workflows/coverage.yml@main
# dependencies:
# uses: plone/meta/.github/workflows/dependencies.yml@main
# release_ready:
# uses: plone/meta/.github/workflows/release_ready.yml@main

##
# To modify the list of default jobs being created add in .meta.toml:
# [github]
# jobs = [
# "qa",
# "test",
# "coverage",
# "dependencies",
# "release_ready",
# "circular",
# ]
##

##
# To request that some OS level dependencies get installed
# when running tests/coverage jobs, add in .meta.toml:
# [github]
# os_dependencies = "git libxml2 libxslt"
##

##
# To test against a specific matrix of python versions
# when running tests jobs, add in .meta.toml:
# [github]
# py_versions = "['3.12', '3.11']"
##


##
# Specify additional jobs in .meta.toml:
# [github]
# extra_lines = """
# another:
# uses: org/repo/.github/workflows/file.yml@main
# """
##
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ dist/
var/
.Python
pip-selfcheck.json
lib64
pyvenv.cfg
.mr.developer.cfg
.plone.versioncheck.tracked.json
31 changes: 31 additions & 0 deletions .meta.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Generated from:
# https://github.com/plone/meta/tree/main/config/default
# See the inline comments on how to expand/tweak this configuration file
[meta]
template = "default"
commit-id = "71d0218b"

[pyproject]
codespell_skip = "*.min.js"
codespell_ignores = "vew"
dependencies_mappings = [
"pytest-plone = ['pytest', 'plone.testing', 'plone.app.testing']",
]
dependencies_ignores = "['plone.app.iterate', 'plone.app.upgrade', 'plone.volto', 'zestreleaser.towncrier', 'zest.releaser', 'pytest-cov']"

[gitignore]
extra_lines = """
.lock
"""

[tox]
test_runner = "pytest"
test_path = "/tests"
use_mxdev = true
test_deps_additional = ""

[github]
py_versions = "[\"3.13\", \"3.12\", \"3.11\", \"3.10\"]"
jobs = [
"test",
]
94 changes: 94 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# Generated from:
# https://github.com/plone/meta/tree/master/config/default
# See the inline comments on how to expand/tweak this configuration file
ci:
autofix_prs: false
autoupdate_schedule: monthly

repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.14.0
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
- repo: https://github.com/collective/zpretty
rev: 3.1.0
hooks:
- id: zpretty

##
# Add extra configuration options in .meta.toml:
# [pre_commit]
# zpretty_extra_lines = """
# _your own configuration lines_
# """
##
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8

##
# Add extra configuration options in .meta.toml:
# [pre_commit]
# flake8_extra_lines = """
# _your own configuration lines_
# """
##
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
additional_dependencies:
- tomli

##
# Add extra configuration options in .meta.toml:
# [pre_commit]
# codespell_extra_lines = """
# _your own configuration lines_
# """
##
- repo: https://github.com/mgedmin/check-manifest
rev: "0.49"
hooks:
- id: check-manifest
- repo: https://github.com/regebro/pyroma
rev: "4.2"
hooks:
- id: pyroma
- repo: https://github.com/mgedmin/check-python-versions
rev: "0.22.1"
hooks:
- id: check-python-versions
args: ['--only', 'setup.py,pyproject.toml']
- repo: https://github.com/collective/i18ndude
rev: "6.1.0"
hooks:
- id: i18ndude


##
# Add extra configuration options in .meta.toml:
# [pre_commit]
# i18ndude_extra_lines = """
# _your own configuration lines_
# """
##


##
# Add extra configuration options in .meta.toml:
# [pre_commit]
# extra_lines = """
# _your own configuration lines_
# """
##
62 changes: 31 additions & 31 deletions README.rst → README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Introduction
============
# Introduction

DataTables_ is a plug-in for the jQuery_ Javascript library.
It is a highly flexible tool, based upon the principle of progressive
Expand All @@ -9,21 +8,27 @@ This version includes datatables 1.10.11 without the examples available in the
source distribution of the plugin. It is provided with an
``@@example.datatables`` view.

Install
=======

# Old versions

Branch master is maintained for Plone 6.
Branch 4.x is used to support Plone version < 6.


# Install

A genericsetup profile is provided to add ``jquery.dataTables`` to
``portal_javascript`` in a minified version with compression option set
to *none*.

Upgrade
=======

# Upgrade

**WARNING**, with **10.0.4** JS, CSS from core plugins were all renamed in the upstream packaging,
preprare to update your inclusions urls for plugins JS & CSS!

Key features of jquery.dataTables
=================================

# Key features of jquery.dataTables

* Variable-length pagination
* On-the-fly filtering
Expand Down Expand Up @@ -52,8 +57,8 @@ Key features of jquery.dataTables
* Full support for Adobe AIR
* Source available at github_

Plugins
=======

# Plugins

This addon embed extras plugins:

Expand All @@ -67,8 +72,9 @@ This addon embed extras plugins:
* Scroller 1.2.2
* TableTools 2.2.3

How to use tabletools
---------------------

## How to use tabletools

First include dependencies in your template, or register theses in
portal_javascripts::

Expand All @@ -81,44 +87,43 @@ portal_javascripts::

Next you can create your datatable::

```javascript
var oTable = $('#mydatatable').dataTable({
"sDom": 'T<"clear">lfrtip',
"oTableTools": {"sSwfPath": "++resource++jquery.datatables/extras/TableTools/media/swf/copy_csv_xls_pdf.swf"}
});
```

How to use translations
-----------------------
## How to use translations

This addon provide translations of datatables. To use translations you have
to init your datatables providing sUrl param::

```javascript
$(document).ready(function() {
$('#example').dataTable( {
"oLanguage": {
"sUrl": "@@collective.js.datatables.translation"
}
} );
} );
```


Credits
=======
# Credits

Companies
---------

|makinacom|_
## Companies

* `Planet Makina Corpus <https://makina-corpus.com/>`_
* `Contact us <https://makina-corpus.com/contact>`_

Authors
-------

## Authors

- JeanMichel FRANCOIS aka toutpt <[email protected]>

Contributors
------------

## Contributors

- Nejc Zupan (zupo)
- Martijn Pieters
Expand All @@ -127,10 +132,5 @@ Contributors
- Mathieu Le Marec - Pasquet (kiorky) <[email protected]>
- Robert Niederreiter (rnix)
- Peter Holzer (agitator)

.. |makinacom| image:: https://depot.makina-corpus.org/public/logo.gif
.. _makinacom: https://makina-corpus.com/
.. _DataTables: https://www.datatables.net/download/
.. _github: https://github.com/DataTables
.. _jQuery: https://jquery.com/

- Benoît Suttor (bsuttor)
- Rémi Dubois (remdub)
7 changes: 0 additions & 7 deletions bootstrap.sh

This file was deleted.

Loading