Introduction
collective.pfg.sqladapter adds a form action adapter to PloneFormGen that saves form input data in a SQL database using SQLAlchemy.
Setup
To install collective.pfg.sqladapter add it to the list of eggs in your buildout.
To configure the database, use z3c.saconfig and define a named scoped session “collective.pfg.sqladapter” in your configure.zcml or in the “zcml-additional” parameter of your buildout.
Example:
<configure xmlns="http://namespaces.zope.org/db">
<engine name="collective.pfg.sqladapter" url="mysql://user:password@localhost/database" />
<session name="collective.pfg.sqladapter" engine="collective.pfg.sqladapter" />
</configure>
Run buildout and restart your instance. Then install the product using Quickinstaller.
Usage
To save form input data in your SQL database add a “SQLAdapter” in your Form Folder and enter the name of the table where the input data should be stored.
If a table with the given name does not exist in your database, it will be created with columns corresponding to the fields in your form. Thus the “SQLAdapter” should be added after all fields were added.
Changelog
1.0 (2012-02-20)
Initial release
Metadata
Release files for collective.pfg.sqladapter 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| collective.pfg.sqladapter-1.0.tar.gz | 14.1 kB | Without provenance | Details for collective.pfg.sqladapter-1.0.tar.gz |
Release files / collective.pfg.sqladapter-1.0.tar.gz
| Download URL | collective.pfg.sqladapter-1.0.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d30ac4b7937a0f4b63e399a1cd228ea954193293063ff268cf6780575f7e585
|
|
BLAKE2b-256 checksum How to use checksums |
bd3764ee7fe11240a3ebd95611b1531f48241d58eac3997b8a760aa374641370
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for collective.pfg.sqladapter 1.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.