[Checkins]
SVN: grok/branches/jw-simpler-skin-registration/src/grok/
Expose IBrowserRequest and IDefaultBrowserLayer from the grok
package.
Philipp von Weitershausen
philikon at philikon.de
Fri Aug 1 08:33:21 EDT 2008
Log message for revision 89133:
Expose IBrowserRequest and IDefaultBrowserLayer from the grok package.
Changed:
U grok/branches/jw-simpler-skin-registration/src/grok/__init__.py
U grok/branches/jw-simpler-skin-registration/src/grok/ftests/view/layers.py
U grok/branches/jw-simpler-skin-registration/src/grok/interfaces.py
-=-
Modified: grok/branches/jw-simpler-skin-registration/src/grok/__init__.py
===================================================================
--- grok/branches/jw-simpler-skin-registration/src/grok/__init__.py 2008-08-01 12:30:25 UTC (rev 89132)
+++ grok/branches/jw-simpler-skin-registration/src/grok/__init__.py 2008-08-01 12:33:20 UTC (rev 89133)
@@ -23,6 +23,9 @@
IObjectModifiedEvent, ObjectModifiedEvent,
IObjectCopiedEvent, ObjectCopiedEvent)
+from zope.publisher.interfaces.browser import IBrowserRequest
+from zope.publisher.interfaces.browser import IDefaultBrowserLayer
+
from zope.app.container.contained import (
IObjectAddedEvent, ObjectAddedEvent,
IObjectMovedEvent, ObjectMovedEvent,
Modified: grok/branches/jw-simpler-skin-registration/src/grok/ftests/view/layers.py
===================================================================
--- grok/branches/jw-simpler-skin-registration/src/grok/ftests/view/layers.py 2008-08-01 12:30:25 UTC (rev 89132)
+++ grok/branches/jw-simpler-skin-registration/src/grok/ftests/view/layers.py 2008-08-01 12:33:20 UTC (rev 89133)
@@ -23,12 +23,11 @@
"""
import grok
from zope.app.basicskin import IBasicSkin
-from zope.publisher.interfaces.browser import IBrowserRequest
from zope.app.rotterdam import rotterdam
grok.layer(IBasicSkin)
-class MySkinLayer(grok.IGrokLayer):
+class MySkinLayer(grok.IBrowserRequest):
pass
class MySkin(grok.Skin):
@@ -61,5 +60,5 @@
def render(self):
return "Awesome"
-class IFoo(IBrowserRequest):
+class IFoo(grok.IBrowserRequest):
grok.skin('foo')
Modified: grok/branches/jw-simpler-skin-registration/src/grok/interfaces.py
===================================================================
--- grok/branches/jw-simpler-skin-registration/src/grok/interfaces.py 2008-08-01 12:30:25 UTC (rev 89132)
+++ grok/branches/jw-simpler-skin-registration/src/grok/interfaces.py 2008-08-01 12:33:20 UTC (rev 89133)
@@ -239,6 +239,8 @@
"""
IRESTSkinType = interface.Attribute('The REST skin type')
+ IBrowserRequest = interface.Attribute('Browser request interface')
+ IDefaultBrowserLayer = interface.Attribute('Default layer for browser views.')
class IGrokView(IBrowserPage, IBrowserView):
"""Grok views all provide this interface."""
More information about the Checkins
mailing list