ftw.linkchecker
Project description
ftw.linkchecker
Introduction
It’s important, that this package isn’t started by conjob in non productive deployments. This is due to the fact, that the command is started by a zope ctl command.
Compatibility
Plone 4.3.x
Installation
Add the package to your buildout configuration:
[instance] eggs += ... ftw.linkchecker
One needs to add a config file (e.g. linkchecker_config.json) holding:
portal path (unique identifier of the platform)
emails of the platforms administrator (the ones who gets the report)
base URI (domain where the platform is configured)
timeout in seconds (how long the script waits for each external link before continuing if the page does not respond).
upload_location can be left empty. It is the path to a file listing block where the report will be uploaded.
{ "/portal/path-one": { "email": ["first_site_admin@example.com", "first_site_keeper@example.com"], "base_uri": "http://example1.ch", "timeout_config": "1", "upload_location": "/content_page/my_file_listing_block" }, "/portal/path-two": { "email": ["second_site_admin@example.com"], "base_uri": "http://example2.ch", "timeout_config": "1" } }
Usage
The linkchecker can be started with (–log logpath optional):
bin/instance check_links --config path/to/config/file.json --log path/to/logfile.log
Development
Fork this repo
Clone your fork
Shell: ln -s development.cfg buildout.cfg
Shell: python bootstrap.py
Shell: bin/buildout
Run bin/test to test your changes.
Or start an instance by running bin/instance fg.
Links
Copyright
This package is copyright by 4teamwork.
ftw.linkchecker is licensed under GNU General Public License, version 2.
Changelog
1.3.2 (2019-10-15)
Add logger to mailer and ensure utf-8 when logging. [busykoala]
1.3.1 (2019-09-11)
Log and make requests with link utf-8 encoded. [busykoala]
Extend LinkObject table attributes so autofilter covers all columns. [busykoala]
1.3.0 (2019-09-10)
Replace workflow with review_state in the report. [busykoala]
1.2.0 (2019-09-10)
Add the links source objs workflow or its parents to report. [busykoala]
Remove duplicate “Introduction” header in readme [Nachtalb]
1.1.1 (2019-08-13)
Improve logging. [busykoala]
Check if report upload location exists, otherwise log and continue to next page. [busykoala]
Check if pages exist, otherwise exit linkchecker. [busykoala]
Check if there is a config path before checking if it’s valid. [busykoala]
1.1.0 (2019-08-08)
Allow multiple notified email addresses per site. The string in the config file is a list of strings now. [busykoala]
1.0.1 (2019-08-05)
Fix version conflict in test packages. [busykoala]
1.0.0 (2019-08-02)
Initial implementation.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file ftw.linkchecker-1.3.2.tar.gz
.
File metadata
- Download URL: ftw.linkchecker-1.3.2.tar.gz
- Upload date:
- Size: 35.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c96975e02df39c9ef5a940d2eb0f35811301d6ed135fb1ba0d6574aa97f70e15 |
|
MD5 | a135fcbcd08a0c80c67e4ce85107b650 |
|
BLAKE2b-256 | e9736684dca2757351ed8941bb9a81d98756cf8cf9f664561530d67209373df5 |