-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added some bbb and updated the final packages to the new layout. Merged
trunk.
- Loading branch information
Showing
4 changed files
with
114 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
############################################################################## | ||
# | ||
# Copyright (c) 2001, 2002 Zope Corporation and Contributors. | ||
# All Rights Reserved. | ||
# | ||
# This software is subject to the provisions of the Zope Public License, | ||
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. | ||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED | ||
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS | ||
# FOR A PARTICULAR PURPOSE. | ||
# | ||
############################################################################## | ||
"""Publication Interfaces | ||
$Id$ | ||
""" | ||
__docformat__ = 'restructuredtext' | ||
|
||
from zope.interface import implements, Interface | ||
|
||
class IPublicationRequestFactory(Interface): | ||
"""Publication request factory""" | ||
|
||
def __call__(input_stream, output_steam, env): | ||
"""Create a request object to handle the given inputs | ||
A request is created and configured with a publication object. | ||
""" | ||
|
||
class IBeforeTraverseEvent(Interface): | ||
"""An event which gets sent on publication traverse""" | ||
|
||
|
||
class BeforeTraverseEvent(object): | ||
"""An event which gets sent on publication traverse""" | ||
implements(IBeforeTraverseEvent) | ||
def __init__(self, ob, request): | ||
self.object = ob | ||
self.request = request | ||
|
||
|
||
class IEndRequestEvent(Interface): | ||
"""An event which gets sent when the publication is ended""" | ||
|
||
|
||
class EndRequestEvent(object): | ||
"""An event which gets sent when the publication is ended""" | ||
implements(IEndRequestEvent) | ||
def __init__(self, ob, request): | ||
self.object = ob | ||
self.request = request | ||
|
||
|
||
class ISOAPRequestFactory(Interface): | ||
"""SOAP request factory""" | ||
|
||
def __call__(input_stream, output_steam, env): | ||
"""Create a request object to handle SOAP input.""" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
############################################################################## | ||
# | ||
# Copyright (c) 2005 Zope Corporation and Contributors. | ||
# All Rights Reserved. | ||
# | ||
# This software is subject to the provisions of the Zope Public License, | ||
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. | ||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED | ||
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS | ||
# FOR A PARTICULAR PURPOSE. | ||
# | ||
############################################################################## | ||
""" | ||
SOAP Publication Handler. Note that there is no *standard* SOAP | ||
implementation that is currently appropriate for the Zope3 core. | ||
The current architecture allows external packages to register a | ||
utility for zope.app.publication.interfaces.SOAPRequestFactory | ||
in order to implement SOAP support. If no utility is registered | ||
for this interface, SOAP requests are handled as if they were | ||
browser requests. | ||
$Id: $ | ||
""" | ||
|
||
from zope.app.publication.http import BaseHTTPPublication | ||
|
||
# Don't need any special handling for SOAP | ||
SOAPPublication = BaseHTTPPublication | ||
|
||
class SOAPPublicationFactory(object): | ||
|
||
def __init__(self, db): | ||
self.__pub = SOAPPublication(db) | ||
|
||
def __call__(self): | ||
return self.__pub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters