tgcrud is a ‘no magic’ crud interface generator, and the generated codes are fully customizable. It heavily use form widgets and show you many TG 1.0 existed features in it’s controllers/templates.
If you are an experienced TG developer, you could get it in minutes since it just done the basic procedure that every time you write a management interface of your model.
Define your model in model.py
After you’ve defined your model, you could use “tg-admin crud” command to generate the crud pack. The syntax is:
$ tg-admin crud [model class name] [package name]
e.x if the model name is BookMark, the package name is BookMarkController, the command is:
$ tg-admin crud BookMark BookMarkController
Then the ‘admin’ package is generated. You just need take several minutes to customize the formfield to have a proper crud interface.
Import the package to your controllers.py with a line:
from BookMarkController import BookMarkController
and add a branch on your Root():
foo = BookMarkController()
Customize the form filed in admin/controllers.py
Open the http://localhost:8080/foo to use the customizable interface.
Please refer to http://docs.turbogears.org/1.0/CRUDTemplate for detail
Metadata
Release files for tgcrud 0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tgcrud-0.8-py2.4.egg | Legacy Egg format | - | - | Details for tgcrud-0.8-py2.4.egg |
Release files / tgcrud-0.8-py2.4.egg
| Download URL | tgcrud-0.8-py2.4.egg |
|---|---|
| Size | 12.3 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
2e41954f91e21624120f038c517cdaf9565c8a7271abe43a9cd8570ae79c92e3
|
|
BLAKE2b-256 checksum How to use checksums |
8ba48957af69a63b9501d6b17c4ce44779f86231abf645fa028250018a4e7c82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for tgcrud 0.8
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.