Skip to main content

rebecca.form

pyramid view components based on FormAlchemy .

Components

  • FormView

  • AddFormView

  • EditFormView

  • DisplayView

Examples

Model for Example

class Item(Base):
    __tablename__ = 'items'
    id = sa.Column(sa.Integer, primary_key=True)
    name = sa.Column(sa.Unicode(255), nullable=False)
    value = sa.Column(sa.Integer, nullable=False)

    def __unicode__(self):
        return u"Item id={id}, name={name}, value={value}".format(id=self.id, name=self.name, value=self.value)

AddFormView

class AddItemView(AddFormView):
    __x_model__ = Item
    __x_session__ = DBSession

EditFormView

class EditItemView(EditFormView):
    __x_factory__ = item_finder

DisplayView

class DisplayItemView(DisplayView):
    __x_factory__ = item_finder

__x_factory__ is callable to find model from request.

Utilities

MatchDictFinder queries for specified Model with conditions from Request.matchdict.

For example, create finder for

item_finder = MatchDictFinder(Item, DBSession, [(Item.id, 'item_id')])

item_finder executes like this

DBSession.query(Item).filter(Item.id==request.matchdict['item_id']).one()

Contributors

  • Atsushi Odagiri, original author

Changelog

0.1

  • first release

Metadata

Release files for rebecca.form 0.1

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

Source distribution (sdist)

Source distribution for rebecca.form 0.1
File Size Uploaded Provenance Actions
rebecca.form-0.1.tar.gz 3.4 kB Without provenance Details for rebecca.form-0.1.tar.gz

Release files / rebecca.form-0.1.tar.gz

Download URL rebecca.form-0.1.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7e29a8bffa4e2ecd165a017a16857642ba7f4af98ad6c8660b5fca9d8121610b
BLAKE2b-256 checksum
How to use checksums
6919c93e6182c31a0af51bcb4dd43b69273d67a6b500cb0d7d998d74d761f15c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for rebecca.form 0.1

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.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

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