[Checkins] SVN: zope.app.publisher/trunk/ Added a `layer` attribute
to `xmlrpc:view`. This works just like layers for
Christian Zagrodnick
cz at gocept.com
Thu Aug 9 10:16:31 EDT 2007
Log message for revision 78732:
Added a `layer` attribute to `xmlrpc:view`. This works just like layers for
`browser:view` etc. but uses the `IXMLRPCSkinType`.
Changed:
U zope.app.publisher/trunk/CHANGES.txt
U zope.app.publisher/trunk/setup.py
U zope.app.publisher/trunk/src/zope/app/publisher/xmlrpc/metaconfigure.py
U zope.app.publisher/trunk/src/zope/app/publisher/xmlrpc/metadirectives.py
-=-
Modified: zope.app.publisher/trunk/CHANGES.txt
===================================================================
--- zope.app.publisher/trunk/CHANGES.txt 2007-08-09 14:13:32 UTC (rev 78731)
+++ zope.app.publisher/trunk/CHANGES.txt 2007-08-09 14:16:30 UTC (rev 78732)
@@ -2,6 +2,12 @@
Changes
=======
+3.5
+===
+
+- Added a `layer` attribute to `xmlrpc:view`. This works just like layers for
+ `browser:view` etc. but uses the `IXMLRPCSkinType`.
+
After 3.4.0a1
=============
Modified: zope.app.publisher/trunk/setup.py
===================================================================
--- zope.app.publisher/trunk/setup.py 2007-08-09 14:13:32 UTC (rev 78731)
+++ zope.app.publisher/trunk/setup.py 2007-08-09 14:16:30 UTC (rev 78732)
@@ -3,8 +3,8 @@
from setuptools import setup, find_packages, Extension
setup(name='zope.app.publisher',
- version = '3.4.0b1',
- url='http://svn.zope.org/zope.app.publisher',
+ version = '3.5.0a1',
+ url='http://pypi.python.org/pypi/zope.app.publisher/',
author='Zope Corporation and Contributors',
author_email='zope3-dev at zope.org',
@@ -28,10 +28,10 @@
'zope.interface',
'zope.location',
'zope.pagetemplate',
- 'zope.publisher',
+ 'zope.publisher>=3.5.0a1.dev-r78727',
'zope.schema',
'zope.security',
- 'zope.traversing',
+ 'zope.traversing>=3.5.0a1.dev-r78730',
],
extras_require={
'test': ['zope.testing',
Modified: zope.app.publisher/trunk/src/zope/app/publisher/xmlrpc/metaconfigure.py
===================================================================
--- zope.app.publisher/trunk/src/zope/app/publisher/xmlrpc/metaconfigure.py 2007-08-09 14:13:32 UTC (rev 78731)
+++ zope.app.publisher/trunk/src/zope/app/publisher/xmlrpc/metaconfigure.py 2007-08-09 14:16:30 UTC (rev 78732)
@@ -26,7 +26,7 @@
from zope.app.publisher.xmlrpc import MethodPublisher
def view(_context, for_=None, interface=None, methods=None,
- class_=None, permission=None, name=None):
+ class_=None, permission=None, name=None, layer=IXMLRPCRequest):
interface = interface or []
methods = methods or []
@@ -84,10 +84,10 @@
# Register the new view.
_context.action(
- discriminator = ('view', for_, name, IXMLRPCRequest),
+ discriminator = ('view', for_, name, layer),
callable = handler,
args = ('registerAdapter',
- class_, (for_, IXMLRPCRequest), Interface, name,
+ class_, (for_, layer), Interface, name,
_context.info)
)
else:
Modified: zope.app.publisher/trunk/src/zope/app/publisher/xmlrpc/metadirectives.py
===================================================================
--- zope.app.publisher/trunk/src/zope/app/publisher/xmlrpc/metadirectives.py 2007-08-09 14:13:32 UTC (rev 78731)
+++ zope.app.publisher/trunk/src/zope/app/publisher/xmlrpc/metadirectives.py 2007-08-09 14:16:30 UTC (rev 78732)
@@ -84,3 +84,10 @@
""",
required=False,
)
+
+ layer = zope.configuration.fields.GlobalInterface(
+ title=u"The layer the view is declared for",
+ description=u"The default layer for which the default view is "
+ u"applicable. By default it is applied to all layers.",
+ required=False
+ )
More information about the Checkins
mailing list