Skip to main content

basic views for pyramid view

Project description

rebecca.view

rebecca.view is helper classes for pyramid views.

BasicView methods and properties

properties:

- ``context`` view context passed to constructor
- ``request`` request passed to constructor
- ``response`` response attribute of ``request``
- ``body`` body attribute of ``request``

methods:

- ``redirect(url)`` create HTTPFound object from url
- ``redirect_route(route_name, **values)`` create HTTPFound object with route_url
- ``action_dispatch`` call method named *_action with request param.

USAGE

To use BasicView, inherit that simply.:

class Greeting(BasicView):
    def __call__(self):
        return self.redirect_route('top', v=1)

Contributors

  • Atsushi Odagiri, Original Author

Changelog

0.1 (2013-03-10)

  • first release

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

rebecca.view-0.1.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file rebecca.view-0.1.tar.gz.

File metadata

  • Download URL: rebecca.view-0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rebecca.view-0.1.tar.gz
Algorithm Hash digest
SHA256 d35f45bc7568b095bde25691fed59bde039fbc2284e358917cfb0b2181ecc7ed
MD5 be89ea0137c68f6abd070b2bd6ab3726
BLAKE2b-256 d33c519cf5bd85183c568d3a87361d6fd5365755ca586d3180c37841823211a0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page