Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

snippets for zope.interface

Project Description
  • zca-list
  • zca-snippets

zca-list

$ zca-list pyramid.interfaces
pyramid.interfaces:ITranslationDirectories
pyramid.interfaces:INewRequest
pyramid.interfaces:IRootFactory
pyramid.interfaces:IDefaultRootFactory
pyramid.interfaces:IViewMapperFactory
pyramid.interfaces:IBeforeRender
## ..snip
pyramid.interfaces:IExceptionViewClassifier
pyramid.interfaces:ILocaleNegotiator
pyramid.interfaces:IMultiDict
pyramid.interfaces:IAuthenticationPolicy

zca-snippets

$ zca-snippets pyramid.interfaces:IAuthenticationPolicy
from zope.interface import implementer
from pyramid.interfaces import IAuthenticationPolicy

## see: pyramid.interfaces:IAuthenticationPolicy
@implementer(IAuthenticationPolicy)
class AuthenticationPolicy(object):
    def remember(self, request, principal, **kw):
        pass

    def effective_principals(self, request):
        pass

    def forget(self, request):
        pass

    def authenticated_userid(self, request):
        pass

    def unauthenticated_userid(self, request):
        pass
    $ zca-snippets -q pyramid.interfaces:IAuthorizationPolicy
## see: pyramid.interfaces:IAuthorizationPolicy
@implementer(IAuthorizationPolicy)
class AuthorizationPolicy(object):
    def principals_allowed_by_permission(self, context, permission):
        pass

    def permits(self, context, principals, permission):
        pass
Release History

Release History

This version
History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
zca_snippets-0.0.2.tar.gz (2.9 kB) Copy SHA256 Checksum SHA256 Source May 2, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting