Did I find the right examples for you? yes no

All Samples(38)  |  Call(22)  |  Derive(2)  |  Import(14)
L{ForbiddenResource} is a specialization of L{ErrorPage} which returns the
I{FORBIDDEN} HTTP response code.

src/t/w/TwistedGit-0.2.1/twistedgit/http.py   TwistedGit(Download)
from twisted.web.server import Site, NOT_DONE_YET
from twisted.web.resource import Resource, IResource
from twisted.web.resource import NoResource, ForbiddenResource
 
from twistedgit.common import PasswordChecker, git_packet
                return UnauthorizedResource(self.credentialFactories)
            else:
                return ForbiddenResource("You don't have read access")
 
        # Smart HTTP requests
                return UnauthorizedResource(self.credentialFactories)
            else:
                return ForbiddenResource("You don't have write access")
 
        return resource
 
    def render_GET(self, request):
        return ForbiddenResource()

src/g/i/GitServerGlue-0.3.1/gitserverglue/http.py   GitServerGlue(Download)
from twisted.web.server import Site, NOT_DONE_YET
from twisted.web.resource import Resource, IResource
from twisted.web.resource import NoResource, ForbiddenResource
 
from gitserverglue.common import PasswordChecker, git_packet
                return UnauthorizedResource(self.credentialFactories)
            else:
                return ForbiddenResource("You don't have read access")
 
        # Smart HTTP requests
                return UnauthorizedResource(self.credentialFactories)
            else:
                return ForbiddenResource("You don't have write access")
 
        return resource
 
    def render_GET(self, request):
        return ForbiddenResource()

src/g/i/gitserverglue-HEAD/gitserverglue/http.py   gitserverglue(Download)
from twisted.web.server import Site, NOT_DONE_YET
from twisted.web.resource import Resource, IResource
from twisted.web.resource import NoResource, ForbiddenResource
 
from gitserverglue.common import PasswordChecker, git_packet
                return UnauthorizedResource(self.credentialFactories)
            else:
                return ForbiddenResource("You don't have read access")
 
        # Smart HTTP requests
                return UnauthorizedResource(self.credentialFactories)
            else:
                return ForbiddenResource("You don't have write access")
 
        return resource
 
    def render_GET(self, request):
        return ForbiddenResource()

src/n/o/nodeset.core-HEAD/src/nodeset/core/web.py   nodeset.core(Download)
 
        if not is_verified:
            return resource.ForbiddenResource("Signature invalid")
 
        def generic_handler(msg, subId, request):

src/h/e/hendrix-0.1.1/hendrix/resources.py   hendrix(Download)
        """
        # override this method if you want to serve dynamic child resources
        return resource.ForbiddenResource("This is a resource namespace.")
 
 
    def directoryListing(self):
        # Override to forbid directory listing
        return resource.ForbiddenResource()
 
 

src/h/e/hendrix-HEAD/hendrix/resources.py   hendrix(Download)
        """
        # override this method if you want to serve dynamic child resources
        return resource.ForbiddenResource("This is a resource namespace.")
 
 
    def directoryListing(self):
        # Override to forbid directory listing
        return resource.ForbiddenResource()
 
 

src/h/e/hendrix-0.1.1/hendrix/contrib/__init__.py   hendrix(Download)
        'Hendrix is a Django plugin. As such Django must be installed.'
    ), None, sys.exc_info()[2]
from twisted.web.resource import Resource, ForbiddenResource
from .async.resources import MessageResource
from .color import Colors
        """
        # override this method if you want to serve dynamic child resources
        return ForbiddenResource("This is a resource namespace.")
 
 

src/h/e/hendrix-HEAD/hendrix/contrib/__init__.py   hendrix(Download)
import importlib
from twisted.web.resource import Resource, ForbiddenResource
from .async.resources import MessageResource
 
 
        """
        # override this method if you want to serve dynamic child resources
        return ForbiddenResource("This is a resource namespace.")
 
 

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/twisted/web/error.py   oh-mainline(Download)
class ForbiddenResource(_resource.ForbiddenResource):
    """
    Deprecated alias for L{twisted.web.resource.ForbiddenResource}.
    """
    def __init__(self, *args, **kwargs):

src/m/c/McBlockit---Helpbot-HEAD/plugins/web.py   McBlockit---Helpbot(Download)
from twisted.internet import reactor
from twisted.web.server import Site
from twisted.web.resource import Resource, NoResource, ForbiddenResource
 
def authorized(keys, request):

  1 | 2 | 3  Next