Skip to main content

splent_feature_contact

The contact feature of a SPLENT product line.

A SPLENT feature is a Python package that a product composes with others. Its models, routes, services, templates and hooks are registered when the product starts. What this feature provides and requires is listed in the [tool.splent.contract] section of pyproject.toml, which splent feature:contract --write keeps in sync with the source.

What it does

A public contact form at /contact. Every message is stored, and when a mail feature is installed it is also sent to the recipient set in the Contact settings panel, or to the mail From address when none is set. A captcha feature can veto a submission through the contact-submitting signal, and the contact.map hook places a map beside the form.

The panel reads the messages at /admin/contact, where they are marked read or deleted.

Access

The screens under /admin/contact open for the accounts whose role is admin or staff, the same pair the admin dashboard lets in. Any other signed-in account gets 403 and does not see the Contact link in the sidebar, and an anonymous visitor is sent to log in. The contact form stays open to everyone, signed in or not.

There is no setting for these roles, and a refinement cannot replace the views that check them, because it may add routes to this feature but never replace one of its own. Another feature can decide for these screens with an access policy registered for the prefix contact.admin (register_access_policy, splent_framework 1.20.0). The framework asks the policy before the roles. It answers True to let an account in, False to refuse it, or None to leave the decision to the roles, and the sidebar link follows the same answer. That is the way to let a group of accounts manage only this section, for example the people who answer the visitors, without giving them a panel role. See Access control.

Without such a feature, give the person's account the staff role. Staff opens every panel screen that asks for PANEL_ROLES, not only this one, so a person who should read nothing but the contact inbox needs a policy instead.

splent feature:auth set-role someone@example.com staff

Use it in a product

splent feature:add splent_feature_contact

Develop

splent feature:test splent_feature_contact
splent feature:contract splent_feature_contact

Release

splent feature:release splent_feature_contact --dry-run --bump patch
splent feature:release splent_feature_contact

The first command rehearses the release and changes nothing. The second publishes it to the git forge and to PyPI, and a PyPI version is permanent.

Metadata

Release files for splent-feature-contact 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for splent-feature-contact 0.3.0
File Size Uploaded Provenance Actions
splent_feature_contact-0.3.0.tar.gz 28.6 kB Without provenance Details for splent_feature_contact-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for splent-feature-contact 0.3.0
File Interpreter ABI Platform Actions
splent_feature_contact-0.3.0-py3-none-any.whl Python 3 none any Details for splent_feature_contact-0.3.0-py3-none-any.whl

Total release size: 63.8 kB

Release files / splent_feature_contact-0.3.0.tar.gz

Download URL splent_feature_contact-0.3.0.tar.gz
Size 28.6 kB
Tags Source
SHA-256 checksum
How to use checksums
799128513aa9926d34cf5843ae9df573c2eee0470e51cfbfd043eedc65f88261
BLAKE2b-256 checksum
How to use checksums
7870019e57f2d5e0fce4b2fee72ba2a85f00ffd77fb4be59efa1abfc30577222
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / splent_feature_contact-0.3.0-py3-none-any.whl

Download URL splent_feature_contact-0.3.0-py3-none-any.whl
Size 35.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35810d2008d5c3205f5e5bb4b1037466b1111ba11e6435166b7b690588d41af5
BLAKE2b-256 checksum
How to use checksums
1f9d579b78af2c563492054ee5b57bee5666403a253d8cdb09243bba11772d88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Security for splent-feature-contact 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page